Skip to content
RCE Disclosed report Intermediate CVE-2017-7821

browser.downloads addon feature may be used for RCE

A browser extension could download and automatically execute a JAR file without user confirmation, bypassing the protection that blocks executables. An attacker could use this to run arbitrary code on the victim's machine.

Abdulrahman Alqabandi Follow

Originally disclosed on Mozilla

  • Fixed in 5 months
  • Paid in 9 months
  • Disclosed after 5 months
Text
Created attachment 8846267
poc.zip

User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36

Steps to reproduce:

I was fiddling with the download feature of webextensions and I noticed you can download and open any files. Of course, immediately I tried executables only to be hit with windows protection. 

However, it seems like JAR files have been overlooked. 

1. Go to 'about:debugging'
2. Unpack attached PoC somewhere
3. Back in 'about:debugging' choose 'Load temp addon' and choose the poc
4. jar file is automatically downloaded and executed.


Actual results:

We are able to download and execute jar files automatically. As you can imagine this is not good.


Expected results:

Jar file should have been blocked from auto executing.

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 download protection did not treat JAR files as executable content, allowing them to be launched without a prompt.

What the attacker needed

Victim installs a malicious extension

The fix

The browser should block JAR files from auto-executing, as the reporter expected.

How it was found

  1. Open the browser's debugging page.
  2. Unpack the provided proof-of-concept add-on.
  3. Load the add-on temporarily from the debugging page.
  4. The JAR file is downloaded and executed automatically.

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.

A browser extension can download files. Normally, the browser warns you before running an executable file. But the reporter found that JAR files (a type of Java program) were not blocked, so they ran automatically. This means a malicious extension could run harmful code on your computer without asking.

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.