Skip to content
Open redirect Disclosed report Beginner CVE-2024-0953

Firefox for iOS QR Code Scanner does not show the URL for user confirmation before opening it

The QR code scanner in Firefox for iOS opens scanned URLs without showing them for confirmation. An attacker could use a crafted QR code to redirect users to a malicious site.

Lohith Gowda M Follow

Originally disclosed on Mozilla

  • Fixed in 14 months
  • Paid in 37 days
  • Disclosed after 14 months

The QR Code Scanner feature in the Firefox iOS app is vulnerable to an open redirect attack. This vulnerability allows an attacker to redirect users to malicious websites or URLs, potentially leading to phishing attacks or the disclosure of sensitive information.

Steps To Reproduce:

  1. Launch the Firefox iOS app.
  2. Navigate the QR code scanner in the Home page search bar (Top Right Side)
  3. Scan a QR code that contains a specially crafted URL with an external domain.
  4. Create a QR Code with a specially crafted URL using https://www.the-qrcode-generator.com/
  5. Scan a QR code that contains a specially crafted URL with an external domain.
  6. Observe that the app redirects to the external domain without proper validation or user consent

Fix:

  • The QR Code Scanner should validate the URL before redirecting users.
  • Implement proper input validation and URL verification in the QR Code Scanner feature to prevent open redirect vulnerabilities.
  • Apply the same fix for iOS and Android

Impact:

  • This vulnerability could be exploited by attackers to trick users into visiting malicious websites, potentially leading to the theft of personal information, financial fraud, or other security risks.

Supporting materials/ references:

The original report as published on Mozilla's Bugzilla, by Lohith Gowda M. 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 scanner passes the decoded URL directly to the browser without displaying it or asking the user to confirm.

Impact

An attacker could trick users into visiting malicious websites, which may lead to theft of personal information or financial fraud.

What the attacker needed

Firefox for iOS installed; victim scans a malicious QR code

The fix

The scanner should validate the URL and show it to the user for confirmation before opening it, on both iOS and Android.

How it was found

  1. Open the Firefox iOS app.
  2. Find the QR code scanner in the home page search bar.
  3. Scan a QR code that contains a URL pointing to an external domain.
  4. See that the app opens the external domain without asking for confirmation.

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.

A QR code can hold a web address. Normally an app should show you that address and ask before opening it, so you can decide if it is safe. Here the app opened it straight away, so a bad QR code could send you to a harmful site.

What is Open redirect?

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Open redirect

The lesson behind this report.

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.