Browse / CVEs / CVE-2022-25481
CVE-2022-25481· thinkphp / thinkphp· CWE-668
ThinkPHP 5.0.24 - Information Disclosure
highseverity
7.5CVSS score
4.7%likelihood of exploitation, next 30 days
92%of all CVEs are less likely
Readycheck to confirm it
ThinkPHP 5.0.24 is susceptible to information disclosure. This version was configured without the PATHINFO parameter. This can allow an attacker to access all system environment parameters from index.php, thereby possibly obtaining sensitive information, modifying data, and/or executing unauthorized operations.
Impact
An attacker can exploit this vulnerability to gain sensitive information.
Fix
Upgrade to a patched version of ThinkPHP or apply the necessary security patches.
How to confirm it
Send: GET {{BaseURL}}/index.php?s=example
Positive when: contains "Exception" and "REQUEST_TIME" and "ThinkPHP Constants" AND status 200 or 500 or 404Run it with nuclei: nuclei -id CVE-2022-25481 -u <target>
The full check
id: CVE-2022-25481
info:
name: ThinkPHP 5.0.24 - Information Disclosure
author: caon
severity: high
description: |
ThinkPHP 5.0.24 is susceptible to information disclosure. This version was configured without the PATHINFO parameter. This can allow an attacker to access all system environment parameters from index.php, thereby possibly obtaining sensitive information, modifying data, and/or executing unauthorized operations.
impact: |
An attacker can exploit this vulnerability to gain sensitive information.
remediation: |
Upgrade to a patched version of ThinkPHP or apply the necessary security patches.
reference:
- https://github.com/Lyther/VulnDiscover/blob/master/Web/ThinkPHP_InfoLeak.md
- https://nvd.nist.gov/vuln/detail/CVE-2022-25481
- https://github.com/20142995/sectool
- https://github.com/ARPSyndicate/cvemon
- https://github.com/ARPSyndicate/kenzer-templates
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
cvss-score: 7.5
cve-id: CVE-2022-25481
cwe-id: CWE-668
epss-score: 0.04748
epss-percentile: 0.91948
cpe: cpe:2.3:a:thinkphp:thinkphp:5.0.24:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 1
vendor: thinkphp
product: thinkphp
shodan-query:
- title:"ThinkPHP"
- http.title:"thinkphp"
- cpe:"cpe:2.3:a:thinkphp:thinkphp"
fofa-query:
- title="thinkphp"
- header="think_lang"
google-query: intitle:"thinkphp"
tags: cve,cve2022,thinkphp,exposure,oss,vuln
http:
- method: GET
path:
- '{{BaseURL}}/index.php?s=example'
matchers-condition: and
matchers:
- type: word
part: body
words:
- "Exception"
- "REQUEST_TIME"
- "ThinkPHP Constants"
condition: and
- type: status
status:
- 200
- 500
- 404
condition: orReferences
- https://github.com/Lyther/VulnDiscover/blob/master/Web/ThinkPHP_InfoLeak.md
- https://nvd.nist.gov/vuln/detail/CVE-2022-25481
- https://github.com/20142995/sectool
- https://github.com/ARPSyndicate/cvemon
- https://github.com/ARPSyndicate/kenzer-templates
Use this check only on systems you are authorised to test. Where the data comes from