Skip to content
Path traversal Advisory Intermediate CVE-2019-2449

Oracle Java jnlp Protocol Directory Traversal Arbitrary File Deletion Vulnerability

The jnlp: protocol handler in Oracle Java did not properly validate user-supplied paths before using them in file operations. A remote attacker could exploit this to delete arbitrary files on a vulnerable system, provided the user visited a malicious page or opened a malicious file.

rgod of 9sg Security Team - [email protected] Follow

Originally disclosed on Zero Day Initiative

Medium 5.9 View original

This vulnerability allows remote attackers to delete arbitrary files on vulnerable installations of Oracle Java. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely, the jnlp: protocol handler failed to sanitise path traversal sequences (such as '../') in user-supplied URIs before using them in file deletion operations.

Impact

An attacker could delete arbitrary files with the privileges of the current user, but only if the user first visited a malicious page or opened a malicious file.

What the attacker needed

Victim visits a malicious page or opens a malicious file

The fix

Oracle issued an update to correct this vulnerability.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

This is a flaw in how Java handles special 'jnlp:' links. When a user opens such a link, Java uses the path part to locate files, but it did not check that the path stayed within the intended folder. An attacker could craft a link that points outside that folder, causing Java to delete files it should not touch.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

More by rgod of 9sg Security Team - [email protected]

View all

54 more disclosed reports, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.