Skip to content
RCE Disclosed report Intermediate CVE-2020-6797

Firefox for macOS: extensions with downloads.open permission can execute code on the device using .fileloc files

On macOS, .fileloc files act like shortcuts that can launch local applications, similar to .url files on Windows. A malicious Firefox extension holding the downloads.open permission could download such a file and open it to run arbitrary local apps.

Vladimir Metnew Follow

Originally disclosed on Mozilla

  • Fixed in 59 days
  • Paid in 59 days
  • Disclosed after 59 days
Text
Created attachment 9108939
firefox-extension-fileloc.zip

FF Version: 70.0.1
macOS: 10.15.1 (19B88)

1. .fileloc files behave on macOS similarly to .url files on Windows - as shortcuts that can execute local apps.
2. A malicious extension with `downloads/downloads.open` permissions can download a .fileloc file + execute it to launch arbitrary local apps.
3. It looks like a non-secure feature of macOS(that I'm going to report), so it's not clear what'd be your opinion. I guess you'd like to add this file to your file handling mechanism as well.

PoC opens Calculator.app on Catalina.

The original report as published on Mozilla's Bugzilla, by Vladimir Metnew. 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 handling treats .fileloc files as harmless downloads and opens them without recognising that macOS will launch the referenced application.

Impact

An attacker who can get a malicious extension installed could launch arbitrary local applications on the victim's Mac; the reporter notes the underlying behaviour may be a macOS issue rather than a Firefox one.

What the attacker needed

MacOS victim; malicious extension with downloads.open; user installs the extension

The fix

Firefox should treat .fileloc files as potentially executable and add them to its file handling mechanism, for example by warning or blocking them.

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.

Some files on a computer are not documents but shortcuts that tell the system to start a program. On macOS, a file ending in .fileloc works this way. The report says a browser add-on that is allowed to download and open files could use one of these shortcuts to start any program on the machine.

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 Vladimir Metnew

View all

1 more disclosed report, 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.