Skip to content
Account takeover Write-up Beginner

How I was able to steal millions of data and money from a Ticketing Portal.

The password reset code was a six-digit number with no rate limiting, allowing brute force to reset any account's password. The email address could also be changed by intercepting the profile update request, enabling complete account takeover.

medium.com

Published on medium.com

We were planning for boot camp on Hacking allover India named Letshack, so we decided to go online to sell tickets for the event. We were selling our event tickets rapidly and all of a sudden I lost my access to my mail ID which i used to login on townscript and i almost forgot my password.

Sriram Kesavan, 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 password reset code was a short numeric value without rate limiting, and the email address was accepted from a client-controlled request parameter without server-side validation.

Impact

An attacker could take over any account by brute forcing the reset code and then change the email address to prevent the owner from recovering it.

What the attacker needed

Knowledge of victim's email address; ability to send many requests

How it was found

  1. Request a password reset for the target email address.
  2. Capture the reset link request containing the email and code parameters.
  3. Send the request to an intrusion tool and brute force the six-digit code.
  4. Identify the successful response by its different length.
  5. Use the correct code to set a new password and log in.
  6. Intercept the profile update request and change the email address to a new one.

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.

A password reset link contains a short numeric code. The website did not limit how many times someone could guess that code, so an attacker could try all possible codes until one worked. Also, the email address could be changed by tampering with a request, letting an attacker lock out the real owner.

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.