[oneclickdrsfdc-test.informatica.com] Tomcat Example Scripts Exposed Unauthenticated
The Apache Tomcat installation exposed its /examples directory without authentication, allowing access to scripts that execute server-side code. An attacker could use these scripts to disclose source code and other sensitive information.
- Triaged in 4 days
- Fixed in 3 months
- Disclosed after 4 months
#####Issue The consultant identified that there is an unauthenticated installation of apache tomcat installed on the affected host. This particular installation has the /examples directory exposed which contains several scripts that execute server side code, these scripts can also be leveraged to carry out other attacks.
#####Affected URLs https://oneclickdrsfdc-test.informatica.com/examples/servlets/index.html https://oneclickdrsfdc-test.informatica.com/examples/jsp/index.html
####Risk: Medium This issue has been marked as medium due to the amount of executable scripts that are available in both the jsp and servlets directories. Both of which can lead to:
- Significant Source Code Disclosure
- Significant Information Disclosure
#####Remediaton Implement http authentication on the affected directories, or alternatively remove the examples folder entirely to prevent the attack surface. Consider following a lockdown procedure against the installation and updating Tomcat to a newer instance.
#####References
#####Request & Response GET Request
GET /examples/jsp/index.html HTTP/1.1
Host: oneclickdrsfdc-test.informatica.com
Accept: */*
Accept-Language: en
Connection: close
Response
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Accept-Ranges: bytes
ETag: W/"16288-1367228170000"
Last-Modified: Mon, 29 Apr 2013 09:36:10 GMT
Content-Type: text/html
Content-Length: 16288
Date: Sat, 25 Jun 2016 11:39:21 GMT
Connection: close
---SNIP---
-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Mozilla/4.61 [en] (WinNT; I) [Netscape]">
<meta name="Author" content="Anil K. Vijendran">
<title>JSP Examples</title>
</head>
---SNIP---
Attachments

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 Tomcat examples directory was left in place and not protected by authentication.
Impact
An attacker could access executable scripts that may lead to significant source code disclosure and significant information disclosure.
What the attacker needed
None
The fix
The examples directory should be removed or protected with HTTP authentication, and the Tomcat installation should be locked down and updated.
How it was found
- Send a GET request to the /examples/jsp/index.html path on the host.
- Observe that the server returns a 200 OK response with the JSP Examples page.
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.
Apache Tomcat is a web server that runs Java applications. It comes with a folder of example scripts that are meant for learning, but if left accessible on a live site, anyone can run them. These scripts can reveal the server's code or other private data.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.