download protection bypass on macOS with .inetloc
An .inetloc file on macOS was not covered by Firefox's download protection blacklist, unlike the similar .fileloc type. An attacker could deliver such a file that, when opened, runs arbitrary commands without any warning to the user.
Originally disclosed on Mozilla
- Fixed in 30 days
- Paid in 35 days
- Disclosed after 30 days
Created attachment 9242268
test.inetloc
firefox Version: 92.0
Operating System: macOS Big Sur, 11.5.2
Vladimir Metnew reported that .fileloc files on macOS can bypass download protection in 2019:https://bugzilla.mozilla.org/show_bug.cgi?id=1596668
However, .inetloc files are similar to .fileloc files and .inetloc is not in blacklist.
When open a .fileloc file in firefox, firefox will warn:" 'test.fileloc' is an executable file. Executable files may contain viruses or other malicious code that could harm your computer. Use caution when opening this file. Are you sure you want to launch 'test.fileloc'? "
But when open a .inetloc file in firefox there is no warning and attacker may execute arbitrary commands.
I provided a test.inetloc which can open calc for test.
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 download protection blacklist omitted the .inetloc file type even though it behaves like the already-blocked .fileloc type.
Impact
An attacker could get arbitrary commands executed on a victim's Mac without the usual executable-file warning, though the user still has to open the downloaded file.
What the attacker needed
MacOS victim; victim downloads and opens the file
How it was found
- Download an .inetloc file in Firefox on macOS.
- Open the downloaded file.
- Observe that no warning is shown and the file's command runs.
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 file types can carry instructions that make a computer run a program. Firefox keeps a list of dangerous file types and warns you before opening them. This report says one such type on macOS was missing from that list, so a downloaded file could run commands silently.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.