Spoofing via long runs of spaces in filename download (firefox android)
A file download on Firefox for Android did not sanitise long runs of spaces in the filename, so a malicious APK could be displayed with a name that looked like a document. An attacker could use this to trick a victim into thinking they were opening a harmless document rather than an installable app.
- Fixed in 2 months
- Paid in 2 months
- Disclosed after 2 months
Created attachment 9410942
video6064628473471701113.mp4
after fixed https://bugzilla.mozilla.org/show_bug.cgi?id=1843032 the special characters have been sanitized to be "_" , but i try using space on filename, the space is not sanitized to be "_" it lead to spoof
step to produce:
1.open http://103.186.0.20/downloadspoofk.html or downloadspoofk.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 sanitiser only replaced a fixed list of special characters and did not collapse or replace runs of whitespace, so the displayed name could be padded to hide the real extension.
Impact
A victim could be misled into believing an APK is a document file, though the report does not show the full download or install flow.
What the attacker needed
Firefox for Android; victim opens a crafted page; victim taps the download button
How it was found
- Open the provided test page in Firefox for Android.
- Tap 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 a browser saves or shows a downloaded file, it displays the file's name. Some characters are dangerous because they can make the name look like something else, so browsers replace them with an underscore. Here, long runs of spaces were not replaced, letting an app file appear to have a document-like name.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.