S4E just found a high-severity finding from top 10 tcp port service scan
medium·Misconfiguration·Updated Aug 4, 2025

Apache Tomcat Security Misconfiguration Scanner

This scanner detects the use of Apache Tomcat Security Misconfiguration in digital assets. Directory listing is enabled on the Apache Tomcat server, allowing users to view the contents of web directories. This condition could lead to unauthorized access to sensitive files and potential information disclosure.

Est. Time~10 seconds
Scan TypeSingle Scan
Targetsurl
CostFree
3k
Times Used
continuous scan runs
3.4k
Continuously Checked
assets under CS
0
Vulnerabilities Found
confirmed findings
References
Detail

Apache Tomcat is an open-source implementation of the Java Servlet, JavaServer Pages, and Java Expression Language. It is widely used by developers and companies for running large-scale applications, web services, and dynamic content serving. Apache Tomcat is deployed in numerous enterprise environments due to its robust performance and lightweight footprint. It can be found in many sectors, including finance, telecommunications, and software development. Many organizations rely on Tomcat to serve their applications, making it a critical component for ensuring application security. Its modular architecture allows easy integration, management, and scaling.

The vulnerability detected in Apache Tomcat involves an enabled directory listing, which poses a risk of information disclosure. Directory listing allows users or attackers to view the contents of web directories, potentially leading to unauthorized access to sensitive files. If sensitive configurations or data files are exposed, an attacker could exploit this information to launch further attacks or take control of the system. This condition is classified as a security misconfiguration, and addressing it is crucial to prevent unauthorized access and data leaks. It is essential to disable directory listing to safeguard sensitive data and configurations from exposure.

The vulnerability involves improper configuration settings within the Apache Tomcat server setup. Specifically, the 'listings' parameter in the web.xml file under the DefaultServlet must be adjusted to prevent directory listing. When left as 'true', anyone with access to the server can browse directory contents without any restrictions. The scanner detects the presence of directory listing by checking for specific words and phrases in the HTML body and HTTP headers of server responses. Detecting directory listing is vital, as attackers could exploit this misconfiguration to gather information for elaborate attacks.

If exploited, this vulnerability could result in unauthorized data access and potential data breaches. Attackers may obtain sensitive information, including configuration files, databases, and application keys, leading to identity theft or unauthorized transactions. The exposure of such data can undermine the organization's credibility, resulting in legal and financial consequences. Further exploitation could involve uploading malicious scripts or files, increasing the risk to the server and its data integrity. Timely detection and remediation are required to prevent exploitation and ensure compliance with security standards.

REFERENCES

Solution Advice
  • Disable directory listings by setting the listings parameter to false in the web.xml file under the DefaultServlet.
  • Regularly review and update configuration files to prevent unauthorized directory browsing and protect sensitive files.
  • Employ access controls and authentication mechanisms to limit who can view directory contents.
  • Periodically conduct security audits to identify and correct misconfigurations.
  • Keep your Apache Tomcat server and all software components updated to the latest versions to ensure optimal security posture.

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

11,000+ scanners. Free to start. No credit card required.

Apache Tomcat Security Misconfiguration Scanner | S4E