Skip to content
File upload Disclosed report Intermediate CVE-2025-4086

Can still spoof via long runs of %0A in filename download (firefox android) (bypass of 1906024)

A previous fix sanitised special characters in download filenames, but newline characters (%0A) were not sanitised. An attacker could craft a filename that makes an APK file appear as a document, spoofing the file type to the victim.

Hafiizh Follow

Originally disclosed on Mozilla

  • Fixed in 51 days
  • Paid in 58 days
  • Disclosed after 51 days
Text
Created attachment 9463679
downloadspoofk1.html

after fixed https://bugzilla.mozilla.org/show_bug.cgi?id=1906024 the special characters have been sanitized to be "" , but i try using %0A on filename, the %0A is not sanitized to be "" it lead to spoof

step to produce:

1. open http://103.186.0.20/downloadspoofk1.html or downloadspoofk1.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

Root cause

Likely the filename sanitisation routine did not strip newline characters, allowing them to alter the displayed filename.

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 clicks a link or opens a page; victim downloads and opens the file

How it was found

  1. Open the provided HTML 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, the browser shows its name. Attackers can put special characters in the name to make a dangerous file (like an app installer) look like a harmless document. This report shows that one such character, a line break, was missed by an earlier fix, so the trick still worked on Firefox for Android.

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

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.