Mass Assignment Vulnerability in ty-api.xyz.cloud/api/v1/user/me
A mass assignment flaw in the user profile API let an authenticated attacker change another user's email address without authorisation. This could permanently lock the victim out of their account and bypass email verification.
Published on medium.com
This blog post details my experience discovering and reporting a mass assignment vulnerability in a VDP program. The vulnerability allowed an attacker to modify the email address of any user without authorization, leading to a permanent account lockout for the victim.
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 profile update endpoint bound request fields directly to the user object without checking that the email belonged to the caller, and the separate identity provider did not re-validate the change.
Impact
An attacker could permanently lock any user out of their account and bypass email verification, and could automate the request to mass-lock accounts.
What the attacker needed
An account on the service; knowledge of the victim's email address
How it was found
- Create two accounts, one for the attacker and one for the victim.
- Log in as the attacker and intercept the profile API request.
- Change the request method to PUT, add a JSON content type, and set the email field to the victim's address.
- Send the request and receive a 200 OK response.
- Log out of the victim's account and try to log in again; the account is now locked.
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.
Mass assignment is when an application takes fields from a request and updates them without checking whether the user should be allowed to change them. Here, the profile endpoint accepted an email field on a PUT request, so one user could overwrite another user's email. That locks the real owner out because password recovery goes to the changed address.
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.