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.
- Fixed in 51 days
- Paid in 58 days
- Disclosed after 51 days
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
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
- Open the provided HTML page in Firefox for Android.
- 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.