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 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
- Register an account at Samsung.com with the target's email address, using an intercept tool to add trailing spaces to the username.
- Complete the account registration process.
- Navigate to shop.us.samsung.com.
- Navigate back to the main Samsung.com domain.
- Attempt to add items to cart and go to checkout page.
- 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.