Lab: Authentication bypass via OAuth implicit flow
This lab uses an OAuth service to allow users to log in with their social media account. Flawed validation by the client application makes it possible for an attacker to log in to other users' accounts without knowing their password.
To solve the lab, log in to Carlos's account. His email address is
You can log in with your own social media account using the following credentials:
- While proxying traffic through Burp, click "My account" and complete the OAuth login process. Afterwards, you will be redirected back to the blog website.
In Burp, go to "Proxy" > "HTTP history" and study the requests and responses that make up the OAuth flow. This starts from the authorization request
Notice that the client application (the blog website) receives some basic information about the user from the OAuth service. It then logs the user in by sending a
POSTrequest containing this information to its own
/authenticateendpoint, along with the access token.
POST /authenticaterequest to Burp Repeater. In Repeater, change the email address to
email@example.com send the request. Observe that you do not encounter an error.
Right-click on the
POSTrequest and select "Request in browser" > "In original session". Copy this URL and visit it in your browser. You are logged in as Carlos and the lab is solved.