Tomcat examples available for public, Disclosure Apache Tomcat version, Critical/High/Medium CVE
The Apache Tomcat examples directory was publicly accessible, allowing session and cookie manipulation and internal IP disclosure. The error page revealed the Tomcat version, which was vulnerable to multiple CVEs including a critical one.
- Triaged in under an hour
- Fixed in 22 days
- Disclosed after 28 days
Summary: There are multiple issues found on ███:
- ███████/examples/ - Apache Tomcat examples are available for public. Multiple issues - session and cookies manipulation, internals IP disclosure.
- Error page contains information about Apache Tomcat version
- Reported Tomcat version is vulnerable. Multiple CVEs - critical, high and medium
Description:
-
Examples are available by link: ███████/examples/
-
Information disclosure about Apache Tomcat version
-
Vulnerable version Apache Tomcat/8.5.33
https://nvd.nist.gov/vuln/detail/CVE-2020-1938 Base Score: 9.8 CRITICALVector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
https://nvd.nist.gov/vuln/detail/CVE-2019-0232 Base Score: 8.1 HIGH Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
https://nvd.nist.gov/vuln/detail/CVE-2019-17563 Base Score: 7.5 HIGH Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
https://nvd.nist.gov/vuln/detail/CVE-2019-10072 Base Score: 7.5 HIGH Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
https://nvd.nist.gov/vuln/detail/CVE-2019-0199 Base Score: 7.5 HIGH Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
https://nvd.nist.gov/vuln/detail/CVE-2020-1967 Base Score: 7.5 HIGH Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
https://nvd.nist.gov/vuln/detail/CVE-2019-12418 Base Score: 7.0 HIGH Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
https://nvd.nist.gov/vuln/detail/CVE-2019-0221 Base Score: 6.1 MEDIUM Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
https://nvd.nist.gov/vuln/detail/CVE-2019-2684 Base Score: 5.9 MEDIUM Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
https://nvd.nist.gov/vuln/detail/CVE-2020-1935 Base Score: 4.8 MEDIUM Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
https://nvd.nist.gov/vuln/detail/CVE-2018-11784 Base Score: 4.3 MEDIUM Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
Impact
More than Critical. The system is vulnerable. Exploits are available.
Step-by-step Reproduction Instructions
- Navigate to █████████/examples/
You will see the standard examples page. Servlets allow to modify cookies and sessions. 2. Navigate to any non exists address to get the Apache Tomcat version
E.g. ███/examples/Readme
Product, Version, and Configuration (If applicable)
Apache Tomcat/8.5.33
Suggested Mitigation/Remediation Actions
- Upgrade Tomcat
- Remove /examples
- Change the configuration - display a custom 404 page
Impact
More than Critical. The system is vulnerable. Exploits are available. In the An attacker can change session and cookies. Potential sessions interception. CVEs: Critical -1, High - 6, Medium - 4
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 were deployed and error pages were not customised, exposing version information.
Impact
An attacker could change session and cookies, potentially intercepting sessions, and the vulnerable Tomcat version could be exploited using publicly available exploits.
What the attacker needed
None
The fix
The report suggests upgrading Tomcat, removing the examples directory, and configuring a custom 404 page.
How it was found
- Navigate to the examples directory to see the standard examples page.
- Navigate to a non-existent address to see the Tomcat version in the error 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.
The web server had a folder of sample programs left open to anyone. These samples let visitors change their session and cookies, and error messages revealed the server's version, which had known security holes.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.