How I Ethically Hacked the Indian Army for the Second Time
An endpoint on an Indian Army domain lacked authentication and authorization, allowing anyone to access a database of sensitive personnel information by changing an ID value. An attacker could retrieve names, service numbers, email addresses, mobile numbers and Aadhaar availability status for Army personnel.
medium.com
Published on medium.com
I am Guru Prasad Pattanaik, also known online as “TH3N00BH4CK3R.” Today, I want to share my experience of securing one of India’s most esteemed organizations — the Indian Army. This marks my second ethical hacking encounter involving the Indian Army.
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 endpoint used an identifier from the request to fetch records without verifying the caller's identity or permissions.
Impact
The exposed data could enable phishing, identity theft and social engineering against Army personnel, and the author claims it could affect national security and operational safety.
What the attacker needed
No account needed; knowledge of the endpoint pattern
The fix
The issue was fixed after being reported to CERT-In and the domain's technical team.
How it was found
- Find the endpoint /int/{ID} on the affected domain.
- Change the {ID} value in the request.
- Observe that the response returns sensitive personnel data without any authentication or authorization.
- Confirm whether the data was intentionally accessible.
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.
A website had a page that was supposed to show information only to authorised people, but it did not check who was asking. By changing a number in the web address, anyone could see records about army staff. This is called a broken access control problem.
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.