From Registration Number Enumeration to Dos: Chaining IDOR with OTP Bypass in Slot Booking System
A slot booking endpoint returned doctor names and mobile numbers when registration numbers were enumerated, and the OTP verification step could be bypassed by changing a false value to true in the response. An attacker could then book a slot in a doctor's name, blocking that doctor from booking for 30 days.
Published on medium.com
So, I was testing on a government website designed for doctors and medical professionals. The platform allows them to manage their registrations, book slots, apply for certificates like Good Standing or NOC, renew their licensesand submit supporting documents.
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 lookup endpoint exposed personal data for sequential identifiers, and the OTP check relied on a client-side response value that could be tampered with.
Impact
An attacker could enumerate doctor names and mobile numbers and book slots under a doctor's name, potentially preventing that doctor from booking for 30 days, a targeted denial of service.
What the attacker needed
Knowledge of a valid registration number; ability to intercept and edit responses
How it was found
- Select a date, service and slot type in the booking flow.
- Enter a registration number in the doctor profile step, which auto-fills the doctor name.
- Inspect the lookup response to find the doctor's mobile number.
- Enter a random phone number and an incorrect OTP.
- Intercept the response, change the false result to true, and forward it.
- Complete the booking under the doctor's name.
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 site let anyone look up a doctor's name and phone number by guessing a registration number, which is like a public ID. When booking a slot, the site asked for a code sent by text message, but it trusted a simple 'yes/no' answer from the browser that could be edited. By flipping that answer, the attacker skipped the code and booked the slot in the doctor's name.
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.