Skip to content
XSS Disclosed report

HTML injection in Dialer app's Suggestion Bar via crafted telephone numbers in user's contact list

Muneaki Nishimura Follow

Originally disclosed on Mozilla

  • Fixed in 26 days
  • Paid in 26 days
  • Disclosed after 26 days
Text
Created attachment 8645414
Friend.vcf

Dialer app allows to inject any HTML tags through the suggestion bar. It seems this bug was introduced in Firefox OS v1.1:
https://github.com/mozilla-b2g/gaia/blob/v1.1.0hd/apps/communications/dialer/js/suggestion_bar.js#L140
and it's still there in the latest Firefox OS v2.5 though the code was little bit changed:
https://github.com/mozilla-b2g/gaia/commit/f8a1a15d8e98b0316e8e89682bab9460838fdeed#diff-fbedf9c5945c76df46f13be0f8b33f50R272

Steps to reproduce:
1. Send attached .vcf file to your B2G device through e-mail, MMS and so on.
2. Import the .vcf to your contact list on the device.
3. Open Dialer app and put '090' or '911' then the malicious page is shown on full screen.

In detail, the .vcf file imported your device has one contact entry that name is 'Friend'. It has two mobile numbers one is "911<iframe src=http:a.csrf.jp></iframe>" and another one is "090<iframe src=http:a.csrf.jp>". Here the '090' is a common prefix of mobile phone number in Japan and '911' is (as you know) an emergency number in US. At step 3, when you dial '090' or '911' then the <iframe> in the telephone number field is directly injected to the suggestion bar and the site (http:a.csrf.jp) opens a malicious page on the Dialer. Whenever you dial the number you would be taken to the same malicious page so you are prihibited to make a call to any number started with '090' or '911'.

The original report as published on Mozilla's Bugzilla, by Muneaki Nishimura. 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.

What is known

A high-severity XSS bug in Gaia::Dialer. Mozilla made it public on 4 September 2015.

About XSS

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by Muneaki Nishimura

View all

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

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.