Skip to content
Account takeover Write-up Intermediate

Account Takeover via Broken Authentication Workflow: Free Lifetime Streaming!

The login workflow generated a login challenge on the client side with no link to the email address, and the server sent the login link to whatever email was submitted. An attacker could swap the victim's email for their own, receive the login link, and take over the victim's account.

Rohan Ahuja Follow

Published on praetorian.com

Nowadays, the convenience of streaming applications on our mobile and web applications has become an integral part of our entertainment experience. However, this experience can come at a cost if we overlook the security of these applications.

Justin Copeland, on praetorian.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 login challenge was generated client-side and not bound to the email address, and the server sent the login link to the email supplied in the request without verifying it matched the account.

Impact

An attacker could take over any account on the platform, gaining unauthorised access to premium content and exposing users' private and payment information.

What the attacker needed

Ability to intercept and modify requests; attacker-controlled email address; victim's email address known

The fix

The login challenge should be generated server-side and tightly bound to the user's email address, and the server should only send the login link to the registered email address.

How it was found

  1. Intercept the login request containing the login challenge and the victim's email address.
  2. Modify the request to replace the victim's email with an attacker-controlled email address.
  3. Receive the login link at the attacker-controlled email.
  4. Use the link to access the victim's account.

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 with a link sent by email, the app should tie that link to your email address. Here, the app created a login code in the browser without connecting it to any email, and the server trusted whatever email was sent. So an attacker could ask for a login link for a victim's account but have it delivered to their own inbox.

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.