Skip to content
Account takeover Write-up Intermediate

Samsung.com Account Takeover Vulnerability Write-up

Samsung.com allowed registration with trailing spaces in the username, creating a separate account. When visiting a subdomain, these spaces were removed, causing the user to be authenticated as the account without spaces, enabling takeover of any account.

thehackerblog.com

Published on thehackerblog.com

After contacting Samsung multiply times I thought they’d completely blown me off in fixing this bug but it looks patched (hopefully!).

The author, on thehackerblog.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 failed to normalise usernames consistently, allowing trailing spaces to create distinct accounts that were later trimmed on a subdomain, leading to authentication as the trimmed username.

Impact

An attacker could take over any Samsung.com account, gaining access to the victim's account details and stored payment cards.

What the attacker needed

Target's email address; HTTP intercept tool; Visit specific subdomain

The fix

The vulnerability was fixed by Samsung, as the author states it is now patched.

How it was found

  1. Register an account at Samsung.com with the target's email address, using an intercept tool to add trailing spaces to the username.
  2. Complete the account registration process.
  3. Navigate to shop.us.samsung.com.
  4. Navigate back to the main Samsung.com domain.
  5. Attempt to add items to cart and go to checkout page.
  6. Notice the account details and cards on file are those of the target.

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 up, the site might treat '[redacted] ' (with a space) as a different account from '[redacted]'. The attacker signs up with the victim's email plus spaces. Then, by visiting a subdomain, the site removes the spaces and logs the attacker in as the victim, letting them access the victim's account details.

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.