CVE-2005-4836: Apache Tomcat allows remote attackers to read JSP source files
Summary
CVE-2005-4836: Apache Tomcat allows remote attackers to read JSP source files. Affects org.apache.tomcat:tomcat versions >= 4.1.15, <= 4.1.40. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Apache Tomcat is an open-source web server and servlet container that is used to deploy Java-based web applications. It provides a Java Servlet and JavaServer Pages (JSP) environment for running web applications. The vulnerability in Apache Tomcat versions 4.1.15 through 4.1.40 allows remote attackers to read JSP source files and obtain sensitive information. This vulnerability arises due to the HTTP/1.1 connector not rejecting NULL bytes in a URL when the 'allowLinking' configuration is enabled.
Vulnerability Detail
The vulnerability allows an attacker to read JSP source files, which may contain sensitive information such as database credentials, API keys, or other confidential data. By exploiting this vulnerability, an attacker can gain unauthorized access to the source code and potentially use the obtained information for further attacks or unauthorized actions.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
To disable the 'allowLinking' configuration option, modify the Tomcat configuration file (usually located at conf/server.xml) and set the 'allowLinking' attribute to 'false' in the appropriate Connector element. Here is an example:
<Connector ...
allowLinking="false"
... />
Conclusion
The vulnerability in Apache Tomcat versions 4.1.15 through 4.1.40 allows remote attackers to read JSP source files and obtain sensitive information. It is crucial to upgrade to a non-affected version or apply the recommended workaround to mitigate the risk. For further assistance in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for org.apache.tomcat:tomcat →
FAQ
The vulnerability allows remote attackers to read JSP source files and obtain sensitive information, which can lead to unauthorized access, data breaches, or further exploitation of the compromised system.
The vulnerability affects Apache Tomcat versions 4.1.15 through 4.1.40.
Yes, users can disable the 'allowLinking' configuration option to mitigate the risk. Please refer to the 'workaround' section for instructions.
There may be known exploits targeting this vulnerability. It is recommended to apply the necessary fixes or workarounds as soon as possible to prevent potential attacks.
For more information about this vulnerability, you can refer to the CVE identifier CVE-2005-4836 or consult the official Apache Tomcat documentation and security advisories.
Related vulnerabilities
Recent vulnerabilities recorded for org.apache.tomcat:tomcat.