Skip to content
Access control Write-up Beginner

Gaining Control: How Response Manipulation Leads to Higher Privileges (PoC)

A lower-privileged user could change the role parameter in an intercepted server response to a higher-privileged role, and the browser then reflected this change, allowing access to scheme payment details. The attacker could thus gain higher privileges than intended.

mrmaulik191 Follow

Published on medium.com

Greetings, readers! I am Maulik Goti, a Security Analyst👨‍💻 and Cyber Security Researcher🕵🏻‍♀️.

Mr.MG, 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 trusted client-side data (the role value in the response) for authorization decisions instead of enforcing access control on the server.

Impact

An attacker with a low-privileged account could gain higher privileges and access sensitive scheme payment details.

What the attacker needed

A low-privileged account; ability to intercept and modify responses

The fix

The application should enforce authorization on the server side and not rely on client-supplied role values.

How it was found

  1. Log in with a low-privileged account that has only 'schema creator' access.
  2. Navigate to the 'schema creator' and select the 'Change role' menu item.
  3. Capture the request and response in a proxy tool; observe an API call.
  4. Intercept the response and change the 'role' parameter from a lower role to a higher role.
  5. Observe in the browser that the change is reflected; select the 'Incentive_Reviewer' role.
  6. Attempt to access scheme payment details and successfully view them.

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 use a website, your browser talks to a server by sending requests and getting responses. Here, the server sent back a response that included the user's role, and the attacker changed that role in the response before the browser used it. The website then treated the attacker as having a more powerful role, letting them see sensitive payment information they should not have been able to see.

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.