Skip to content
Access control Write-up Beginner

How I Found an Auth Bypass in 20 Minutes

The login response contained a JSON field indicating authentication status, and the client-side application trusted this field to decide whether to log the user in. An attacker could intercept a failed login response, change the authentication flag to true, and gain access to an account without knowing the correct password.

medium.com

Published on medium.com

Not every bug takes days of grinding. Sometimes you land one in twenty minutes because you tested the ONE thing everyone assumes is safe.

Nitin yadav, 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 application performed authentication decisions on the client side, trusting a response field instead of enforcing session control on the server.

Impact

An attacker could log into an account without the correct password, gaining unauthorised access.

What the attacker needed

A valid username; ability to intercept and modify responses

The fix

Authentication decisions should be enforced on the server, with the server issuing a secure session token only after verifying credentials, rather than relying on client-side interpretation of a response field.

How it was found

  1. Enter a valid username with a wrong password.
  2. Intercept the login response in Burp.
  3. Change the authentication flag from false to true and set a dashboard path for the redirect.
  4. Forward the modified response.

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, the server sends back a message saying whether it worked. Normally the server also sets a secure session cookie that proves you are logged in. Here, the app apparently relied on a simple 'true/false' value in that message, so someone could edit the message to say 'true' and the app would let them in without a password.

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.