Researchers bypass PayPal's two-factor authentication system

An API and mobile app loophole allowed access to 2FA-enabled accounts with only a user name and password, researchers from Duo Security said

PayPal was one of the first large online services providers to offer two-factor authentication to its users, but until recently the company's implementation had a loophole that could have allowed attackers to bypass this additional protection.

Two-factor authentication (2FA) systems prevent hackers from misusing stolen user names and passwords by requiring an additional randomly generated security code during the authentication process. Depending on implementation, the secret codes can be generated using a special mobile application, can be received via text message or can be generated by a physical hardware device.

According to researchers from 2FA provider Duo Security, the PayPal "Security Key" feature -- which is what the payment service provider calls its two-factor authentication system -- could have easily been bypassed until Monday through the company's mobile apps and API (application programming interface).

PayPal mobile apps for iOS and Android do not support 2FA and were designed to lock out users with accounts that have Security Key enabled. However, the blocking was being done post-authentication, after receiving a message from the server to indicate that the account had 2FA enabled.

A developer named Dan Saltman found that by enabling Airplane Mode on iOS right after the PayPal app logged him, he could prevent the server from signaling the presence of 2FA on his account to the app and avoid being locked out. He also discovered that by disabling Airplane Mode a few seconds later, he could start using his PayPal account through the app without restrictions.

Saltman contacted PayPal through its bug bounty program in March, but after failing to receive a status update from the company, took his findings to Duo Security. The security firm's researchers investigated further and were able to also replicate the bypass in PayPal's app for Android, although with less reliability.

Digging deeper for the root cause, the Duo Security researchers analyzed how PayPal mobile apps interacted with the company's authentication API and found that even for accounts with 2FA enabled, the service would provide a session token after logging in with just the user name and password. That session token could then be used through a separate API for mobile clients to perform various account-related activities, including sending money.

The researchers said Wednesday in a blog post that this implementation loophole would have allowed attackers to misuse stolen PayPal user names and passwords, regardless of whether the corresponding accounts had 2FA enabled.

The theft of PayPal credentials is not uncommon and many keylogger and Trojan programs target PayPal accounts in addition to online banking accounts.

PayPal acknowledged the bypass, but downplayed its significance and said that all accounts remain secure.

"Even though 2FA is an additional layer of authentication, PayPal does not depend on 2FA to keep accounts secure," Anuj Nayar, senior director of global initiatives at PayPal said Wednesday in a blog post. "We have extensive fraud and risk detection models and dedicated security teams that work to help keep our customers' accounts secure from fraudulent transactions, everyday."

As a precaution, the company has disabled the ability of customers with 2FA enabled to log in through PayPal mobile apps and other mobile apps, Nayar said. However, those customers can still use their accounts on mobile devices by visiting the PayPal mobile site instead, he said.

It would have been easy for someone else to discover this issue in the past, especially since the problem has likely existed for a long time, said Zach Lanier, a senior security researcher at Duo Security. The strange behavior on iOS where the app briefly showed information about the account before locking the user out was enough for Saltman, who is not a security researcher, to try the airplane-mode trick, he said.

It would have taken someone with a hacker mindset from 30 minutes to an hour to reverse engineer the whole process and figure out what happens underneath, Lanier said. PayPal should have been able to find the underlying issue back in March when Saltman first reported the airplane-mode bypass to the company, he said.

Join the CSO newsletter!

Error: Please check your email address.

Tags Duo Securityonline safetysecuritymobile securityAccess control and authenticationpaypalExploits / vulnerabilities

More about Australian Pharmaceutical IndustriesLanier AustraliaPayPal

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