Skip to content
Path traversal Disclosed report Beginner

[vulners.com] nginx alias_traversal

An nginx server was misconfigured so that a request path containing a traversal sequence could reach files outside the intended static directory. An attacker could read files from other directories on the server, such as monitoring configuration and binaries.

bobrov Follow

Originally disclosed on HackerOne

  • Triaged in under an hour
  • Fixed in under an hour
  • Disclosed after 2 months

Incorrect configuration of alias could allow an attacker to read file stored outside the target folder. https://github.com/yandex/gixy/blob/master/docs/en/plugins/aliastraversal.md

Уязвимость только в конфигурации http, на https такого нет.

Пример:

HTTP
GET /static../monit/COPYING HTTP/1.1
Host: vulners.com
Screenshot_at_23-32-25.png
Screenshot_at_23-32-25.png From the original on HackerOne

Примеры директорий, которые я обнаружил

rh/
nginx/cache/
monit/bin/monit
monit/conf/
monit/man/
monit/COPYING
monit/CHANGES

Impact

Incorrect configuration of alias could allow an attacker to read file stored outside the target folder.

The original report as published on HackerOne, by bobrov. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A web server can be set up to serve files from a folder, and a rule called 'alias' tells it which folder matches which URL. If that rule is written carelessly, adding '..' to the URL lets someone step up out of the intended folder and read other files on the machine. Here the tester did exactly that and listed directories that should not have been reachable.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

More by bobrov

View all

39 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.