From 8fd63929b6fd315fe12ba1b0ab76d6d27b43a655 Mon Sep 17 00:00:00 2001 From: j4vaovo <128683738+j4vaovo@users.noreply.github.com> Date: Tue, 18 Apr 2023 16:06:55 +0800 Subject: [PATCH] Create thinkphp-errors.yaml --- misconfiguration/thinkphp-errors.yaml | 52 +++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 misconfiguration/thinkphp-errors.yaml diff --git a/misconfiguration/thinkphp-errors.yaml b/misconfiguration/thinkphp-errors.yaml new file mode 100644 index 0000000000..7465ea3234 --- /dev/null +++ b/misconfiguration/thinkphp-errors.yaml @@ -0,0 +1,52 @@ +id: thinkphp-errors + +info: + name: ThinkPHP - Errors + author: j4vaovo + severity: medium + metadata: + verified: "true" + fofa-query: app="ThinkPHP" && title="System Error" + tags: thinkphp,misconfiguration + +requests: + - method: GET + path: + - "{{BaseURL}}/" + + matchers-condition: and + matchers: + - type: word + part: body + words: + - "DATABASE_PASSWORD" + - "REDIS_PASSWORD" + - "ROCKETMQ_SECRET_KEY" + - "WECHAT_SECRET_KEY" + - "JWT_KEY" + - "JWT_SECRET" + - "API_KEY" + - "ACCESS_KEY" + - "ACCESS_KEY_SECRET" + condition: or + + - type: word + part: body + words: + - "系统发生错误" + - "System Error" + condition: or + + - type: word + part: body + words: + - "Exception" + - "REQUEST_TIME" + condition: and + + - type: status + status: + - 200 + - 500 + - 404 + condition: or