Jump to content
akkiliON

Vulnerability in Facebook discloses Primary Email Address of any account

Recommended Posts

  • Active Members
Posted

wfi.png

When you sign up on Facebook, you have to enter an email address and that email address becomes your primary email address on Facebook.

In a recent disclosure by a Security researcher, Stephen Sclafani - The Social Networking site Facebook was vulnerable to disclosure of primary email address of any Facebook user to hackers and spammers.

The flaw resides in the invitation mechanism of Facebook, using which one can invite his all contacts emails to Facebook for making new account.

As shown in following screenshot, an invitation received on an email, where one need to click the Signup URL:

551i.png

After clicking that URL, invited user will be redirected to a signup page filled in with the email address and the name of a person who used the link to sign up for an account was displayed:

czbq.png

There are two parameters in this URL, i.e “re” and “mid”. According to Stephen changing some part of "mid" parameter can expose the email address of another user.

http://www.facebook.com/r.php?re=245bf2da75118af20d917bdd34babddb&mid=59b63aG5af3107aba69G0G46

59b63a G 5af3107aba69 G 0 G 46

He explained that, in above string, “G“ acting as a delimiter/separator, where 2nd value after first “G“ i.e 5af3107aba69 is the Profile ID of user. Replacing user ID can give expose email ID of any user in Sign Up Page. Attacker can obtain this numerical ID of facebook profile from Graph API.

Using this flaw attacker can extract email address of all facebook profiles for spamming or hacking purpose. Attacker need to just write an automated script/code to grab all email address of billions of facebook users.

Using following steps hacker can write a automated code to grab all emails:

1.) Grab profile links of all facebook users from Facebook People Directory i.e A A | azusa sakata | Director de persoane | Facebook

2.) Collect Numerical Facebook ID for each Profile from facebook Graph API i.e The Hacker News

3.) In Next step, using curl or other methods open the modified URL for each profile ie http://www.facebook.com/r.php?re=245bf2da75118af20d917bdd34babddb&mid=59b63aG1251386282G0G46

4.) Filter the email address exposed in the Source code obtained from above step for each profile and store in database.

This way, above vulnerability was able to put every facebook user at Risk, but Stephen's responsible disclosure to Facebook Security team save us. He is rewarded with $3,500 for helping them to patch this flaw.

Vulnerability in Facebook discloses Primary Email Address of any account - TheHackerNews

  • Upvote 2
Posted

59b63a G 5af3107aba69 G 0 G 46

He explained that, in above string, “G“ acting as a delimiter/separator, where 2nd value after first “G“ i.e 5af3107aba69 is the Profile ID of user. Replacing user ID can give expose email ID of any user in Sign Up Page. Attacker can obtain this numerical ID of facebook profile from Graph API.

Superb :D

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...