Published On: 02 Jul 2019
I was reading this blog post https://www.imperva.com/blog/facebook-privacy-bug/ and try to find facebook endpoint which reflect the javascript frames.length (number of iframe) > 0
I've found if the user who have permission to access https://web.facebook.com/[page_username]/inbox i get : frames.length = 1 when there is no message in page inbox frames.length = 3 when the inbox contain a message and if the user doesnt have permission to read the page inbox in the page then it will throw an error page which had a frames.length = 0. `
This bug allow attacker to identify the facebook user who have admin/editor/mod roles in a page.
Step
1
Here is the script :
Step
2
Change the page variable and as a victim, visit the website that have a script above.
Step
3
The console should tell you the result whether the user have a page admin/editor/moderator role in the page that you define in page variable.