Skip to content
IDOR Write-up Beginner

Awww!!! It's *Public* Service Commission.....

The website allowed bypassing OTP verification by editing the client-side disabled attribute or tampering with the server response, and then exposed student personal data and hall tickets via IDOR by changing the mobile number in requests. An attacker could access any registered student's details, photos, signature, and hall ticket without knowing their OTP.

Sagar VD Follow

Published on blog.sagarvd.me

The original lives on blog.sagarvd.me

We do not hold its text, 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 OTP verification was enforced only on the client side, and the server trusted the mobile number supplied in requests without verifying ownership, leading to IDOR.

Impact

An attacker could access any registered student's personal details, ID card photo, signature, and hall ticket without knowing their OTP, and could automate the process due to lack of rate limiting.

What the attacker needed

Student's mobile number (or bruteforce it); No rate limit on requests

How it was found

  1. Open the hall ticket download page and inspect the disabled download button.
  2. Remove the disabled attribute from the button and click it to download the hall ticket without OTP.
  3. Enter a mobile number, request OTP, then submit a random OTP and intercept the response.
  4. Change the response JSON status from false to true to bypass OTP verification.
  5. Send a request to get_cand_details_hallticket with a registered mobile number to retrieve student details.
  6. Send requests to get_cand_photo_download and get_cand_sign_download with the same mobile number to retrieve photos and signature.

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 report shows how a website's login check (OTP) could be skipped by simply changing what the browser shows or what the server sends back. Once past that check, the site used a phone number to look up student records without verifying that the person making the request owned that number, so anyone could view other students' private information.

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 Sagar VD

View all

2 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.