Bug 884705 (CVE-2013-1927)

Summary: CVE-2013-1927 icedtea-web: GIFAR issue
Product: [Other] Security Response Reporter: Tomas Hoger <thoger>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: adomurad, dbhole, jvanek, omajid, security-response-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: icedtea-web 1.2.3, icedtea-web 1.3.2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-04-17 19:19:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 949094, 949095    
Bug Blocks: 884765    
Description Flags
proposed patch
Suggested reproducer for icedtea-web automated testsuite
Reviwed final patch jvanek: review+

Description Tomas Hoger 2012-12-06 15:39:21 UTC
Current IcedTea-Web versions are affected by GIFAR issue.  It is possible to combine GIF image with Java JAR into a single file, that is both valid GIF as well as valid JAR/ZIP file.  This issue can be used to execute Java applet in the context of the site that allows untrusted users to upload images in GIF format.

This problem was previously fixed in Oracle and IBM Java plugins as CVE-2008-5343 (bug 474790).


Comment 2 jiri vanek 2012-12-07 15:38:59 UTC
Created attachment 659469 [details]
proposed  patch

This patch is fixing the issue. Troubles will come when not just zip jars will be used (and so jar header will change) - eg pack2000 in jdk8.
Otherwise it was quite tested and looks ok.

Comment 3 jiri vanek 2012-12-13 14:36:55 UTC
Created attachment 663002 [details]
Suggested reproducer for icedtea-web automated testsuite

Comment 4 jiri vanek 2012-12-13 14:38:14 UTC
Created attachment 663003 [details]
Reviwed final patch

Comment 13 Murray McAllister 2013-04-17 07:31:17 UTC

This issue was discovered by the Red Hat Security Response Team.

Comment 15 errata-xmlrpc 2013-04-17 18:33:49 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6

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