Application-specific passwords weaken Google's two-factor authentication, researchers say

Researchers found a method to hijack Google accounts using application-specific passwords

Researchers from two-factor authentication provider Duo Security found a loophole in Google's authentication system that allowed them to bypass the company's 2-step login verification by abusing the unique passwords used to connect individual applications to Google accounts.

According to the Duo Security researchers, Google fixed the flaw on Feb. 21, but the incident highlights the fact that Google's application-specific passwords don't provide granular control over account data.

When enabled, Google's 2-step verification system requires the input of unique codes in addition to the account's regular password in order to log in. This is designed to prevent accounts from being hijacked even when the password is compromised. The unique codes can either be received at a phone number associated with the account or can be generated using a smartphone application. 

However, 2-step verification only works when logging in through Google's site. In order to accommodate desktop e-mail clients, chat programs, calendar applications and so on, Google introduced the concept of application-specific passwords (ASPs). These are randomly-generated passwords that allow applications to access the account without the need of a second authentication factor. ASPs can be revoked at any time without changing the account's main password.

The problem is, "ASPs are -- in terms of enforcement -- not actually application-specific at all!" the Duo Security researchers said Monday in a blog post. "If you create an ASP for use in (for example) an XMPP chat client, that same ASP can also be used to read your email over IMAP, or grab your calendar events with CalDAV."

The researchers found a flaw in the auto-login mechanism implemented in Chrome in the latest versions of Android that allowed them to use an ASP to gain access to a Google account's recovery and 2-step verification settings.

In essence, the flaw could have allowed an attacker who stole an ASP for a Google account to change the mobile phone number and recovery email address associated with that account or even disable 2-step verification altogether.

"Given nothing but a username, an ASP, and a single request to https://android.clients.google.com/auth, we can log into any Google web property without any login prompt (or 2-step verification)!" the Duo Security researchers said. "This is no longer the case as of February 21st, when Google engineers pushed a fix to close this loophole."

In addition to fixing the issue, Google apparently also changed the message displayed after generating an application-specific password in order to warn users that "this password grants complete access to your Google Account."

"We think it's a rather significant hole in a strong authentication system if a user still has some form of 'password' that is sufficient to take over full control of his account," the Duo Security researchers said. "However, we're still confident that -- even before rolling out their fix -- enabling Google's 2-step verification was unequivocally better than not doing so."

That said, the researchers would like to see Google implement some kind of mechanism similar to OAuth tokens that would allow restricting the privileges of every individual application-specific password.

Google did not immediately respond to a request for comment about this flaw or possible plans to implement more granular control for application-specific passwords in the future.

Join the CSO newsletter!

Error: Please check your email address.

Tags Googlesecurityinternet

More about Google

Show Comments

Featured Whitepapers

Editor's Recommendations

Solution Centres

Stories by Lucian Constantin

Latest Videos

  • 150x50

    CSO Webinar: The Human Factor - Your people are your biggest security weakness

    ​Speakers: David Lacey, Researcher and former CISO Royal Mail David Turner - Global Risk Management Expert Mark Guntrip - Group Manager, Email Protection, Proofpoint

    Play Video

  • 150x50

    CSO Webinar: Current ransomware defences are failing – but machine learning can drive a more proactive solution

    Speakers • Ty Miller, Director, Threat Intelligence • Mark Gregory, Leader, Network Engineering Research Group, RMIT • Jeff Lanza, Retired FBI Agent (USA) • Andy Solterbeck, VP Asia Pacific, Cylance • David Braue, CSO MC/Moderator What to expect: ​Hear from industry experts on the local and global ransomware threat landscape. Explore a new approach to dealing with ransomware using machine-learning techniques and by thinking about the problem in a fundamentally different way. Apply techniques for gathering insight into ransomware behaviour and find out what elements must go into a truly effective ransomware defence. Get a first-hand look at how ransomware actually works in practice, and how machine-learning techniques can pick up on its activities long before your employees do.

    Play Video

  • 150x50

    CSO Webinar: Get real about metadata to avoid a false sense of security

    Speakers: • Anthony Caruana – CSO MC and moderator • Ian Farquhar, Worldwide Virtual Security Team Lead, Gigamon • John Lindsay, Former CTO, iiNet • Skeeve Stevens, Futurist, Future Sumo • David Vaile - Vice chair of APF, Co-Convenor of the Cyberspace Law And Policy Community, UNSW Law Faculty This webinar covers: - A 101 on metadata - what it is and how to use it - Insight into a typical attack, what happens and what we would find when looking into the metadata - How to collect metadata, use this to detect attacks and get greater insight into how you can use this to protect your organisation - Learn how much raw data and metadata to retain and how long for - Get a reality check on how you're using your metadata and if this is enough to secure your organisation

    Play Video

  • 150x50

    CSO Webinar: How banking trojans work and how you can stop them

    CSO Webinar: How banking trojans work and how you can stop them Featuring: • John Baird, Director of Global Technology Production, Deutsche Bank • Samantha Macleod, GM Cyber Security, ME Bank • Sherrod DeGrippo, Director of Emerging Threats, Proofpoint (USA)

    Play Video

  • 150x50

    IDG Live Webinar:The right collaboration strategy will help your business take flight

    Speakers - Mike Harris, Engineering Services Manager, Jetstar - Christopher Johnson, IT Director APAC, 20th Century Fox - Brent Maxwell, Director of Information Systems, THE ICONIC - IDG MC/Moderator Anthony Caruana

    Play Video

More videos

Blog Posts

Market Place