This post is about an bug that i found on Facebook MailChimp Application OAuth 2.0 which could have been used to steal Access_token. and The Source idea for this bug i got from prakharprasad blog post.
Facebook Ads Manager can import MailChimp customer data by using OAuth 2.0, to fetch data to Facebook Ads Manager.The application is a part of MailChimp website and it was developed by Facebook Developers. once the MailChimp user authorises the application, it will send MailChimp data to Facebook Ads Manager.
OAuth Authorisation URL for Facebook Custom Audiences :
First i tried to bypass redirect_uri but i can’t. then i tried the same oauth flow when i logged out in Facebook. it force me to login page.
but /#/ redirection will not work in login.php page. so i need to bypass the default login page .after some search finally found this URL to bypasses default login page. and the /#/ redirection also worked here.
Mailchip oauth URL:
Shorten the Above URL :
Final URL :
The Victim click the above URL it redirect to Mailchip oauth page and ask for credentials. once the login was success the response access token will be redirect to my Facebook app URL.
The Fix :
Now /#/ redirection will not work for /recover/initiate/ page . so the token will not redirect to other path.
8-June-2017 : Report Sent
15 June-2017 : Further investigation by Facebook
16 June-2017 : Fixed by Facebook
22 June-2017 : $500 bounty awarded by Facebook