Bug 1724958 (CVE-2019-10182)

Summary: CVE-2019-10182 icedtea-web: path traversal while processing <jar/> elements of JNLP files results in arbitrary file overwrite
Product: [Other] Security Response Reporter: Marian Rehak <mrehak>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: cbuissar, dbhole, jvanek, omajid, security-response-team, yozone, zzambers
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
It was found that icedtea-web did not properly sanitize paths from <jar/> elements in JNLP files. An attacker could trick a victim into running a specially crafted application and use this flaw to upload arbitrary files to arbitrary locations in the context of the user.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-07-31 19:18:21 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: 1725940, 1725941, 1725942, 1725943, 1732553, 1734803    
Bug Blocks: 1724963    

Description Marian Rehak 2019-06-28 07:36:33 UTC
While processing a JNLP file, the href attribute of a <jar/> element by Icedtea-Web is vulnerable to directory traversal.

<jar href="http://localhost/../../../../../XXX.any" version="2.0"/>
Considering the line above, the file XXX.any is saved out of the cache directory, overwriting the destination if it already exists. This is effectively an (over)write-what-where primitive on the filesystem, which could be used to execute arbitrary code (eg. via placing a file in the startup folder, overwriting .bashrc, or similar).

Comment 4 Cedric Buissart 2019-07-22 06:48:20 UTC
Acknowledgments:

Name: Imre Rad

Comment 13 Cedric Buissart 2019-07-31 13:42:44 UTC
Created icedtea-web tracking bugs for this issue:

Affects: fedora-all [bug 1734803]

Comment 14 errata-xmlrpc 2019-07-31 17:52:11 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2019:2004 https://access.redhat.com/errata/RHSA-2019:2004

Comment 15 errata-xmlrpc 2019-07-31 19:13:02 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2019:2003 https://access.redhat.com/errata/RHSA-2019:2003

Comment 16 Product Security DevOps Team 2019-07-31 19:18:21 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2019-10182

Comment 17 Cedric Buissart 2019-08-01 08:42:25 UTC
Mitigation:

No known mitigation.