Skip to content
Access control Write-up Beginner

Bypassing Authentication with a Single Request: A Real Bug Bounty Story

An undocumented API endpoint for session validation accepted any username and returned an authenticated session without requiring credentials. An attacker could impersonate any user, including an administrator, and access restricted data.

cybersecuritywriteups.com

Published on cybersecuritywriteups.com

It was 2:17 a.m., and my apartment was silent except for the soft hum of the fan and the endless clicking of my old mechanical keyboard. I had been staring at HTTP requests for hours, half convinced there was nothing left to find on this target.

Aj, on cybersecuritywriteups.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 an internal testing endpoint was left exposed and it trusted a user-supplied identifier without verifying any credentials or session token.

Impact

An attacker could take over any account and escalate to administrator, gaining access to system-wide configuration data.

What the attacker needed

Knowledge of the endpoint; ability to send HTTP requests

How it was found

  1. Find the undocumented validation endpoint referenced in JavaScript files.
  2. Replay the request with a test account username and observe a successful authenticated response.
  3. Swap in a random username and confirm the response still says authenticated.
  4. Use the returned session cookie to access restricted endpoints such as account balances.
  5. Change the username to an admin value and access system-wide configuration data.

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.

Authentication is how a system checks who you are, usually with a password or token. Here, a hidden endpoint was supposed to check if a session was still valid, but it simply believed whatever username was sent to it. That meant anyone could pretend to be any user, even an administrator, without logging in.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.