The Hidden Pitfalls of Bug Bounties on Indian Government Sites: My First Experience
A government website exposed personal records at URLs ending in sequential numeric identifiers, so changing the number returned other people's data. The finder could enumerate many citizens' names, contact details, addresses and photos, and the site remained unfixed after the report was closed.
Published on medium.com
Hello everyone, I’m Rolex, a beginner in the bug bounty field. Today, I want to share why finding bugs on Indian government websites might not be worth the effort.
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 page looked up records by a sequential numeric identifier without checking that the requester was entitled to view that record.
Impact
Personal data of many individuals, including names, family names, phone numbers, emails, addresses, photos and pincodes, could be harvested by anyone who guessed or scripted the identifiers; the reporter says the issue was still present after being marked resolved.
What the attacker needed
No account needed; predictable numeric identifiers; victim records exist on the site
The fix
The site should check that the requester is authorised for each record and avoid exposing predictable sequential identifiers, but the text says nothing was actually changed.
How it was found
- Open a government site page whose URL ends in a numeric identifier.
- Change the number by hand and see whether other pages load.
- Write a script that increments the number and requests each page.
- Collect the responses that return non-empty pages containing other people's details.
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.
Many websites put a record's identifier in the web address, such as a number at the end of the link. If the site does not check that you are allowed to see that record, you can simply change the number and read someone else's page. Here the numbers were predictable, so a small script could walk through them and collect many people's details.
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.