Skip to content
Info disclosure Disclosed report Beginner

Spoofing via filename download (firefox android)

A filename containing newline or carriage return characters could be used to spoof the displayed filename during download in Firefox for Android. An attacker could make a malicious APK file appear as a harmless document file to trick a victim into opening it.

Hafiizh Follow

Originally disclosed on Mozilla

  • Fixed in 12 months
  • Paid in 12 months
  • Disclosed after 12 months
Text
Created attachment 9343473
firefox_downloadspoof.mp4

I found vulnerability via filename donwload using \n  or \r . lead to spoof filename   

step to produce:
1. open http://103.186.0.20/downloadspoof.html or downloadspoof.html 
2. click "open" button

impact : victim can be spoofed will think that it is a document file and even though it is an apk file

The original report as published on Mozilla's Bugzilla, by Hafiizh. 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

Impact

A victim could be tricked into thinking an APK file is a document, potentially leading them to install malicious software.

What the attacker needed

Victim uses Firefox for Android; victim downloads a file with crafted filename; victim clicks the download link

How it was found

  1. Open the provided test page in Firefox for Android.
  2. Click the 'open' button to trigger the download.

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, your browser shows its name. This report says that by putting special invisible line-break characters in the filename, an attacker can make the browser show a different, fake name. That could trick someone into thinking they are opening a safe document when it is actually an Android app that could harm their phone.

What is Info disclosure?

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

More by Hafiizh

View all

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