2. How To Find High
Impact Privilege
Escalation Bugs
Pranav Hivarekar
3. About Me
• Pranav Hivarekar
• Active Bug Hunter
• Facebook (Top 10), Nest, Snapchat, etc.
• MS Degree in Cybersecurity (USA)
• Worked At NCCGroup, NYC, USA
• Founder @PeritusInfosec
• Trainings @PeritusInfosec
• Pentester @Cobalt.io
@HivarekarPranav
4. Agenda
• My First Bounty Story
• Simple Privilege Escalation Methodology
• Case Studies
• Conclusion
@HivarekarPranav
6. Simple Privilege Escalation Testing Methodology
1. Find endpoints
2. What are roles?
3. Try Privilege Escalation
1. Access/Modify another user’s data
2. Escalate privileges from lower to higher role
@HivarekarPranav
7. Case Study 1
Page Analyst Can Create/Edit/Modify
Frames Owned By Page
@HivarekarPranav
11. Proof Of Concept
1. Create a page and add an Admin and Analyst.
2. Via Analyst's account visit:
https://www.facebook.com/fbcameraeffects/ma
nage/
3. Now, analyst can create `frames` for the `Page`
as well as edit/delete/modify frames created by
other admins.
@HivarekarPranav
17. Proof Of Concept
Fire following request:
https://graph.facebook.com/<poll_id>?action=DEL
ETE_POLL&fields&access_token=<internal_app_ac
cess_token>&method=POST
This will delete the poll permanently.
@HivarekarPranav
23. Proof Of Concept
1] Create a comment on a page post via API
API call : Reference
(https://developers.facebook.com/docs/graph-
api/reference/object/comments/)
POST /<post id>/comments?message=test
@HivarekarPranav
24. Proof Of Concept
2] Edit the comment and attach a VIDEO of your choice via API
eg. We will delete videos from (https://www.facebook.com/Testyeah-
1580326912211117/?fref=ts)
Victim's video id : 1739331926310614
API call : (https://developers.facebook.com/docs/graph-
api/reference/v2.6/comment)
POST /<comment id>?attachment_id= 1739331926310614
@HivarekarPranav
25. Proof Of Concept
3] Delete the comment
API call :
(https://developers.facebook.com/docs/graph-
api/reference/v2.6/comment)
DELETE /<comment id>
@HivarekarPranav
28. @HivarekarPranav
To learn more about Pranav Hivarekar, please check:
Personal Blog : https://pranavhivarekar.in/
Facebook. : http://www.facebook.com/pranavhivarekar
Twitter : https://twitter.com/HivarekarPranav
Linkedin : https://linkedin.com/in/pranavhivarekar