Skip to content
Info disclosure Disclosed report Beginner

webkitdirectory could be used to trick users into allowing access to arbitrary folders

The folder upload dialogue in Firefox nightly builds used generic labels ('File upload' and 'Select Folder' or 'Open') that did not clearly indicate that an entire folder and its contents would be uploaded. This lack of clarity could confuse users into granting access to arbitrary folders.

Abdulrahman Alqabandi Follow

Originally disclosed on Mozilla

  • Fixed in 8 days
  • Paid in 5 days
  • Disclosed after 8 days
Text
Created attachment 8781914
PoC file

User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36

Steps to reproduce:

Check attached PoC.

Works only on nightly builds. This was tested on 51.0a1 (2016-08-16)


Actual results:

The folder upload dialogue is not descriptive enough, which could lead to some users being confused what it does exactly.

On Windows 8.1:
Title of folder upload is 'File upload' and the confirmation button is 'Select Folder', nothing that will indicate multiple files will be uploaded, or that a folder will be uploaded.

On Ubuntu:
Title of the dialogue is 'File upload' and the confirmation button is 'Open', again, nothing that indicates you're uploading an entire folder and its files.


Expected results:

The title should be changed to 'Folder upload' and/or the confirmation button should be changed to 'Upload folder'

The original report as published on Mozilla's Bugzilla, by Abdulrahman Alqabandi. 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 dialogue text was not updated to reflect the new folder-upload feature, so it reused generic file-upload labels.

Impact

Users could be confused about what the dialogue does and may allow access to arbitrary folders, potentially uploading more files than intended.

What the attacker needed

Firefox nightly build; user interacts with folder upload

How it was found

  1. Open the attached proof-of-concept file in a nightly build of Firefox.
  2. Trigger the folder upload dialogue.
  3. Observe the dialogue title and confirmation button text on Windows and Ubuntu.

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 a website asks you to upload a folder, your browser shows a confirmation box. In this case, the box just said 'File upload' and 'Select Folder' or 'Open', so you might not realise you are about to share every file inside that folder. The report says this could trick people into giving away more than they intended.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by Abdulrahman Alqabandi

View all

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

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.