Skip to content
Info disclosure Disclosed report Intermediate CVE-2023-25734

.url extension Download leads to Arbitrary File Read

Firefox renames dangerous download extensions such as .lnk and .local to .download, but it missed the .url extension, so a page could deliver a .url file unchanged. Because a .url file can point to a local file, uploading that file back through the page's upload button let the attacker read a local system file.

Ameen Basha M K Follow

Originally disclosed on Mozilla

  • Fixed in 15 days
  • Paid in 19 days
  • Disclosed after 15 days
Text
Created attachment 9311999
Firefox - UrlExtension Dangerous File Extension.mp4

Chromium Bug Reference: https://bugs.chromium.org/p/chromium/issues/detail?id=1307930

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 .url File while lead to Arbitrary File Read

Note: .local/ .lnk are already restricted and .url is missed

We can use Blob Method with type text to download the .url file without changing it to .download

FIREFOX VERSION : 108.0.2 (64-bit)

REPRODUCTION CASE:

.Url Download POC
1. Open the Below Attached HTML
2. You can See the .Url file Downloaded

.Url Download Arbitrary File Read POC
1. Open the Below Same Attached HTML
2. You can See the .URL File Downloaded
3. Upload the same file in the Upload Button
4. You can See the content of system.ini file

I have also attached the POC Video for your reference

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

Root cause

Likely the download extension blocklist omitted .url, so the browser saved it without the .download rename applied to other dangerous types.

Impact

An attacker could cause a victim to download a .url file and, if the page offers an upload feature, read a local file from the victim's machine; the report does not show this working without the upload step.

What the attacker needed

Victim uses Firefox 108.0.2; victim opens attacker page; page offers an upload feature

How it was found

  1. Open the attached HTML page in Firefox.
  2. Observe that a .url file is downloaded without being renamed.
  3. Upload that same file using the page's upload button.
  4. Observe the contents of a local system file being displayed.

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, the browser sometimes renames risky file types so they cannot run automatically. Firefox did this for some types but forgot one, so a website could hand you a file that points at a file on your own computer. If a page then lets you upload files, that local file could be sent back and its contents shown to the attacker.

What is Info disclosure?

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

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.

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.