Skip to content
Info disclosure Disclosed report Beginner CVE-2020-1938CVE-2019-0232CVE-2019-17563CVE-2019-10072CVE-2019-0199CVE-2020-1967CVE-2019-12418CVE-2019-0221CVE-2019-2684CVE-2020-1935CVE-2018-11784

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.

pvm Follow

Originally disclosed on HackerOne

  • Triaged in under an hour
  • Fixed in 22 days
  • Disclosed after 28 days

Summary: There are multiple issues found on ███:

  1. ███████/examples/ - Apache Tomcat examples are available for public. Multiple issues - session and cookies manipulation, internals IP disclosure.
  2. Error page contains information about Apache Tomcat version
  3. Reported Tomcat version is vulnerable. Multiple CVEs - critical, high and medium

Description:

  1. Examples are available by link: ███████/examples/

  2. Information disclosure about Apache Tomcat version

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

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

  1. Upgrade Tomcat
  2. Remove /examples
  3. 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

The original report as published on HackerOne, by pvm. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Navigate to the examples directory to see the standard examples page.
  2. 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.

More by pvm

View all

2 more disclosed reports, best first.

More from U.S. Dept Of Defense

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.