Skip to content
Access control Write-up Beginner

Response Manipulation Attack Root Cause Analysis

The application's client-side code trusted a JSON field from the login response to decide whether to redirect to the dashboard, and the server did not validate sessions on the dashboard route. An attacker who could intercept the response could change the authentication flag to true and gain access to the dashboard without valid credentials.

Sarath Reddy Devireddy Follow

Published on systemweakness.com

Hello guys, this is Sarath D, I am electronics & communication engineer background, and I am a working professional in cyber security domain and working as a senior security engineer. So here I am sharing my knowledge to beginners & who constantly seeking for knowledge.

Sarath Reddy Devireddy, on systemweakness.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 relied on client-side validation of the authentication response and failed to enforce server-side session checks on protected routes.

Impact

An attacker could bypass the login mechanism and access the dashboard without valid credentials, but this requires the ability to intercept and modify the server response.

What the attacker needed

Ability to intercept and modify HTTP responses

The fix

The application should validate authentication status on protected routes using secure token-based verification and avoid relying on client-side validation for sensitive actions.

How it was found

  1. Intercept the login request with invalid credentials using a proxy tool.
  2. Observe the server response containing a false authentication flag.
  3. Modify the response to set the authentication flag to true.
  4. Forward the altered response to the browser, which then navigates to the dashboard.

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 your password was correct. This application's web page only looked at that message to decide whether to show the dashboard, and the dashboard page itself did not check if you were really logged in. So someone who can intercept the message can change it to say 'yes' and get 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.

More by Sarath Reddy Devireddy

View all

4 more disclosed reports, best first.

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.