Unauthenticated IDOR Leading to Unauthorized Read and Delete Sens
An API endpoint for financial securities lacked authentication and authorization checks, allowing anyone to read records by guessing numeric IDs. The endpoint also permitted destructive HTTP methods, so an unauthenticated attacker could delete records.
Published on medium.com
Hi everyone, I’m Bashir Abdulmajeed or 0xb0sh I’d like to share a short write-up about how I discovered this vulnerability.
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
The API endpoint did not check if the user was logged in or authorized, and used predictable numeric IDs.
Impact
An unauthenticated attacker could read detailed financial securities data and could potentially delete records.
What the attacker needed
None
How it was found
- Find a login page with no visible functionality and review its JavaScript files.
- Search the JavaScript for API paths and discover an endpoint for securities.
- Request the endpoint without an ID and receive a 404 error.
- Send a request with a non-numeric value and see an error indicating a numeric ID is expected.
- Request the endpoint with numeric IDs and receive structured financial data.
- Send an OPTIONS request and observe that additional HTTP methods, including delete, are allowed.
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.
An API is a way for a website's front-end to talk to its back-end. This API returned financial data for any number you put in the address, without asking who you are. Because it also accepted a delete method, anyone could remove records too.
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.