Skip to content
Misconfiguration Disclosed report Advanced CVE-2020-6797CVE-2020-6402

Uncovering file quarantine and UX security issues in macOS apps ( .terminal, .fileloc and .url)

Many popular macOS apps with file-sharing features did not pass downloaded files to the operating system's quarantine mechanism, so files that should have been flagged as untrusted could be opened without that warning. The researcher also found that macOS handled .fileloc and .url shortcut files in a way that let a shortcut run an arbitrary local file by its full path, which led to browser bugs.

metnew Follow

Originally disclosed on HackerOne

  • Fixed in 12 months
  • Paid in 12 months
  • Disclosed after 12 months

Slides : https://docs.google.com/presentation/d/19WeQbqc_OKnrSv1I3Z4sm-oNAf6IVzHwRyQP4i9Bv_Y/edit#slide=id.g758ad3e042_23_231 See Blogpost for more details - https://medium.com/@metnew/exploiting-popular-macos-apps-with-a-single-terminal-file-f6c2efdfedaa

Summary

Popular macOS apps with a file-sharing functionality didn't delegate file quarantine to OS leading to File Quarantine bypass (Windows MOTW analogue) for downloaded files. The vulnerability has low/moderate impact, but it can be combined with other custom behaviours, and UX features to increase the severity.

During the research, I also discovered two "insecure features" in macOS: dangerous handling of .fileloc and .url shortcut files, those allow executing arbitrary local files by the full path at shortcut file opening. This behaviour allowed me to discover two Chrome and Firefox bugs: CVE-2020–6797, CVE-2020–6402

Affected Apps

More than 20 apps, some of these products are on H1, some not and they deny disclosing the report.

.fileloc:

  • Firefox - CVE-2020-6797
  • Chrome - CVE-2020-6402

.url file handling was fixed in macOS Catalina beta.

Impact

Please, refer to the blogpost and slides.

The original report as published on HackerOne, by metnew. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 apps wrote downloaded files to disk themselves instead of handing them to the OS quarantine API, and macOS shortcut handlers resolved and launched local paths without adequate checks.

Impact

The quarantine bypass has low to moderate impact on its own but could be combined with other app behaviours and UX features to raise severity; the shortcut handling allowed executing arbitrary local files by full path, and the .url issue was fixed in a macOS Catalina beta.

What the attacker needed

A macOS app that saves downloads itself; a downloaded malicious file; victim opens the file

The fix

The text says several apps fixed the issue and that .url handling was fixed in a macOS Catalina beta, but it does not describe the fix itself.

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.

When you download a file on a Mac, the system normally marks it as coming from the internet and warns you before it opens. Some apps saved files themselves and skipped that marking, so the warning never appeared. Separately, shortcut files that point to other files could be abused to launch a program already on the machine.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

More by metnew

View all

25 more disclosed reports, best first.

More from Internet Bug Bounty

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.