Skip to content
Access control Write-up Beginner

Authorization Bypass Through HTTP Response Manipulation

The application relied on client-side data from the /merchant/profile/ endpoint to determine admin privileges, allowing an attacker to modify the HTTP response to set is_admin to true. This granted access to admin-only features such as inviting users, assigning roles, and deleting tenant owners without proper server-side authorization.

medium.com

Published on medium.com

In March 2025, I discovered an authorization bypass vulnerability in a web application under the [redacted] bug bounty program. This issue allowed me to gain admin-level access without completing any identity verification steps.

OctaYus, 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

The application failed to validate user roles server-side and instead relied on client-side data from the /merchant/profile/ endpoint to render admin features.

Impact

An attacker could gain full control of the dashboard, manipulate data, manage users, and perform sensitive actions like deleting owners or managing financial documents, leading to a complete breakdown of access control.

What the attacker needed

A normal merchant account; ability to intercept and modify HTTP responses

The fix

The application should validate user roles strictly on the server-side and not rely on client-visible data for authorization decisions.

How it was found

  1. Log in to the application with a normal merchant account.
  2. Observe that admin features are not visible or accessible.
  3. Enable an HTTP proxy to intercept traffic.
  4. Create a match-and-replace rule to change "is_admin":false to "is_admin":true in responses.
  5. Reload the application to see admin-only UI elements.
  6. Perform admin actions such as inviting users, assigning roles, uploading documents, and deleting tenant owners.

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.

The app trusted the browser to decide if you were an admin, instead of checking on the server. By changing the data the server sent back, the attacker could make the app think they were an admin. This let them do admin things like delete owners.

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.