Saturday, 1 February 2014

Facebook Logical comment bug

[#] Title:  Logical comment bug on facebook group.
[#] Worth: $500 USD
[#] Status: Fixed
[#] Severity: Low
[#] Author: Manjesh S
[#] Twitter: @Manjesh24

Description:

We can make others comments unremovable on a OPEN group using this bug - its a privacy issue.

Sample example: Assume that someone posted on a OPEN group as :
"Facebook magic!! Comment your email and password here, your email and
pass will change automatically to ****@****.com and ********* ,
Try it now"

Whenever some person sees this post he thinks that it is a new feature
from  fb, and will plans to try it, also plans to delete the comment
after trying it..

So when a user comments on this post with the email and password we can make this comment unremovable,
What happens here is , user primary email and password is publicly viewable and user cannot remove his own comment forever.. Any group members and non group members can view the comments ..
User will never be able to delete his own comment..

Steps to Reproduce: 

  1. User need to comment on others post on a OPEN group
  2. Admin have to remove the user from the group

Facebook was aware of this privacy issue hence a DELETE option was available to our comment when removed.



But that option was not working :D
When we click on delete, it was showing some error and the the comment was not deleted.




But this bug was rejected as:
"This is intentional behavior in our product. We do not consider it a security vulnerability."

I didnt mentioned that I was trying it on OPEN group so it was rejected .
As of https://www.facebook.com/help/www/220336891328465 this bug is valid when we consider OPEN group only..


I had some proofs to prove that this is not a intentional behavior, I sent them some proofs + example and the bug was accepted :)

Thursday, 26 December 2013

How I got $2000 from Facebook



Hi,
I would like to share one of  Logical Bug in facebook groups. The bug I found was too simple to exploit but it had a great Impact.

[#] Title:  Logical bug on facebook group.
[#] Worth: $2000 USD
[#] Status: Fixed
[#] Severity : I don’t know :p
[#] Author: Manjesh S
[#] Twitter: @Manjesh24

Description:

If you are the admin of the group you can remove the users, add users, edit/delete posts etc..
But if you make a attacker admin then he also gets the same admin rights, The problem is you cannot remove the attacker from the group using this bug..

Now there are two cases: 
  1.     If attacker is just user. 
  2.    If attacker also has admin rights.

If attacker is just user he can post anything on the group and Admin cannot remove the attacker.

If attacker also has admin rights then he can do whatever he want on the group and admin cannot remove the attacker from the group and also admin cannot remove the admin rights which attacker is having – which means the attacker will be having admin rights forever and no one can remove the rights  :)
But the problem is, this bug was already fixed on facebook pc site :( : www.facebook.com
The great thing is it was not fixed on facebook mobile sites: m.facebook.com,touch.facebook.com etc.. and also official facebook mobile apps. :)

Impact of this Bug:
  1. Attacker in a group can see all the posts SECRETELY.
  2. If Attacker have admin rights, Attacker can EDIT or DELETE ANY posts without knowing to admin.
  3. If Attacker have admin rights, Attacker can REMOVE users from a group without knowing to admin.
  4. Even if admin found Attacker, He/She cant remove Attacker from the group or remove admin rights on mobile site and mobile apps..
  5. Attacker can invite more members, preserve the content in that Group, or shut down the Group if it's no longer needed.
  6. No Extra/Great knowledge is required - simple to Hack :p
         etc..

Requirements:
*We need to know who is admin of the group. That’s it!!
* Its not must but needed – Admin rights

Steps to Reproduce: 
  1.     Block the admin of the group :D  
  2.   That’s all!!

So assume that you are admin of a group and you gave admin rights to a User-A,
What happens when User-A blocks you is, you cannot remove the User-A from the group or remove the admin rights as the User-A wont be listed on members list.
Now the  User-A will be in a group forever with admin rights, and the you will never be able to remove User-A. The worst thing is if you go to group members list the User-A wont be listed, So as usual you think that User-A has left the group but secretly User-A can do all stuffs on the group without knowing to you :D :D
















But Bug was initially rejected :(








I didn’t expected this type of reply from fb.
They agree that the bug is either privacy or a security issue but both issues qualify for bug bounty program.
Strange thing is they are not asking for proof of bug instead needed a proof that I am eligible for bug bounty program. :o

What mistake I did : 
  • I didn’t sent them more impacts as I was hurry in reporting ( After many Duplicates I thought I must report it fastly).
  • I didn’t reported that the bug was also existed on official facebook mobile apps.

So this time I sent more proofs, But I don’t think these proofs are needed as the bug is self explanatory. I googled and found many impacts which I can add to my bug, and suddenly I found a great blog where a security researcher found the exact same bug like mine ;)
Wow!!! That’s what I was looking for..
Which is almost exactly same bug like mine for which he has got $5000.

I was sure that I wont get $5000, as bug which I reported was already fixed on facebook pc site, But I was sure that I am eligible for bug bounty.

Oops after adding these things I sent them mail asking “Why I am not eligible for bug bounty program?“

 Then got this reply from fb :
 







And finally got a positive reply after 1 month :







And Now listed on facebook whitehat : https://facebook.com/whitehat/thanks

Suggestion :
If you also got the same reply and bug got rejected from facebook,
Then first of all know why your bug got rejected, work on it and find more possible impacts which makes eligible to all conditions as listed on https://www.facebook.com/whitehat/
All the best :)


Feel free to comment here about this :)