chaining improper authentication to idor and no rate limit for mass account takeover
An API endpoint for user data lacked proper authentication, allowing an attacker to access other users' records by removing a CSRF token from the request. Combined with a missing rate limit, the attacker could enumerate user IDs and obtain session tokens and plaintext passwords, leading to mass account takeover.
Hello folks, hope you all are doing well Today i will share a vulnerablity i discovered in a bug bounty program which leads to takeover of mass accounts login ito the website so let’s start
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 API endpoint relied on a CSRF token for authorization instead of a proper session check, and it also lacked rate limiting.
Impact
An attacker could take over multiple user accounts by obtaining session tokens and plaintext passwords through automated requests.
What the attacker needed
Ability to send HTTP requests; a user account to obtain a valid ID; no rate limiting on the endpoint
How it was found
- Find the endpoint /api/v1/users/id and observe that requests return 401 Unauthorized.
- Notice a CSRF token in the request headers and remove it, then resend the request to get a 200 response with JSON data.
- Create a second account and extract its user ID from a forgot password request.
- Replace the ID in the original request with the new account's ID and remove the CSRF token to confirm IDOR.
- Use Burp Suite to send requests with a range of user IDs (3k-5k) and observe multiple 200 responses containing session tokens and plaintext passwords.
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 website had a page that was supposed to show only your own account details, but it did not properly check who was asking. By changing a number in the request and removing a security token, the attacker could see other people's private information, including their passwords and login sessions. Because there was no limit on how many requests could be made, the attacker could do this for many accounts at once.
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.