Android Toast Messages can be Abused to Grant Accessibility or Device Admin...

 
 
 
Android Toast Messages can be Abused to Grant Accessibility or Device Admin...

 
xda-developers
Sep 13, 2017 2:30 AM • by Adam Conway
Android Toast Messages can be Abused to Grant Accessibility or Device Admin Privileges

Android is a pretty open platform with a fantastic developer community. Many of these developers will create apps, custom ROMs and more. Some organizations also engage in security testing, such as Palo Alto Networks Unit 42. This group has discovered a vulnerability within the Android Toast Message system, which allows the attacker to create a pseudo-overlay to trick the user into granting dangerous permissions without their knowledge. This is already fixed in the September security update and in Android Oreo, so rest assured that if your phone still receives monthly security patches, or you have a device on Android Oreo, that you are not vulnerable to this attack.

All other Android devices are susceptible to this attack. The way this works is that it exploits toast notifications within Android to bypass the requirement for the "draw on top" ie. overlay permission, which is how the "Cloak and Dagger" exploit worked. The researchers used this exploit to socially engineer users into granting the accessibility service to their attacking application, allowing them to then read all screen contents, key inputs, etc. on the device. They then used the same method to entice the application users to grant administrator access, all while being entirely unaware of the access they just granted. This allows the attacker to install apps, monitor the device, and also opens up for the potential of ransomware.

Android Toast Message Overlay Attack Explained

But how does it actually work? The developers behind the proof of concept shared the actual source code of their attack which contains a more technical explanation behind the vulnerability. But we'll briefly explain how and why this exploit works.

First, you need to consider what a toast message is. They've been around on Android for years now, and you've probably seen plenty of them on your device every single day. Toasts are little messages at the bottom of the screen that usually appear in a grey bubble with a piece of information.

The exploit uses the toast message to create an overlay over the screen without actually requesting or needing the SYSTEM_ALERT_WINDOW permission, which is supposed to be a requirement for any application to draw over your screen. Instead, it pushes the overlay through a toast notification, creating buttons which look like they are for legitimately granting a benign permission or accepting a meaningless prompt but are actually for granting device administrator or accessibility access to the application. It creates two views inside of a toast overlay.

All of this can be done due to a failed permission check. The Android system (pre-Oreo and pre-September security update) does not actually check what is fed through the Android Toast Overlay system, instead granting the permission without checking. This is likely because Google did not foresee the possibility of feeding a view through a toast overlay.

Android 7.1's Attempt at Fixing the Android Toast Overlay Attack

In Android 7.1 it looks like Google tried to block this exploit. There was an introduced time out for toast messages and a limitation created: only 1 toast message per UID, an app's process ID. This was easily bypassed by repeatedly looping and showing more toast overlays instead, so the illusion is given to the user that it is a consistent UI. If a loop was not created, after 3.5 seconds the overlay would disappear and the user would see what the app is actually requesting the user to do – grant device admin or accessibility rights.

Consequences of a Successful Attack

The device administrator or accessibility permissions, when granted to an application, can be easily exploited for many kinds of malicious attacks. Ransomware, keyloggers, and device wipers can all be created using this exploit.

Applications do not need any permissions in order to show a toast message, though obviously the malicious application still needs BIND_ACCESSIBILITY_SERVICE as well as BIND_DEVICE_ADMIN in order to make effective use out of this toast overlay attack. Thus, your best line of defense against this kind of attack if your device is not yet patched is to examine the permissions that an application has defined in its AndroidManifest when installing it. If you install an app and you aren't sure why that app needs an Accessibility Service or Device Admin privileges, then promptly uninstall it and contact the developer.

It's concerning that such a simple part of Android, the lowly toast message, can be exploited to socially engineer a user into granting dangerous permissions. We hope that manufacturers roll out the September security patches as soon as they can to devices in order to protect the millions out there who could easily fall for such an exploit.




