Skip to content
Account takeover Write-up Intermediate

I Bypassed Authentication on 3 Production APIs — Here’s How

Three production APIs had authentication flaws: a login endpoint without rate limiting allowed password brute force, a JWT implementation accepted tokens with the 'none' algorithm and did not validate signatures, and a password reset flow exposed a reset ID and allowed brute forcing a 6-digit code. An attacker could gain admin access, read patient records, or take over accounts.

iaraoz Follow

Published on iaraoz.medium.com

Last year, I tested 14 production APIs for different clients. Nine of them — more than 60% — had at least one authentication vulnerability that could let an attacker access sensitive data without valid credentials.

Israel Aráoz Severiche, on iaraoz.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 missing rate limiting, improper JWT signature validation, and exposure of sensitive reset identifiers combined with short numeric codes.

Impact

An attacker could gain admin access to the API, read sensitive patient records, or take over user accounts via password reset.

What the attacker needed

Access to the API endpoint; a valid email address for login; a victim email address for reset

The fix

The article recommends implementing rate limiting, validating JWT signatures and rejecting the 'none' algorithm, and securing password reset flows with rate limiting, longer codes, and not exposing reset IDs.

How it was found

  1. Intercept the login request with Burp Suite and send it to Intruder.
  2. Configure Intruder with a password wordlist and run the attack.
  3. Analyse results by status code to find a successful login.
  4. Decode the JWT and modify the algorithm to 'none' and the role to 'admin'.
  5. Send a request with the modified token to a protected endpoint.
  6. Request a password reset and note the reset_id returned.

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.

These are real examples from penetration tests where the login or password reset systems were too weak. One API let someone guess passwords endlessly, another trusted a forged login token, and a third let someone guess a short reset code. Each mistake let an attacker get into accounts they should not access.

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.