Facebook Google Plus Twitter LinkedIn YouTube RSS Menu Search Resource - BlogResource - WebinarResource - ReportResource - Eventicons_066 icons_067icons_068icons_069icons_070

[R1] GlassFish 4.x Denial of Service

High

Synopsis

While developing a Nessus plugin for CVE-2017-1000028, Tenable found a new remote unauthenticated denial of service vulnerability in GlassFish 4.1.2 and below. The vulnerability is a result of an infinite loop in the normalize() method in com.sun.jsftemplating.util.fileStreamer.ResourceContentSource. A patch for the infinite loop was published in early April.

The jsftemplating package is used by the GlassFish 4.1.2 admin console. In order to trigger the the infinite loop an unauthenticated remote attacker simply needs to create an HTTP request where "../" appears but is not immediately preceded by a "/". For example:

curl -k --connect-timeout 1 --max-time 1 'https://[target]:4848/resource/gonnados../mkay/done'

Tenable did not find GlassFish 5.0 and above to be vulnerable to this attack since they no longer use the jsftemplating package for the admin console. None the less, the GlassFish master branch did pull in the fixed version of jsftemplating in late April.

Solution

Currently there is no solution for this vulnerability in GlassFish 4.1.2 and below.

Disclosure Timeline

03-06-2018 - Encrypted report sent to [email protected]. 90-day disclosure date set for June 5, 2018.
03-06-2018 - Oracle acknowledges receipt of the report.
04-17-2018 - Tenable asks Oracle for status.
04-19-2018 - Oracle says team is working on a fix.
05-25-2018 - Tenable again asks Oracle for status. Reminds Oracle of the 90 day deadline.
06-01-2018 - Oracle reports the bug has been fixed on GitHub and being addressed "in supported products."

All information within TRA advisories is provided “as is”, without warranty of any kind, including the implied warranties of merchantability and fitness for a particular purpose, and with no guarantee of completeness, accuracy, or timeliness. Individuals and organizations are responsible for assessing the impact of any actual or potential security vulnerability.

Tenable takes product security very seriously. If you believe you have found a vulnerability in one of our products, we ask that you please work with us to quickly resolve it in order to protect customers. Tenable believes in responding quickly to such reports, maintaining communication with researchers, and providing a solution in short order.

For more details on submitting vulnerability information, please see our Vulnerability Reporting Guidelines page.

If you have questions or corrections about this advisory, please email [email protected]

Risk Information

Tenable Advisory ID: TRA-2018-16
Credit:
Artem Metla
CVSSv2 Base / Temporal Score:
7.8 / 7.4
CVSSv2 Vector:
AV:N/AC:L/Au:N/C:N/I:N/A:C
Risk Factor:
High

Advisory Timeline

06-12-2018 - [R1] Initial Release