Skip to content
Info disclosure Disclosed report Intermediate CVE-2024-9395

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.

Hafiizh Follow

Originally disclosed on Mozilla

  • Fixed in 2 months
  • Paid in 2 months
  • Disclosed after 2 months
Text
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

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

  1. Open the provided test page in Firefox for Android.
  2. 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.

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.