Inappropriate implementation in FileSystem (CVE-2024-11117)
The FileSystem API's showDirectoryPicker() method allowed saving a .bat file without the usual cross-confirmation popup that appears when downloading such files. An attacker could trick a user into holding the Enter key to accept dialogs and save the file.
Originally disclosed on Chrome VRP
- Fix shipped in 22 months
VULNERABILITY DETAILS
As stated in my another issue Reference added in next line when we download a extension say .exe/.bat it will show pop up for cross confirmation. but by using showDirectoryPicker() Method we can save the .bat file without any popup's
https://bugs.chromium.org/p/chromium/issues/detail?id=1405195
VERSION
Chrome Version: Version 108.0.5359.125 (Official Build) (64-bit)
Operating System: Windows 10 Updated to latest Patch
REPRODUCTION CASE
Poc
- Open the below html file. Click on save the jpg file
- It will show the Directory Picker Dialog
- Approve them
- You can now see the Bat file is saved into the disk without any popup
If we can specify the exact folder to open via showDirectoryPicker Method Then This will have a higher impact which of similar to my above report
We can trick the user to hold enter for 2 Sec this will Accept all the dialogs and save the file.
I have tried open the direct sub folder but it is not possible so it needs User interaction to download a file
CREDIT INFORMATION
Externally reported security bugs may appear in Chrome release notes. If
this bug is included, how would you like to be credited?
Reporter credit: Ameen Basha M K (Acknowledge my name with my profile/ mail id)
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 save a dangerous .bat file without the usual warning, but user interaction (holding Enter) is required.
What the attacker needed
Victim uses Chrome on Windows; victim visits a malicious webpage; victim holds Enter for 2 seconds
How it was found
- Open the provided HTML file and click to save the jpg file.
- A directory picker dialog appears.
- Approve the dialog.
- The .bat file is saved to disk without any popup.
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 dangerous file like a .bat, Chrome normally shows a warning popup. This report found that using a special file-saving feature (showDirectoryPicker) skipped that warning, so a malicious website could save the file without you noticing. The attacker still needed the user to press Enter for a couple of seconds to accept the dialogs.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.