Skip to content
Account takeover Write-up Intermediate

Critical: Account Takeover via Interesting Logic Issue $$$$

The system allowed changing an email to one that already existed by appending a URL-encoded space, and a session in business mode on a subdomain remained active after the email change, letting the attacker log into the victim's account.

medium.com

Published on medium.com

“Today, I’ll share an interesting finding that allowed me to takeover any account for any user in company”

Hamzadzworm, 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 email uniqueness check did not normalise trailing whitespace, and the session management did not invalidate all sessions after an email change when the account was in business mode.

Impact

An attacker could take over any user's account by changing their own email to the victim's email with a trailing space and exploiting the session persistence in business mode.

What the attacker needed

A free account; ability to create a business account; victim's email address known

How it was found

  1. Register a personal account on the main domain.
  2. Register a new business account in a different tab.
  3. Invite the personal account as an admin from the business account.
  4. Log in with the main account on the main domain.
  5. Log in again with the same account on a second subdomain and switch it to business mode.
  6. Change the email to one that already exists, adding a space at the end to bypass the 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.

The website let someone change their email address to one that was already used by another person, just by adding a space at the end. Because the login system used email addresses to identify accounts, this let the attacker take over the other person's account. The trick worked because a second browser tab kept the old session alive while the email was changed.

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.