Skip to content
Access control Write-up Beginner

Multi-Step Process with No Access Control on One Step — Acc

The application enforced access control on the initial request to change a user's role but not on the confirmation step. An attacker could replay the confirmation request with their own username to grant themselves administrative privileges.

Ryan G. Cox Follow

Published on medium.com

Another day, another Pentesting Methodology Lab Walkthrough at the Cybersec Cafe. Today, I’ll detail my methodology as I approach an Access Control Vunerability.

Ryan G. Cox, 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 confirmation step of the role-change workflow lacked the same authorization checks as the initial request, allowing a low-privileged user to perform the action.

Impact

An attacker with a normal user account could escalate their privileges to administrator, gaining full control over the application.

What the attacker needed

Default credentials for admin; a normal user account; ability to intercept and modify requests

How it was found

  1. Log in as administrator and navigate to the admin panel.
  2. Upgrade a user (e.g., carlos) to administrator, which triggers a confirmation request.
  3. Capture the confirmation request in Burp and send it to Repeater.
  4. Log in as a normal user in a separate browser or incognito window and obtain the session cookie.
  5. Replace the session cookie in the captured confirmation request with the normal user's cookie and change the username to the normal user.
  6. Send the modified request; the server responds with a 302 redirect and the user is promoted to administrator.

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.

Access control is like a bouncer checking who is allowed into a club. Here, the bouncer checked the first door but not the second, so someone could sneak in through the second door and give themselves a VIP pass. This let a normal user become an administrator without permission.

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.