Skip to content
Mobile Disclosed report

Tap Jacking attack on android mozilla browser

kaleemshaik786 Follow

Originally disclosed on Mozilla

  • Fixed in 9 months
  • Paid in 4 months
  • Disclosed after 9 months
Text
Created attachment 8582863
mozilla tap jacking.zip

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:36.0) Gecko/20100101 Firefox/36.0
Build ID: 20150305021524

Steps to reproduce:

UI Redressing (Tap jacking) attack may trick users into tapping a specifically crafted malicious App popup window (e.g. toast view), making it a gateway for varied threats such as framing attack. Using this technique, a malicious App could potentially trick a user into making purchases, clicking on ads, installing Apps, or even wiping all of the data from the phone

Android Mozilla browser client do not have protection for button tags.So attacker can obscure another window on top of the button can do malicious actions.

To reproduce the steps
1.First you need to analyse whether the button tags have some special property or not
2.Use apktool.jar and decompile the app
3.Go to the layout folder and analyze button tags with a property filetoucheswhenobscured=true




Actual results:

Attacker can obscure on top of window and make the user tap and perform un intended actions.
I have created a POC Where I have removed the account successfully for syncing data.Attacker can do whatever he wants.A malicious application installed in the device can perform this action.

I am attaching the POC video and eclipse project you can import and reproduce the issue. Please see the video 
Video URL
https://www.dropbox.com/s/0zk1m5xhjtc6y25/Mozilla%20Tap%20Jacking.mov?dl=0

You can read more about tap jacking attacks here

https://www.blackhat.com/docs/asia-14/materials/Niemietz/Asia-14-Niemietz-UI-Redressing-Attacks-On-Android-Devices-Revisited.pdf


Expected results:

Remediation:
1 . 'android:targetSdkVersion' should be 2.3 (API 9) and above, as Android does not provide any protection mechanism below API 9.
2 . Protection mechanisms can be implemented through Java (source code) or layout (xml files). For Java, use the following method:
'setFilterTouchesWhenObscured()' or,
For Layout files, use following method: 'android:filterTouchesWhenObscured' in Button tag located inside layout files.

Sample Code
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/textView1"
android:layout_below="@+id/textView1"
android:layout_marginLeft="54dp"
android:layout_marginTop="20dp"
android:text="chat heads"
android:filterTouchesWhenObscured="true"/>

The original report as published on Mozilla's Bugzilla, by kaleemshaik786. 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 medium-severity mobile bug in General. Mozilla made it public on 5 January 2016.

About Mobile

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

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

What is Mobile?

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

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.