Skip to content
RCE Disclosed report Intermediate CVE-2019-11696

JNLP should be treated as executable

The browser does not treat JNLP files as executable, unlike JAR files, even though they can launch Java applications. An attacker could sign a malicious JNLP file with a rogue certificate to bypass restricted mode and execute code.

Abdulrahman Alqabandi Follow

Originally disclosed on Mozilla

  • Fixed in 18 months
  • Paid in 19 months
  • Disclosed after 18 months
Text
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36

Steps to reproduce:

The .JNLP (Java web start app) should be treated as executable.

Visit: https://docs.oracle.com/javase/tutorial/deployment/webstart/deploying.html
Press 'Launch' 


Actual results:

The downloaded file is not treated as executable. 


Expected results:

Given that the result of this file is that Java is executed then this should be the same as .jar files. Granted, initially these files are always opened with restricted mode, but apparently they can be signed to bypass this. I don't think it's far fetched to imagine someone malicious is capable of signing these with rogue certs.

Also, (hate to do this) but Google Chrome treats it as dangerous.

The original report as published on Mozilla's Bugzilla, by Abdulrahman Alqabandi. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

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 browser's file handling does not classify JNLP files as executable, so it does not apply the same warnings or restrictions as for JAR files.

Impact

An attacker could sign a malicious JNLP file with a rogue certificate to bypass restricted mode and execute code, though the report only claims this is possible, not demonstrated.

What the attacker needed

Victim downloads a JNLP file; attacker signs JNLP with rogue certificate

How it was found

  1. Visit the Oracle Java Web Start tutorial page.
  2. Press the 'Launch' button to download a JNLP file.
  3. Observe that the downloaded file is not treated as executable.

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.

JNLP files are used to start Java applications from the web. The report says the browser should warn about them like it does for .jar files, because they can run code. If not, a bad actor could sign one with a fake certificate and run harmful code on your computer.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by Abdulrahman Alqabandi

View all

33 more disclosed reports, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.