IDOR on https://██████ via POST UID enables database scraping
The user operations API endpoint accepts a UID parameter without checking whether the caller is authorised to view that user's data. An unauthenticated attacker can supply sequential numeric UIDs to scrape names, emails, military branches and scores from the database.
- Triaged in 15 hours
- Fixed in 4 months
- Disclosed after 4 months
Summary: The UID parameter on █████████ in the ██████ (███████) system, with ███████, does not validate that the caller has permission to view information on the UID entered, thereby enabling personnel and student data extraction.
Description: The user operations API endpoint for the ███ (██████████) is ███. It is used for login, forgot password, and administrators viewing user information.
Unfortunately, this endpoint lacks basic security precautions, the most serious of which appears to enable database scraping via ███ (I assume this is for ████████).
By entering sequential and numerical user IDs via the UID parameter, an unauthenticated and unauthorized external attacker can scrape the ████████ database's emails, ████ info, ████████ scores, and first & last names.
Impact
An unauthenticated, unauthorized external attacker can obtain the full names, emails, military branches, and ████ scores of all users registered in the █████ (███) system.
Step-by-step Reproduction Instructions
-
Run the following cURL command:
curl 'https://███' --data-raw 'sendingForm=██████' -
Success.
Other Notes
This ██████████ endpoint appears extremely insecure in general. There is a very verbose ASPX error if you enter sendingForm with any number greater than ██████ and don't specify a UID. There is a null user/UID in the system with UID █████████, which will be matched against whenever not entering a parameter (i.e. excluding "un" and "pn" during login on ███).
I suspect more damage is possible with this endpoint, but as I have already unintentionally and accidentally extracted information on UID █████████(which is not me), I am reporting the vulnerability now and ceasing penetration █████████ing against the endpoint.
Suggested Mitigation/Remediation Actions
- Ensure that sendingForm type ████████ can only be utilized by logged in administrative users.
- Ensure that a null parameter in any form does not evaluate to "true" (so only specifying a username without a password does not lead to a successful login).
████████. Disable ASP verbose error generation. 4. Given how central ████ appears to be, and that it contains information on tens of thousands of students, perform an audit of the source code. It does not appear to use any best practices.
Impact
An unauthenticated, unauthorized external attacker can obtain the full names, emails, military branches, and █████ scores of all users registered in the ███ (███) system.
An adversarial intelligence agency could obtain information on students participating in DOD ██████ instructional programs.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the endpoint trusts the caller-supplied UID and performs no authorisation check before returning the matching user's records.
Impact
An unauthenticated attacker could obtain the full names, emails, military branches and scores of all users registered in the system.
What the attacker needed
No account needed; network access to the endpoint
The fix
The endpoint should require authentication and restrict the sendingForm action to logged-in administrative users, and null parameters should not evaluate to true.
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 report has not been written yet. The Original tab links to the source.
Many websites use a number or code to identify each user, called a UID. If the site returns that user's details to anyone who asks, without checking whether the requester is allowed to see them, it is called an insecure direct object reference. Here, changing the number in a request let anyone read other people's records.
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.