U.S. Dept Of Defense · Report #674741
Examples directory is PUBLIC on https://████████mil, leading to multiple vulns
How it was found
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