Skip to content
File upload Disclosed report Intermediate

Possible Download of .url Files for Data Exfiltration

Firefox replaces downloaded .lnk shortcut files with a .download extension as a safety measure, but does not do the same for .url shortcut files. An attacker could convince a user to save a malicious .url file and then upload it back, leading to data exfiltration.

Shaheen Fazim Follow

Originally disclosed on Mozilla

  • Fixed in under an hour
  • Paid in 18 days
  • Disclosed after under an hour
Text
Created attachment 9312178
poc.html

In Firefox it has implemented a security measure to protect users by replacing the download of ".lnk" files with ".download" extension. However, there is another file extension that is considered to be more severe than ".lnk", which is the ".url" extension.
A ".url" file, also known as a URL shortcut, is a type of link file that points to a web page or other resource on the internet. These files can be created by the user or by an application, and can be used to quickly access a specific webpage. However, if a ".url" file is maliciously created by an attacker, it can contain a script or other code that will execute automatically when the file is opened. This can lead to the execution of malware, the stealing of personal information, or other malicious activity.

hence made a POC which uses this method by convincing the user to save and upload the saved file for data exfiltration.

The original report as published on Mozilla's Bugzilla, by Shaheen Fazim. 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 browser's download-protection list covers .lnk files but omits the equally dangerous .url shortcut extension.

Impact

A user could be persuaded to save and re-upload a .url file, which the author claims enables data exfiltration, though the report gives no technical detail on how the file itself steals data.

What the attacker needed

Victim saves the file; victim uploads the saved file

The fix

Firefox should treat .url downloads the same way it treats .lnk files, renaming them to a non-executable extension.

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 .url file is a small shortcut that points to a web address. Firefox already renames downloaded .lnk shortcut files to a harmless .download extension so they cannot be opened by accident, but it leaves .url files alone. The report argues that a tricked user could save such a file and send it back, which the author calls data exfiltration.

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 Shaheen Fazim

View all

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