Skip to content
Access control Write-up Intermediate

My $150 Bug Bounty: A Low-Severity Access Control Bug

A user-role account could perform an admin-only action (enabling or disabling verification) by swapping its session cookie and CSRF token into a request captured from the owner. The impact was limited because the target object's identifier is a UUIDv4, which the attacker would have to guess.

Muhammad_Wageh Follow

Published on medium.com

I just want to talk about a bug and a single validation that unfortunately makes the severity Low, and I got $150. Alright, so before talking about the bug, I actually spent 2 days on the application just understanding it and taking notes (Objects, Mechanisms, Attack Vectors, Validation, etc.) and reading the…

Muhammad Wageh, 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 server authorised the action based only on the session and CSRF token supplied in the request, without checking that the session's role was allowed to perform that action.

Impact

An ordinary user could enable or disable verification, but only if they knew the target's UUIDv4 identifier, which the triager treated as limiting the severity to low.

What the attacker needed

An ordinary user account; a captured owner request; knowledge of the target UUIDv4

How it was found

  1. Log in as the owner and capture the request that enables or disables verification.
  2. Log in as an ordinary user and note that the Admin Center is not available.
  3. Replace the session cookie and CSRF token in the captured request with the user-role values.
  4. Send the modified request and observe that the action is performed.

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 site has different roles, like owner, admin and ordinary user. An ordinary user should not be able to change a setting that only owners and admins can change. Here the server checked who was asking only by looking at the session cookie and a CSRF token, so when the tester put an ordinary user's cookie and token into a request that an owner had made, the server accepted it. The catch is that the setting is identified by a long random string (a UUID), so an attacker would also need to know that string.

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 Muhammad_Wageh

View all

6 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.