Skip to content
Mobile Disclosed report Intermediate CVE-2022-22758

Using `tel:` URI to perform USSD attack

A web page could use a tel: URI to pass a USSD code to the phone dialer, and the dialer would execute it and display the device IMEI. An attacker could therefore trigger USSD actions and read the IMEI without the user's clear intent.

Kirtikumar Anandrao Ramchandani Follow

Originally disclosed on Mozilla

  • Fixed in 5 months
  • Paid in 5 months
  • Disclosed after 5 months
Text
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36

Steps to reproduce:

1. Visit https://kirtikumarar.com/mozilla/ussd.html
2. Click on Hyperlink


Actual results:

It sends the complete USSD code to the dialer and shows the IMEI Number. 


Expected results:

It should strip out everything after " * "

The original report as published on Mozilla's Bugzilla, by Kirtikumar Anandrao Ramchandani. 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 tel: URI handler passed the full USSD string to the dialer without stripping characters after the first asterisk, so the dialer executed the complete code.

What the attacker needed

Victim clicks a link; phone with USSD support

How it was found

  1. Open the provided web page in the browser.
  2. Click the hyperlink on the page.

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.

USSD codes are the short star-and-hash commands phones use for things like checking balance. A web link can ask the phone to dial such a code, and here the phone ran the whole command and showed a device identifier (IMEI) instead of stopping at the first star. That means a website could make the phone do things the user did not expect.

What is Mobile?

Flaws specific to Android and iOS apps: exported components, deep links, WebViews and data left on the device.

More by Kirtikumar Anandrao Ramchandani

View all

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

Mobile app vulnerabilities

The lesson behind this report.

Flaws specific to Android and iOS apps: exported components, deep links, WebViews and data left on the device.