Improper Authentication: Account TakeOver
The application generated a user session token based solely on a supplied email address, without requiring any authentication token or password. An attacker who knew a valid user's email could obtain that user's session token and take over the account, including an admin account.
Published on medium.com
Hi, I’m Bharath Kumar, a security researcher dedicated to exploring vulnerabilities, analyzing attack patterns, and contributing to a safer cyberspace. In this blog, I’ll share findings from my latest research and discuss their implications.”
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 token-generation endpoint trusted the supplied email address as proof of identity instead of validating the SSO token issued after login.
Impact
An attacker could take over any account, including an administrator account, giving complete control over the application.
What the attacker needed
Knowledge of a valid user email address; no authentication token required
The fix
After a successful SSO login, the application should use the SSO token to generate the user session token rather than trusting an email address alone.
How it was found
- Log in successfully through SSO with valid credentials.
- Observe the request that generates the user session token.
- Note that the request contains only an email address and no authentication token.
- Submit a request using a valid admin user's email address.
- Receive a session token for the admin account.
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 log in, a website usually gives your browser a secret pass (a session token) so it knows who you are on later requests. Here, the server handed out that secret pass to anyone who simply typed a valid email address, with no proof of identity. That meant someone could pretend to be another user, even an administrator, just by knowing their email.
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.