Zero-day flaw in Google Admin app allows malicious apps to read its files

Attackers could obtain credentials used to manage Google for Work accounts

Google, Samsung and LG will move to a monthly security patch release for Android devices after a range of software vulnerabilities were recently disclosed.

Google, Samsung and LG will move to a monthly security patch release for Android devices after a range of software vulnerabilities were recently disclosed.

An unpatched vulnerability in the Google Admin application for Android can allow rogue applications to steal credentials that could be used to access Google for Work acccounts.

One of the main aspects of the Android security model is that apps run in their own sandboxes and cannot read each other's sensitive data through the file system. There are APIs for applications to interact with each other and exchange data, but this requires mutual agreement.

But researchers from security consultancy firm MWR InfoSecurity in the U.K. discovered a flaw in the Google Admin app that could be exploited by potentially malicious applications to break into the app's sandbox and read its files.

The flaw lies in the way Google Admin processes and loads URLs received from other applications inside a WebView -- a simplified browser window.

If a rogue application sends Google Admin a request -- or "intent" in Android parlance -- with a URL pointing to a local world-readable HTML file that the rogue app controls, Google Admin will load the file's code in a WebView.

The attacker can put an iframe inside the HTML code that will load the same file again after a one second delay, the MWR researchers explained in an advisory published Thursday. After Google Admin loads the HTML code, but before it attempts to load the iframe, the attacker can replace the original file with one that has the same name but acts as a symbolic link to a file within the Google Admin app, they said.

WebView has a security mechanism called the Same-Origin Policy that is present in all browsers and which prevents a Web page from reading or changing code loaded in an iframe unless both the page and the iframe share the same origin -- domain name and protocol.

Even though the code loaded in the iframe belongs to a Google Admin file, its origin is the same as that of the file from the rogue application thanks to the symlink trick. This means that the original HTML code loaded in the WebView can read the Google Admin file subsequently loaded in the iframe, passing its content to the rogue app.

"The Google Admin app for Android lets the company administrator manage their company's Gmail for Work accounts from his or her Android phone," said Robert Miller, senior security researcher at MWR, via email. "A key file in the Google Admin sandbox is a file holding a token that is used by the app to authenticate itself with the server. A malicious app could exploit the vulnerability found to read this token and attempt to log in to the Google for Work server."

The MWR researchers claim that they reported the vulnerability to Google on March 17, but even after granting the company an extension to the standard 90-day disclosure deadline, it still hasn't been fixed.

"No updated version has been released as of the time of publication," the MWR researchers said in the advisory.

Google did not immediately respond to a request for comment.

Join the Good Gear Guide newsletter!

Error: Please check your email address.

Tags Googlesecuritymobile securityMWR InfoSecurityExploits / vulnerabilitiesmalware

Our Back to Business guide highlights the best products for you to boost your productivity at home, on the road, at the office, or in the classroom.

Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Lucian Constantin

IDG News Service
Show Comments

Essentials

Microsoft L5V-00027 Sculpt Ergonomic Keyboard Desktop

Learn more >

Lexar® JumpDrive® S57 USB 3.0 flash drive

Learn more >

Mobile

Lexar® JumpDrive® S45 USB 3.0 flash drive 

Learn more >

Exec

Lexar® Professional 1800x microSDHC™/microSDXC™ UHS-II cards 

Learn more >

Lexar® JumpDrive® C20c USB Type-C flash drive 

Learn more >

Audio-Technica ATH-ANC70 Noise Cancelling Headphones

Learn more >

HD Pan/Tilt Wi-Fi Camera with Night Vision NC450

Learn more >

Budget

Back To Business Guide

Click for more ›

Most Popular Reviews

Latest News Articles

Resources

PCW Evaluation Team

Michael Hargreaves

Windows 10 for Business / Dell XPS

I’d happily recommend this touchscreen laptop and Windows 10 as a great way to get serious work done at a desk or on the road.

Aysha Strobbe

Windows 10 / HP Spectre

Ultimately, I think the Windows 10 environment is excellent for me as it caters for so many different uses. The inclusion of the Xbox app is also great for when you need some downtime too!

Mark Escubio

Windows 10 / Lenovo Yoga

For me, the Xbox Play Anywhere is a great new feature as it allows you to play your current Xbox games with higher resolutions and better graphics without forking out extra cash for another copy. Although available titles are still scarce, but I’m sure it will grow in time.

Kathy Cassidy

STYLISTIC Q702

First impression on unpacking the Q702 test unit was the solid feel and clean, minimalist styling.

Anthony Grifoni

STYLISTIC Q572

For work use, Microsoft Word and Excel programs pre-installed on the device are adequate for preparing short documents.

Featured Content

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?