Local File Disclosure on the █████ (https://████████.edu/) leads to the full source code disclosure and credentials leak
Critical
U
U.S. Dept Of Defense
Submitted None
Actions:
Reported by
sp1d3rs
Vulnerability Details
Technical details and impact analysis
##Description
During poking around `██████.00/24` range - ██████████ looking for the Cisco devices, I came across `███` which resolved to the https://███████.edu/
While it's a not `.mil` host, it's likely related to the DoD since it hosted in the DoD-controlled ASN.
I discovered few critical vulnerabilities here, one of them is LFD (local file disclosure).
##POC
https://██████.edu/file.ashx?path=web.config
will download the website configuration file.
It exposes the DB credentials:
███
Similarly, attacker able to get content of any server-side resource, such as source code of application:
https://███.edu/file.ashx?path=UserAccountJSON.aspx.cs
## Impact
Source code & DB credentials leakage. Attacker can use it to compromise the resource.
Report Details
Additional information and metadata
State
Closed
Substate
Resolved
Submitted
Weakness
Insecure Storage of Sensitive Information