The Missing Link: How a Broken Access Control Led to a Full Accou
The password change flow relied on the client sending a separate authentication request before a profile update request, but the server did not verify that the authentication had occurred. An attacker with an active session could skip the authentication step and directly send a profile update containing a new password, achieving account takeover.
Published on medium.com
In modern web applications, the User Interface (UI) often acts as the first line of defense. It guides users, enforces rules, and prevents them from making invalid requests.
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 server did not enforce that the authentication step (checking the current password) had been completed before processing the password update request; there was no token or session flag linking the two steps.
Impact
An attacker with an active session could change the victim's password without knowing the current one, leading to permanent account takeover and operational disruption for a fleet management platform.
What the attacker needed
An active session (e.g., hijacked cookie or unlocked…
The fix
The Set API request should require the old password alongside the new password and validate it on the backend, or the Authenticate endpoint should return a short-lived single-use token that the Set request must include.
How it was found
- Log in to the application and navigate to the profile settings to observe the password change workflow.
- Intercept the traffic and note that clicking 'Save' triggers two requests: an Authenticate request with the current password, followed by a Set request with the new password in the JSON payload.
- Using an active session, skip the UI and send only the Set request directly, injecting the password change parameter into the JSON payload.
- Observe that the server responds with HTTP 200 OK and processes the request.
- Open a new incognito window and log in with the victim's email and the new password to confirm the account takeover.
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 website usually asks for your old password first. This report shows that the server only checked the old password if the website's interface sent a separate request, but the server did not actually require that request to happen. So an attacker who already had access to your logged-in session could just send the final 'set new password' request directly and take over your account.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.