SSD Advisory – macOS Finder RCE
A vulnerability in macOS Finder allows inetloc files to execute arbitrary commands when opened, and these files can be embedded in emails. An attacker could trick a user into clicking an attachment, leading to command execution without warning.
ssd-disclosure.com
Published on ssd-disclosure.com
Find out how a vulnerability in macOS Finder system allows remote attackers to trick users into running arbitrary commands.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the case-insensitive check for the file:// prefix in inetloc files allowed bypasses like FiLe:// to execute local files.
Impact
An attacker could execute arbitrary commands on the victim's macOS system without any prompt or warning, but the vendor silently patched the file:// prefix in Big Sur, though a case-mangling bypass (FiLe://) may still work.
What the attacker needed
Victim uses macOS Big Sur or prior; victim clicks the inetloc attachment
The fix
The vulnerability should be fixed by properly blocking all case variations of the file:// prefix in inetloc files.
How it was found
- Create an inetloc file containing a URL with a mixed-case file:// prefix pointing to a local application.
- Attach the inetloc file to an email.
- The victim clicks the attachment, which triggers execution without warning.
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 write-up has not been written yet. The Original tab links to the source.
An inetloc file is a shortcut that tells macOS to open a web address or local file. The bug is that macOS would run a local file (like a program) from such a shortcut without asking the user first. So if someone sends you an email with a malicious shortcut and you click it, your Mac could run a program without any warning.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.