Skip to content
Account takeover Write-up Intermediate

Payload Party: Chaining Tiny Bugs Into a Full-Blown Account Takeover

A forgotten beta subdomain with a staging login page lacked rate limiting, allowing credential brute-force. An open redirect on the login page and a JSON endpoint without CSRF protection were chained to change a user's email and achieve account takeover.

infosecwriteups.com

Published on infosecwriteups.com

Free link 🎈

Iski, on infosecwriteups.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 combination of an insecure staging environment with weak authentication, an unvalidated redirect parameter, and a state-changing endpoint lacking CSRF protection.

Impact

An attacker could take over a user's account by changing their email address, potentially leading to full account compromise.

What the attacker needed

Access to the beta subdomain; victim clicks a link; victim has an active session

The fix

The report suggests decommissioning old subdomains, restricting redirect parameters to safe in-domain URLs, requiring CSRF tokens on JSON POST endpoints, and enforcing session scope restrictions between staging and production.

How it was found

  1. Discover the forgotten beta subdomain and its staging login page.
  2. Brute-force credentials on the staging login page to obtain a session cookie.
  3. Use the open redirect parameter to send the session cookie to an attacker-controlled domain.
  4. From the attacker domain, automatically submit a JSON POST request to the user update endpoint to change the email address.

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 attacker found an old test website that was still online and easy to guess passwords on. They also found that the login page would send users to any website, and that a profile update form didn't check where the request came from. By combining these small weaknesses, they could take over someone's account.

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.