Skip to content
Account takeover Write-up Beginner

How simple Logic Flaw turned into a €300 in Minute’

The application failed to invalidate active sessions after an email change and did not require re-authentication for sensitive actions like inviting an Owner. An attacker with a still-valid session could invite themselves as Owner, remove the legitimate user, delete the victim's account, and retain permanent control over the team.

medium.com

Published on medium.com

During routine security testing of a SaaS platform, I identified a critical account takeover vulnerability caused by improper session invalidation, missing re-authentication for sensitive actions, and flawed team ownership logic. What made this issue particularly severe was that the attacker could retain full control…

Jimmy, on medium.com

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 application did not invalidate other sessions after sensitive account changes and did not require re-authentication for high-risk actions, combined with flawed team ownership logic that allowed an invited Owner to persist after account deletion.

Impact

This enabled a complete and irreversible account takeover, allowing the attacker to gain full Owner-level access, control applications, logs, and configurations, abuse billing features, remove legitimate users, and permanently delete victim accounts, with access retained even after deletion.

What the attacker needed

Victim logged in on two browsers; attacker has access to one session; no re-authentication required

The fix

The application should invalidate all active sessions after sensitive account changes and require re-authentication for high-risk actions such as inviting an Owner.

How it was found

  1. The victim was logged in on two browsers simultaneously, both fully authenticated.
  2. From one browser, the victim changed their account email and logged out.
  3. The session in the other browser remained fully valid.
  4. Using the still-active session, the attacker accessed Team Settings → Members without re-authentication.
  5. The attacker invited an email they controlled and assigned it the Owner role, then accepted the invitation from another browser.
  6. As Owner, the attacker removed the victim from the team and deleted the victim's account, while retaining full Owner access.

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 website gives your browser a session token so it remembers you. If you change your email or password, the site should cancel all other sessions, but here it did not. That meant someone with an old session could still act as you, and because inviting an Owner did not ask for a password again, they could take over your team permanently.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.