Apache Tomcat up to 7.0.39 JSP Upload code injection

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
5.5$0-$5k0.00

Summaryinfo

A vulnerability classified as critical was found in Apache Tomcat. This issue affects some unknown processing of the component JSP Upload Handler. Executing a manipulation can lead to code injection. This vulnerability is tracked as CVE-2013-4444. No exploit exists. Upgrading the affected component is advised.

Detailsinfo

A vulnerability has been found in Apache Tomcat (Application Server Software) and classified as critical. This vulnerability affects an unknown function of the component JSP Upload Handler. The manipulation with an unknown input leads to a code injection vulnerability. The CWE definition for the vulnerability is CWE-94. The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. As an impact it is known to affect confidentiality, integrity, and availability. CVE summarizes:

Unrestricted file upload vulnerability in Apache Tomcat 7.x before 7.0.40, in certain situations involving outdated java.io.File code and a custom JMX configuration, allows remote attackers to execute arbitrary code by uploading and accessing a JSP file.

The weakness was disclosed 09/10/2014 by Pierre Ernst with Vmware as Bug CVE-201 as confirmed bug report (Bugzilla). The advisory is available at bugzilla.redhat.com. This vulnerability was named CVE-2013-4444 since 06/12/2013. The attack can be initiated remotely. The successful exploitation requires a single authentication. The technical details are unknown and an exploit is not available. This vulnerability is assigned to T1059 by the MITRE ATT&CK project. The advisory points out:

In very limited circumstances, it was possible for an attacker to upload a malicious JSP to a Tomcat server and then trigger the execution of that JSP. While Remote Code Execution would normally be viewed as a critical vulnerability, the circumstances under which this is possible are, in the view of the Tomcat security team, sufficiently limited that this vulnerability is viewed as important.

The vulnerability scanner Nessus provides a plugin with the ID 66428 (Apache Tomcat 7.0.x < 7.0.40 Multiple Vulnerabilities), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Web Servers. The commercial vulnerability scanner Qualys is able to test this issue with plugin 175599 (Debian Security Update for tomcat7 (DSA 3447-1)). The advisory illustrates:

For this attack to succeed all of the following requirements must be met: 1. Using Oracle Java 1.7.0 update 25 or earlier (or any other Java implementation where java.io.File is vulnerable to null byte injection). 2. A web application must be deployed to a vulnerable version of Tomcat. 3. The web application must use the Servlet 3.0 File Upload feature. 4. A file location within a deployed web application must be writeable by the user the Tomcat process is running as. The Tomcat security documentation recommends against this. 5. A custom listener for JMX connections (e.g. the JmxRemoteListener that is not enabled by default) must be configured and be able to load classes from Tomcat's common class loader (i.e. the custom JMX listener must be placed in Tomcat's lib directory). 6. The custom JMX listener must be bound to an address other than localhost for a remote attack (it is bound to localhost by default). If the custom JMX listener is bound to localhost, a local attack will still be possible. Note that requirements 2 and 3 may be replaced with the following requirement: 7. A web application is deployed that uses Apache Commons File Upload 1.2.1 or earlier.

Upgrading to version 1470437 eliminates this vulnerability. The bug report contains the following remark:

This issue did not affect the versions of tomcat as shipped with Red Hat Enterprise Linux 5, 6, or 7 nor the versions of tomcat as shipped with JBoss Enterprise Web Server.

The vulnerability is also documented in the databases at X-Force (95876), Tenable (66428), SecurityFocus (BID 69728†), SecurityTracker (ID 1030834†) and Vulnerability Center (SBV-46086†). The entries VDB-13218, VDB-56096, VDB-56006 and VDB-56005 are pretty similar. Once again VulDB remains the best source for vulnerability data.

Productinfo

Type

Vendor

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 6.3
VulDB Meta Temp Score: 5.5

VulDB Base Score: 6.3
VulDB Temp Score: 5.5
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

NVD Base Score: 🔍

Exploitinginfo

Class: Code injection
CWE: CWE-94 / CWE-74 / CWE-707
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Yes

Availability: 🔍
Status: Unproven

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 66428
Nessus Name: Apache Tomcat 7.0.x < 7.0.40 Multiple Vulnerabilities
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍

OpenVAS ID: 802384
OpenVAS Name: Apache Tomcat Remote Code Execution Vulnerability - Sep14
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍

Upgrade: Tomcat 1470437

Timelineinfo

06/12/2013 🔍
09/10/2014 +455 days 🔍
09/10/2014 +0 days 🔍
09/10/2014 +0 days 🔍
09/10/2014 +0 days 🔍
09/11/2014 +1 days 🔍
09/11/2014 +0 days 🔍
09/11/2014 +0 days 🔍
02/15/2022 +2714 days 🔍

Sourcesinfo

Vendor: apache.org

Advisory: Bug CVE-201
Researcher: Pierre Ernst
Organization: Vmware
Status: Confirmed
Confirmation: 🔍

CVE: CVE-2013-4444 (🔍)
GCVE (CVE): GCVE-0-2013-4444
GCVE (VulDB): GCVE-100-67522
X-Force: 95876 - Apache Tomcat JSP file upload, Medium Risk
SecurityFocus: 69728 - Apache Tomcat CVE-2013-4444 Arbitrary File Upload Vulnerability
SecurityTracker: 1030834 - Apache Tomcat Bug Lets Remote Users Upload and Execute Arbitrary Code in Certain Cases
Vulnerability Center: 46086 - Apache Tomcat 7.0.0 through 7.0.39 Remote Code Execution via Arbitrary Files Upload, Medium

See also: 🔍

Entryinfo

Created: 09/11/2014 16:24
Updated: 02/15/2022 21:44
Changes: 09/11/2014 16:24 (89), 06/06/2017 08:23 (1), 02/15/2022 21:44 (3)
Complete: 🔍
Cache ID: 216:358:103

Discussion

No comments yet. Languages: en.

Please log in to comment.

Interested in the pricing of exploits?

See the underground prices here!