Skip to content
Access control Write-up Beginner

Easy admin Access By Gaming with JSON

A registration response exposed a role parameter set to false, and changing it to true in the account creation request granted admin access. The attacker could then view all orders.

0xbugatti Follow

Published on medium.com

The original lives on medium.com

We do not hold its text, 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 trusted a client-supplied role parameter during registration instead of assigning roles server-side.

Impact

An attacker could create an admin account and access all orders.

What the attacker needed

Ability to register an account

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 sign up, the server sends back details about your new account. One of those details was a flag saying whether you are an admin. The tester changed that flag to 'true' when creating an account, and the server accepted it, giving them admin rights.

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 0xbugatti

View all

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