Facebook fixes bug that let hacker takeover any account

Facebook has fixed a serious bug in its password reset feature that gave an attacker endless opportunities to guess a six-digit code and reset an account's password.

The social network has paid researcher Anan Prakash $15,000 for reporting what he says was a “simple vulnerability” but one that could also have let him easily hack into anyone’s Facebook account, view messages, payment card details, and basically any content or information the rightful owner can.

Prakash found Facebook hadn't implemented rate-limiting in its password reset procedure on the beta sites, beta.facebook.com and mbasic.beta.facebook.com.

The researcher explained in a blogpost today that he discovered the bugs while testing the security of Facebook’s password reset feature on its main site.

In the event a user forgets their Facebook password, they can click the “Forgotten your password” link. Facebook provides the option to reset a password via a six-digit code sent by SMS or email to the user’s account. Once the SMS code is entered the user can then reset their password.

Prakash found the main Facebook login page blocked him after 10 invalid attempts, however, the beta sites didn’t impose any limit on the number of wrong attempts.

Given Facebook’s bug-bounty policy against harming other users, Prakash used his discovery to hack his own account. He's posted a proof of concept video on YouTube demonstrating a script he wrote in a web application pen-testing tool which ran through about 900 possible six-digit codes until it identified the right one. This allowed him to set a new password and then log into his account.

As he explained, he found a vulnerable POST request in the beta pages, which featured a snippet “lsd=AVoywo13&n=XXXXX”

“Brute forcing the ’n’ successfully allowed me to set new password for any Facebook user,” Prakash noted.

Read more: ​Dangerous bugs in older Internet Explorer won’t see patches today

Prakash said he reported the bug to Facebook on February 22 and that he was able to verify the issue was fixed the next day.

The $15,000 reward suggests Facebook's security team does consider the bug to have been been a high impact one. Last year Facebook's average payout to security researchers was $1,780.



Join us at the CSO Perspectives Roadshow in March.

Hear from International keynote speakers:Robert Lentz, and Graham Cluley,

A Security Awareness stream

18 different interactive Security Exchange discussions

Join CSO for a day of networking with your peers, engaging and discussing topics relevant to you, hearing from some of the top worldwide IT Security leaders in the market and attending the exhibition floor to win some amazing prizes.

Participate in this short survey on IT security strategies across the Australian market and go in the draw to WIN a 360Fly camera vailued at $689.

Start survey NOW

Join the CSO newsletter!

Error: Please check your email address.

Tags Liam TungpasswordvulnerabilityAnan PrakashhackerCSO AustraliaFacebookaccount privacythe social networksocial networkbug fix

More about CSOFacebookIT Security

Show Comments

Featured Whitepapers

Editor's Recommendations

Solution Centres

Stories by Liam Tung

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