What was the bug
The Google Sign-In integration on the Spoyl web server only checked the email address returned after sign-in, not the access token, so the email value could be swapped for any user's address. An attacker could then log in as any user, including celebrities, and read their phone number and address details.
medium.com
Published on medium.com
What’s Up InfoSec Community, It’s Sayaan Alam and I’m not perfect in doing write-ups, Please Ignore Mistakes... Let’s Move to the bug.....
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the server trusted the user-supplied email parameter from the Google sign-in flow instead of validating the access token with Google before issuing a session.
Impact
An attacker could take over any account, including those of celebrities, and access personal data such as phone numbers and address details.
What the attacker needed
A Spoyl account; ability to intercept the sign-in request; victim's email address known
The fix
The site should verify the Google access token server-side and derive the identity from it rather than trusting a client-supplied email; the text says the issue was fixed the day after a journalist contacted the company.
How it was found
- Sign in to the site using the Sign in with Google option.
- Intercept the request the site makes back to its own server after returning from Google.
- Change the email value in that request to another user's email address.
- Send the request and observe that you are logged in as that user.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
When you sign in with Google, Google sends the website a message saying who you are. The site trusted the email address in that message without checking that the message really came from Google. By changing the email address to someone else's, the attacker was let into that person's account.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.