Skip to content
IDOR Write-up Beginner

Leaks Data via Public API And IDOR

An unauthenticated endpoint exposed all schools' information, including staff details and IDs, and a second endpoint allowed retrieval of detailed data for any school by changing its ID. The same IDOR pattern let the author access teachers' personal data, including names, locations, school IDs and photos.

medium.com

Published on medium.com

بس� الله الرح� ن الرحي� , الله� لك الح� د � الك ال� نه الفضل علي عباده الفقراء ,الله� لك الح� د عدد كل شئ , اللَّهُ� َّ ‌صَلِّ ‌عَلَى ‌� ُحَ� َّدٍ ‌وَعَلَى ‌آلِ ‌� ُحَ� َّدٍ، ‌ك� ا ‌صليت ‌على ‌إبراهي� ، وعلى آل إبراهي� ، إنك ح� يد � جيد، اللَّهُ� َّ بَارِكْ عَلَى � ُحَ� َّدٍ وَعَلَى آلِ � ُحَ� َّدٍ، ك� ا باركت على إبراهي� وعلى آل إبراهي� ،…

HBlack Ghost, 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 endpoints lacked authentication and authorisation checks, so any caller could list all schools and fetch records by ID without proving ownership or permission.

Impact

An unauthenticated attacker could enumerate all schools and then read sensitive staff and teacher data, including names, locations, school IDs and photos, for any region.

What the attacker needed

No authentication required; network access to the endpoints

How it was found

  1. Find an endpoint that returns all schools' information without authentication.
  2. Extract the school IDs from that response.
  3. Use the school ID in another endpoint to retrieve detailed data for that school.
  4. Change the ID in a teacher-related endpoint to access teachers' personal data.

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.

Some websites give each record a number or code, called an ID, and use it to look up that record. If the site does not check that you are allowed to see that record, you can simply change the ID in the request and read someone else's data. Here, one endpoint listed every school without any login, and another returned a school's or teacher's private details just by swapping the ID.

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.

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.