HexBrain

U.S. Dept Of Defense · Report #674741

Examples directory is PUBLIC on https://████████mil, leading to multiple vulns

Validstatus
criticalseverity
25upvotes
10 Oct 2019disclosed

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:

  1. https://█████mil/examples/servlets/servlet/SessionExample <--Will lead to Session Manipulation and potential Account Takeover

  2. https://██████mil/examples/servlets/servlet/RequestHeaderExample <---Internal IP disclosure

  3. 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.

  4. https://████mil/examples/servlets/servlet/CookieExample <----Insecure Cookie Handling

Step-by-step Reproduction Instructions

  1. 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:

  1. 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.

  2. https://██████████mil/examples/servlets/servlet/CookieExample <----Insecure Cookie Handling

  3. https://███████mil/examples/servlets/ <---Source Code Disclosure and an "Execute" option

  4. https://██████mil/examples/servlets/servlet/RequestHeaderExample <---Internal IP disclosure

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