Skip to content
Access control Write-up Beginner

️‍♂️ How Parameter Fuzzing Uncovered a High-Severity Cust

A parameter named schema in an API request accepted a value that changed which records were returned, and one fuzzed value caused the API to return customer records instead of product details. An attacker could use this to read customer data that should not have been accessible.

Ankur_bari Follow

Published on medium.com

While analyzing a web application during testing, I noticed something interesting in one of the API requests:

Ankur_bari, 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 used a client-supplied schema parameter to choose which data set to query without enforcing authorisation on the requested data type.

Impact

The API could return customer records to a caller who should only have received product details, exposing customer data.

What the attacker needed

Access to the portal API endpoint

How it was found

  1. Observe an API request containing a schema parameter with a product value.
  2. Run parameter fuzzing with a small custom wordlist against the schema parameter.
  3. Note that one fuzzed value returns a different response containing customer records.

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 API is the part of a site that returns data to the page. Here, a value in the request told the API which kind of records to fetch, and the server trusted it without checking whether the caller was allowed to see that kind of data. By changing that value, the tester made the API return customer records instead of product records.

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.