ThinkPHP Errors - Sensitive Information Exposure
ID: thinkphp-errors
Severity: medium
Author: j4vaovo
Tags: thinkphp,misconfig,exposure
Description
Section titled “Description”ThinkPHP error is leaking sensitive info.
YAML Source
Section titled “YAML Source”id: thinkphp-errors
info: name: ThinkPHP Errors - Sensitive Information Exposure author: j4vaovo severity: medium description: ThinkPHP error is leaking sensitive info. classification: cpe: cpe:2.3:a:thinkphp:thinkphp:*:*:*:*:*:*:*:* metadata: verified: true max-request: 1 vendor: thinkphp product: thinkphp fofa-query: app="ThinkPHP" && title="System Error" tags: thinkphp,misconfig,exposure
http: - method: GET path: - "{{BaseURL}}"
matchers-condition: and matchers: - type: word part: body words: - "_DATABASE</td>" - "_USERNAME</td>" - "_PASSWORD</td>" condition: and
- type: word part: body words: - "<title>系统发生错误</title>" - "<title>System Error</title>" condition: or
- type: word part: body words: - "Exception" - "REQUEST_TIME" condition: and
- type: status status: - 200 - 500 - 404 condition: or# digest: 4b0a00483046022100f4ac7536c8eca2843d9a080c3c0771f128abbab942216223578fbfa25bd2165d02210084c6a4a37dc6d3624f610ff3ca33bf33463395e9aca24d8b0ce097dee5965521:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/misconfiguration/thinkphp-errors.yaml"