Android Advices
Sep 12, 2017 1:16 PM • by Karunakar Donthamshetti
Best Full-Vision Display smartphones, You Should Know

Things have been changing in the tech industry day by day bringing new technology to the mobiles. Now, manufacturers have been looking to develop devices with full vision display which has been few companies already come up with this technology and also other manufacturers would be planning to bring this technology. Few companies have launched their flagship smartphones with 18:9 aspect ratio device with a higher price and as well as few little handset makers have launched budget friendly devices with this technology. So, here we are providing the best full-vision display of smartphone which would offer a budget-friendly price.

Micromax Canvas Infinity:
This phone is priced at just Rs. 9,999 which is now available on Amazon India. It is equipped with a metal body design and is enclosed with a Snapdragon 425 quad-core processor along with Adreno 308 graphics and 3GB of RAM. There is a 32GB of internal storage which is further expandable up to 128GB via microSD card slot. It is a dual SIM phone equipped with 4G LTE connectivity. It comes with a 5.7-inch HD+ IPS screen with 1440 x 720 pixels resolution and is offering a 2.5D curved glass included it.

The Canvas Infinity is backed by a non-removable 2,900mAh capacity battery and is running on the Android 7.1.1 Nougat operating system. It is equipped with a fingerprint sensor which sits below the rear camera. For optics, it has a 13MP rear-facing camera with 5P lens, f/2.0 aperture and LED flash. There is a 16MP selfie camera with 81.5-degree wide angle lens, f/2.0 aperture, and screen flash.
Buy Micromax Canvas Infinity on Amazon India

LG Q6:
This smartphone sports a 5.5-inch FHD+ FullVison display with 18:9 aspect ratio. It has curved corners with minimal bezels. Under the hood, it comes powered by Snapdragon 435 octa-core 1.4GHz processor coupled with Adreno 505 graphics. There is a 32GB of internal memory and packed with a 3GB of RAM. It is enclosed with the latest Android 7.1 Nougat operating system with LG UX 6.0 UI laid on top of it and has dual SIM support which carries 4G LTE network.

This phone is backed by a non-removable 3,000mAh capacity battery, and it doesn't provide a fingerprint sensor, but interestingly, this phone supports Face Recognition feature. It bears a 13MP primary camera with LED flash and has an 8MP front-facing camera. It will be available in Astro Black, Ice Platinum, and Terra Gold color options and is priced at Rs. 14,990.
Buy LG Q6 device on Amazon India

Sharp-Aquos S2:
This smartphone is available to purchase only in China at a price tag of 2499 Yuan (approx. Rs. 23715 / $372 in the U.S.) for the 64GB model, while the high-end variant costs at 3499 Yuan (approx. Rs. 33215 / $521 in the U.S.). It rocks a 5.5-inch display with 2048 x 1080 pixels resolution and has a 2.5D curved screen. Under the hood, this phone offers two models such as Snapdragon 630 octa-core processor with 4GB RAM and 64GB of internal memory, while the other model packed with Snapdragon 660 octa-core processor with 6GB RAM and 128GB storage option.

This phone is running on the Android 7.1.1 Nougat operating system out of the box with Smile Ux and has RoboS assistant. It comes with a dual rear camera setup which includes 12MP + 8MP sensor, and for selfies, it has an 8MP secondary camera. It is backed with a 2930mAh capacity battery, measures 141.8 x 72.04 x 7.9 mm in dimensions and is weighing around 140 grams. It will be available in Black, Green, White and Blue color options.
Buy Sharp Aquos S2 phone on JD.com




 
 

This email has been sent by Froze ONE (isnanmm0@gmail.com). It is the potion result of 'Tech: Topic watch' from the dashboard 'Personal Dashboard', tab 'Tech > Android'. Unsubscribe

 
 
 

Subscribe to receive free email updates:

0 Response to "Android Toast Messages can be Abused to Grant Accessibility or Device Admin..."

Post a Comment