Bug 974813 (CVE-2013-2185)

Summary: CVE-2013-2185 Tomcat/JBossWeb: Arbitrary file upload via deserialization
Product: [Other] Security Response Reporter: Arun Babu Neelicattu <aneelica>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: agiertli, aneelica, anil.saldhana, bdawidow, cdewolf, chazlett, djorm, dknox, dsirrine, epp-bugs, grocha, hfnukal, jawilson, jdg-bugs, jdoyle, jkurik, jpallich, lgao, myarboro, pcheung, pgier, pslavice, rcvalle, rsvoboda, security-response-team, theute, ttarrant, twalsh, vdanen, vtunka, weli
Target Milestone: ---Keywords: Reopened, Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: tomcat-coyote 7.0.40 Doc Type: Bug Fix
Doc Text:
It was possible for an attacker, using complex and limited conditions, to upload a malicious JSP to a Tomcat server and then trigger the execution of that JSP.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-04-02 10:50:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 989312, 989313, 989314, 1140317    
Bug Blocks: 974815, 1013996, 1140316    

Description Arun Babu Neelicattu 2013-06-16 05:25:42 UTC
A poison null byte flaw was found in the implementation of the DiskFileItem class. A remote attacker able to supply a serialized instance of the DiskFileItem class, which will be deserialized on a server, could use this flaw to write arbitrary content to any location on the server that is permitted by the user running the application server process.

Comment 1 David Jorm 2013-06-24 04:59:28 UTC
The Apache Tomcat team does not agree that this is a valid security flaw; they contend that an application performing untrusted deserialization is inherently insecure. However, the issue has been fixed as a code cleanup in this commit:

http://svn.apache.org/viewvc?view=revision&revision=1470435

Comment 8 errata-xmlrpc 2013-09-03 20:07:26 UTC
This issue has been addressed in following products:

  Red Hat JBoss Enterprise Application Platform 6.1.0

Via RHSA-2013:1194 https://rhn.redhat.com/errata/RHSA-2013-1194.html

Comment 9 errata-xmlrpc 2013-09-03 20:07:53 UTC
This issue has been addressed in following products:

  JBEAP 6 for RHEL 5
  JBEAP 6 for RHEL 6

Via RHSA-2013:1193 https://rhn.redhat.com/errata/RHSA-2013-1193.html

Comment 10 errata-xmlrpc 2013-09-16 17:03:01 UTC
This issue has been addressed in following products:

  Red Hat JBoss Portal 6.0.0

Via RHSA-2013:1265 https://rhn.redhat.com/errata/RHSA-2013-1265.html

Comment 21 Arun Babu Neelicattu 2014-09-15 07:09:23 UTC
Statement:

This issue did not affect the versions of Tomcat as shipped with Red Hat Enterprise Linux 5, 6 and 7; and Red Hat JBoss Web Server 1 and 2.

This issue did not affect the versions of JBoss Web as shipped with Red Hat JBoss BRMS 5; Red Hat JBoss Data Grid 6; Red Hat JBoss Data Virtualization 6; Red Hat JBoss Enterprise Application Platform 4 and 5; Red Hat JBoss Fuse Service Works 6; Red Hat JBoss Operations Network 3; Red Hat JBoss Portal Platform 5; Red Hat JBoss SOA Platform 4 and 5; and Red Hat JBoss Web Platform 5.

Comment 22 Arun Babu Neelicattu 2014-09-15 07:27:39 UTC
*** Bug 1140314 has been marked as a duplicate of this bug. ***