Day 26: Critical ATO via Business Logic Flaw
A business account feature allowed switching between personal and business modes, and this kept a session alive after an email change that should have logged the user out. By changing the email to a victim's address with a trailing encoded space to bypass the duplicate check, the attacker could then switch back to personal mode and be logged in as the victim.
medium.com
Published on medium.com
Today’s Account Takeover (ATO) vulnerability was found by Hamzadzworm (Abdelkader Mouaz). This case is unique because it exploits an interesting logic flaw rather than brute force or traditional injection techniques.
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 session was not fully invalidated across all subdomains and modes when the email changed, and the email uniqueness check did not normalise whitespace.
Impact
An attacker could take over another user's account by changing the email to the victim's address and retaining a session, bypassing the forced logout.
What the attacker needed
A paid business account; a personal account; knowledge of victim's email
The fix
The application should enforce consistent session termination across all subdomains and modes, and properly validate and normalise email updates to prevent bypasses.
How it was found
- Create a business account and invite your personal account as an admin.
- Log in to the main domain with the personal account.
- Open another tab and log in again on a different subdomain.
- Switch the second tab to business mode to keep the session active.
- Change the email on the main domain, which forces a logout there.
- On the second tab, switch back to personal mode and update the email to the victim's address with an encoded space to bypass the duplicate check.
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, the site gives your browser a session so it knows who you are. This site tried to log you out when you changed your email, but a second tab in 'business mode' kept the old session alive. The attacker used that to change the email to someone else's and then switch back, ending up inside the victim'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.