IDOR Chained To Missing Ratelimiting Leaded To ATO of Any User Ac
The change-password endpoint accepted a username and email address supplied by the client and used them to decide whose password to change, so an attacker could target another account. Because the current-password check had no rate limiting, the attacker could guess the victim's existing password and then set a new one, taking over the account.
Published on d0natel00.medium.com
Hello Friend, When I Was Bored and Doing Testing on One of the VDP Programs Which I Recommend This To You If You Want To Practice or Bored Like Me or Gain Reputation ! , I Found an IDOR on Changing Password Function Which the APP Let the Use Try a Lot of Passwords on Current Password in Case He Forgot it So They…
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 server trusted the client-supplied username and email address to identify the account instead of binding the change to the authenticated session, and it applied no rate limiting to the current-password check.
Impact
An attacker could take over any user's account by guessing the current password without being blocked, though the write-up notes that without the IDOR the app locks out after roughly ten to thirty attempts.
What the attacker needed
A valid session on the app; victim's username and email known; victim's current password guessable
How it was found
- Send the normal change-password request and note the fields it carries.
- Replace the username and email address with the victim's values.
- Repeatedly submit guesses for the current password until one is accepted.
- Log in with the new password to confirm the victim's account was taken over.
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.
When you change your password, the site should only ever change your own account. Here the request also carried a username and email address, and the server trusted them, so a tester could point the change at someone else's account. The site also let you try the old password over and over without slowing you down, so guessing the victim's password became practical.
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.