Skip to content
Access control Write-up Beginner

When the Frontend Lies: Simple Business Logic and Access Control

The application enforced a ten-address limit only in the browser, so a user could send extra GraphQL createUserAddress requests and store up to 100 addresses. A low-privilege Biller role could also run the getMe GraphQL query directly and read organisation fields such as contact email that the interface hid.

0xlumi Follow

Published on medium.com

Most of the time when we use web applications, we see the user interface as secure and the permissions as well implemented. But here is one thing I have come to learn: security by obscurity is not security.

0xlumi, 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 trusted client-side restrictions and did not re-check the address limit or the Biller role's field-level permissions before processing GraphQL requests.

Impact

A user could store up to 100 addresses instead of ten, and a Biller could read organisation contact details and other fields the interface hid; the text does not show any further escalation.

What the attacker needed

An account on the target; a Biller-role account for the second issue; ability to intercept HTTP requests

How it was found

  1. Fill the profile to ten addresses so the Add Address button greys out.
  2. Delete one address so the button becomes clickable again.
  3. Intercept the outgoing createUserAddress request in Burp Suite and send it to repeater.
  4. Change the address value in the request body and send it, then refresh to see the extra address.
  5. Log in as the Biller and send the getMe GraphQL query directly with the Biller session cookie.
  6. Observe that the response contains organisation fields the interface withheld.

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.

A web page's buttons and hidden fields are just suggestions made by the browser; the real rules must be checked by the server. Here the server accepted extra addresses and returned sensitive organisation details to a low-privilege user because it never verified what that user should be allowed to do.

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

View all

1 more disclosed report, 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.