FireFox Extension API : .url / .lnk / .local file download lead to Multiple issues
Firefox normally renames downloaded .lnk, .local and .url files to .download, but a browser extension using the downloads API could save them with their original extension. The reporter claims such files can then be used to achieve arbitrary file read, though the text does not explain the mechanism.
Originally disclosed on Mozilla
- Fixed in 43 days
- Paid in 49 days
- Disclosed after 43 days
Created attachment 9312642
manifest.json
Chromium Bug Reference: https://bugs.chromium.org/p/chromium/issues/detail?id=1307930
HI team i have already reported the same in another Place. Now i have found a alternate way to achieve the Same. Kindly have a look in to my below issue for POC Video.
Ref: https://bugzilla.mozilla.org/show_bug.cgi?id=1809923
While visiting a webpage if the download initiate for .lnk/ .local these file types are changed to .download by firefox. But i have found a way to download .lnk/.local/.url Files while lead to Arbitrary File Read etc.( based on file extension)
We can use browser.downloads.download API to download the .lnk/.local/.url file without changing it to .download
FIREFOX VERSION : 108.0.2 (64-bit)
REPRODUCTION CASE:
1. Add the Manifest File to the Extension in about:debugging#/runtime/this-firefox (keep backgroud.js file in same extension folder)
2. Once added Click on the extension
3. You can find the safe.url file is downloaded without renaming
Note: As stated in my previous issue the downloaded .url file can be used to achieve Arbitrary File Read
Same is possible for .lnk and .local too. tested
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 downloads API does not apply the same file-extension renaming that normal browser downloads do.
Impact
The reporter claims the downloaded .url file could be used to achieve arbitrary file read, but the text provides no technical detail or proof of that chain.
What the attacker needed
Victim installs a malicious extension; extension uses the downloads API
How it was found
- Load the extension manifest in about:debugging.
- Click the extension.
- Observe that the .url file is downloaded without being renamed.
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.
Firefox tries to protect users by changing the extension of certain risky download files, such as .url shortcuts, to .download so they cannot be opened accidentally. This report says a browser extension can bypass that protection and save the file with its original extension. The reporter then claims this can lead to reading arbitrary files, but does not show how.
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.