Examples directory is PUBLIC on https://████████mil, leading to multiple vulns
The report claims that a publicly accessible examples directory on a military domain exposes servlets that allow session manipulation, internal IP disclosure, source code disclosure, and insecure cookie handling. The reporter suggests these could lead to account takeover, but provides no evidence of actual exploitation.
Originally disclosed on HackerOne
- Triaged in 15 hours
- Fixed in 15 days
- Disclosed after 56 days
Description: Hello,
In an effort to consolidate reporting. I have located 4 issues with having the Examples Directory open(my require just 1 solution to mitigate) The following URLs that show concern are the following:
-
https://█████mil/examples/servlets/servlet/SessionExample <--Will lead to Session Manipulation and potential Account Takeover
-
https://██████mil/examples/servlets/servlet/RequestHeaderExample <---Internal IP disclosure
-
https://██████████mil/examples/servlets/ <---Source Code Disclosure and an "Execute" option(did not press Execute button so I am not sure the impact of it.
-
https://████mil/examples/servlets/servlet/CookieExample <----Insecure Cookie Handling
Step-by-step Reproduction Instructions
- Please visit the above links
Suggested Mitigation/Remediation Actions
Disable public access to the examples directory as soon as possible!
Impact
Ordered by Highest Impact:
-
https://██████mil/examples/servlets/servlet/SessionExample <--Will lead to Session Manipulation and potential Account Takeover. Because the session is global this servlet poses a big security risk as an attacker can potentially become an administrator by manipulating its session.
-
https://██████████mil/examples/servlets/servlet/CookieExample <----Insecure Cookie Handling
-
https://███████mil/examples/servlets/ <---Source Code Disclosure and an "Execute" option
-
https://██████mil/examples/servlets/servlet/RequestHeaderExample <---Internal IP disclosure
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 default example servlets from a web server or framework were deployed and left publicly accessible without access controls.
Impact
The reporter claims potential account takeover via session manipulation, internal IP disclosure, source code disclosure, and insecure cookie handling, but no exploitation is demonstrated.
What the attacker needed
None
How it was found
- Visit the provided URLs under the examples directory.
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.
The report says that a folder meant for examples was left open on a website. That folder contains small test programs that can show or change information like session IDs and cookies, which might let someone mess with other users' accounts. However, the reporter did not actually try to exploit them, so the real risk is unclear.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.