Skip to content
File upload Disclosed report Intermediate CVE-2023-37206

Arbitrary File read via social engineering and re-uploading directories containing symbolic links

Firefox follows symbolic links when a user uploads a folder, so an attacker can trick a victim into uploading arbitrary files from their system. The report demonstrates this by having the victim unzip a downloaded archive and upload the resulting folder, which contains symbolic links pointing to sensitive files.

Ameen Basha M K Follow

Originally disclosed on Mozilla

  • Fixed in 4 months
  • Paid in 4 months
  • Disclosed after 4 months
Text
Hi team. While looking for Firefox File upload feature and digging more about my another report (.desktop/.symlink) download. i have found a interesting exploit which can lead you to upload Arbitrary File.

Note: Chrome Fix this issue already

Ref: https://bugs.chromium.org/p/chromium/issues/detail?id=1345275

Root Cause: While opening/uploading a file firefox follows the symbolic link which allows to upload arbitrary file (many of the user doen't aware about the symbolic link so major of the victim will fall on this.)

Mac also support the symblink so i hope the same is vulnerable on Mac too.

POC:
1. Open the Html file
2. unzip the downloaded file.
3. Upload the folder 
4. Boom Some other arbitrary files are uploaded.

Note: I have attached the POC files used in the Video (Also attached the POC Video)

In the POC Video i have shown the same with chrome. which was already fixed.

The original report as published on Mozilla's Bugzilla, by Ameen Basha M K. 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

Impact

An attacker could read arbitrary files from a victim's system if the victim uploads a crafted folder containing symbolic links, though the report notes Chrome has already fixed this issue.

What the attacker needed

Victim uses Firefox; victim downloads and unzips a file; victim uploads the folder

How it was found

  1. Open the provided HTML file.
  2. Unzip the downloaded file.
  3. Upload the folder.
  4. Arbitrary files are uploaded.

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 symbolic link is like a shortcut that points to another file. When you upload a folder in Firefox, it follows these shortcuts and uploads the real files they point to, even if those files are outside the folder. An attacker can give you a folder full of shortcuts to private files, and when you upload it, those private files get sent to the attacker.

What is File upload?

An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.

More by Ameen Basha M K

View all

23 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.

Unrestricted file upload

The lesson behind this report.

An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.