Skip to content
IDOR Write-up Beginner

Guarding One Key and Querying Another

Two endpoints in a US government data portal checked authorization against a region supplied by the client but then accessed records by an independent id, allowing a user with access to one region to read or write records belonging to any other region. Because record ids were sequential integers, an attacker could enumerate them to access other regions' communication logs (including recipient PII, files, and staff notes) or write objectives onto any region's activity report.

Dilanka Kaushal Hewage Follow

Published on r3vpwnx.medium.com

Two cross-region authorization bugs in a US government data portal (GHSA-9r9x-g862–525c, GHSA-q859–79hf-rpr3)

Dilanka Kaushal Hewage (r3vpwnx), on r3vpwnx.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

The authorization check used a client-supplied region value while the actual data access used an independent record id, with no verification that the record belonged to the authorized region.

Impact

A user with access to a single region could read any region's communication logs (including recipient PII, files, and staff notes) and write objectives onto any region's activity report, by enumerating sequential record ids.

What the attacker needed

Access to at least one region; knowledge of record ids (sequential)

The fix

Both issues were fixed in the same change and deployed the day they were reported.

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.

This is a case where the application checked one thing (which region you belong to) but then used a different thing (a record id) to fetch or modify data, without verifying that the record actually belongs to your region. Because the ids were simple numbers, someone could just try different numbers to see other regions' data. This is called broken object-level authorization, and it is a common mistake.

What is IDOR?

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.

More by Dilanka Kaushal Hewage

View all

5 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.