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.
Originally disclosed on Mozilla
- Fixed in 18 months
- Paid in 19 months
- Disclosed after 18 months
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.
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
- Visit the Oracle Java Web Start tutorial page.
- Press the 'Launch' button to download a JNLP file.
- 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.