Skip to content
Access control Write-up Beginner

How I Found My First Bug in My Bug Bounty Journey

An admin API endpoint for listing students was reachable without authorisation, while sibling endpoints for jobs and employers correctly returned 401. An attacker could retrieve the full students table, including all its fields, without logging in.

HuseyinAdgzl Follow

Published on medium.com

Hello Everyone! Today I am going to share my experience of the first bug that I found.

Hüseyin Adiguzel, 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 Students listing endpoint lacked the authorisation check that its sibling admin endpoints enforced.

Impact

An unauthenticated attacker could read the entire students table, including all of its fields.

What the attacker needed

No account needed; guessable endpoint and method names

How it was found

  1. Inspect the page source of the public statistics section to find the AJAX API calls.
  2. Request the discovered API paths directly and note they return 404.
  3. Try method names on the endpoints until the GetAll method returns 401 on the jobs and employers endpoints.
  4. Request the same GetAll method on the students endpoint and receive the full table without an error.

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.

Websites often have hidden API addresses that return data in a machine-readable form. The author guessed extra words on the end of such an address and found one that handed back a list of students without asking who was calling. This is a missing access check: the server should have refused the request but did not.

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.