Critical Path Traversal Enables Enumeration of Root and User Home Directories
The application's ?&dir= parameter is vulnerable to path traversal, allowing an attacker to browse directories outside the intended scope. This enables enumeration of root and user home directories on the server.
Originally disclosed on Bugcrowd
- Accepted in 4 days
- Fixed in 40 days
- Disclosed after 10 months
Summary by alan_olazabal
The application is vulnerable to an arbitrary directory traversal attack through the ?&dir= parameter. By supplying specially crafted input an attacker can traverse the server’s filesystem beyond the intended scope, enabling enumeration of directories and files across all the server
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
Root cause
Likely the application passes user-supplied input from the dir parameter directly into a filesystem path without validating or restricting it to an intended base directory.
Impact
An attacker could enumerate directories and files across the server, potentially exposing sensitive information about the filesystem layout and contents.
What the attacker needed
Access to the vulnerable endpoint
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.
Path traversal is when a web app lets you use a file path to reach folders it should not show you. Here, a parameter that probably picks a folder can be tricked into listing other folders on the server, such as the root and users' home directories.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.