Skip to content
Access control Write-up Beginner

How I Got €50 for Finding the Same Data Behind a Different Door

A Checker role user was blocked from dedicated contact endpoints but could retrieve the same sender and beneficiary contact records through combined endpoints that lacked the same authorization checks. An attacker with a Checker account could access contact data they were not supposed to see.

dheerajdonikena Follow

Published on medium.com

While testing a financial application’s permission model during a bug bounty program, I was looking at how the Maker and Checker roles worked.

Dheeraj, 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 application enforced authorization per endpoint rather than on the underlying contact data, so a combined endpoint built for another workflow did not apply the same role restrictions.

Impact

A Checker user could view sender and beneficiary contact records that the role was not meant to access, though the program judged the bypass itself not severe enough for a higher reward.

What the attacker needed

A Checker role account

The fix

Authorization should be enforced on the contact data itself, so every endpoint that returns contact records applies the same role restrictions.

How it was found

  1. Authenticate as a Checker user.
  2. Request the dedicated sender contact endpoint and observe a 403 Forbidden.
  3. Request the dedicated beneficiary contact endpoint and observe a 403 Forbidden.
  4. Request the combined sender-and-business endpoint and observe a 200 OK with sender contact records.
  5. Request the combined beneficiary-and-business endpoint and observe a 200 OK with beneficiary contact 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.

The app has two roles: Maker (creates transactions and contacts) and Checker (approves them). The Checker should not see contact lists, and the direct contact pages correctly blocked them. But other pages that also show contacts did not check the role, so the Checker could still see the same information there.

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 dheerajdonikena

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.