Closed Bug 1837833 Opened 3 years ago Closed 3 years ago

Spoofing Download Dialog in Firefox for Android

Categories

(Firefox for Android :: Downloads, defect, P2)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1791300

People

(Reporter: fazim.pentester, Unassigned)

References

Details

(Keywords: reporter-external, Whiteboard: [reporter-external] [client-bounty-form] [verif?])

Attachments

(2 files)

Attached file poc.html

In Firefox for Android, an attacker could spoof the download dialog using the below proof-of-concept. Here, the victim visits an attacker-controlled site and is asked to update the browser. When clicked, the victim is redirected to the official Mozilla site with the download dialog opened there. The attacker could also use the 'onload' event to directly execute this without a click. This method is most effective when sent via email, with hidden href, and the victim is directly redirected to the spoofed page.

Steps to Reproduce:

  1. Download the file poc.html to a folder
  2. Start a Python server on the same folder by running the command python -m http.server 8080.
  3. Open the Android Firefox browser and navigate to the server at http://{YOUR-SERVER-IP}:8080/poc.html to Begin testing.

Video Demonstration: https://youtu.be/8yQtULpWkJQ (YouTube Unlisted)

Flags: sec-bounty?
Attached video onload.mp4
Group: firefox-core-security → mobile-core-security
Component: Security → Downloads
Product: Firefox → Fenix

The same spoofing method works with Chrome for Android, and it is also vulnerable.

(From Google Chrome Team)

I agree this is a bit misleading. Maybe the prompt shouldn't be displayed when the current tab displayed is different from the one who initiated the download? Or, maybe we should display the origin of the initiator?

Shaheen, thanks for the POC. I'll make sure this bug gets triaged.

Severity: -- → S2
Priority: -- → P2
See Also: → CVE-2024-6605

Thank you. It appears that the Intent Dialogue is also vulnerable to a similar attack. I have opened a separate issue to address this vulnerability.

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Duplicate of bug: 1813518
Resolution: --- → DUPLICATE
Flags: sec-bounty? → sec-bounty-
Duplicate of bug: 1791300
No longer duplicate of bug: 1813518
Group: mobile-core-security
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: