Confirming any new Email Address bug in Facebook (Part-4)
This post is about an bug that I found on Facebook which used to Confirming any email address in new Facebook account by using IP and Account Rotation brute force attack. this post is bypass of my previous write-up → Disable Any Unconfirmed Account in Facebook
After the Permanent fix of Disable Any Unconfirmed Account bug. I tried to bypass it so first I need to find what changes that Facebook Team made in previous fix. when the wrong 5digit code was entered the server responded with Status Code: 200 (Invalid Confirmation code)
But if the 5digit code was matched the server responded with Status Code: 500 (Internal Server Error). So attacker can determine the exact confirmation code with status code.
But the real challenge is the Rate Limit was implemented. After 20 wrong attempts all request will get blocked. so the only way is to bypass the rate limit. but the IP rotation technique can not bypass this. because Facebook already fixed this method in my previous finding. but I noticed that this endpoint works with and without login sessions. so I tried the same URL in another account but I got the same error message.
Later I tried the URL in my mobile on chrome browser I got 500 (Internal Server Error). then I found that the rate limit can be bypassed with different account with different IP address.
IP Address can be easily rotated for each request as following the steps in my blog: How to Rotate IP ADDRESS For Each Request in Burp Suite
But the account rotation is not as easier. the 5digit code length is 00000 ~ 99999 so the attacker need 100000 Facebook accounts to make this attack. In Facebook Apps 2000 Test-user can be created in single app. so 2000 x 50 = 100000 Accounts can be created. I made a simple python script to Automate the whole account creations and extracted the cookies.
- Create any New Facebook Account with Victim’s Email Address.
- Open Burp Suite and paste the below request in Intruder.
GET /email@example.com&c=12345&report=1&message=1 HTTP/1.1Host: m.facebook.comConnection: closeUpgrade-Insecure-Requests: 1User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9Sec-Fetch-Site: noneSec-Fetch-Mode: navigateSec-Fetch-User: ?1Sec-Fetch-Dest: documentAccept-Encoding: gzip, deflateAccept-Language: en-US,en;q=0.9Cookie: c_user=0; xs=0;
3. Choose Attack type as Pitchfork.
4. Set payload 1 as 5 digit code range ex: 00000 to 99999 (payload marker in 12345)
5. set payload 2 as Test account cookies. and uncheck payload Encoding option (c_user=0; xs=0)
6. enable IP Rotation service in Burp Upstream Proxy server.
7. start the attack if the correct code got matched the server response will be 500 Internal Server Error
07-jan-2021: Report Sent
21-Jan-201: Further investigation by Facebook
01-Feb-2021: Fixed confirmed by Facebook and me
01-Feb-2021: $3449 bounty awarded by Facebook (With Bonus)