On the other hand, there is an endpoint for business pages called userpermissions that allows one to add or remove business page admin roles who are already handling the Facebook business.
The following request would make target user as admin of the page.
After a few minutes of testing, I got to know that removing the business parameter from the request didn’t throw any error and allow us to add anyone as new page admin and delete the actual page admin on the non-business page where the application has manage_pages permission.
That’s it! Whatever the application may be, if it is having the manage_pages permission of the admin then it could hack all of your Facebook account pages in a fraction of seconds.
Also, read common ways on how to hack facebook account in few minutes and their prevention techniques
Final Proof of Concept:-
If you are unable to understand then please watch this video.
Page Takeover :
Removing Victim:
Reported this vulnerability to the Facebook security team and it is completely fixed now. They rewarded me $2500 USD as a part of their bug bounty program.Even though they placed a fix for this vulnerability, please be aware of the permissions you grant to any applications.
Permissions dialog box would look like this
If manage_pages is requested please note that this app would be able to manage your pages (post statuses, publish photos etc..).
Don’t worry, you can still modify the permissions you have granted to other apps here.