Skip to content
Access control Write-up Beginner

Exploiting Mass Assignment to ATO

The profile update API accepted arbitrary fields, allowing an attacker to change another user's email address without validation. This could lead to account takeover by requesting a password reset to the new email.

GERRR4Y Follow

Published on medium.com

“بس� الله و الصلاة و السلا� على رسول الله الح� د لله الذي عل� بالقل� عل� الإنسان � ا ل� يعل� و الصلاة و السلا� على خير � عل� الناس الخير � ح� د”

Aya Ayman(GERR4Y), on medium.com

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 did not filter which fields a user could update, allowing mass assignment of sensitive fields like email.

Impact

An attacker could change a victim's email and then request a password reset to gain full control of the account.

What the attacker needed

A normal user account; ability to intercept HTTP requests

The fix

The application should validate and restrict which fields can be updated by the user, preventing mass assignment of sensitive fields like email.

How it was found

  1. Log in with a normal user account.
  2. Go to the profile edit page.
  3. Intercept the profile update request using Burp Suite.
  4. Modify the email field to an arbitrary address and change the name.
  5. Forward the request and observe a 200 OK response.
  6. Refresh the profile page to confirm the email change.

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 edit your profile, the app sends data to a server. If the server blindly trusts all the data you send, you can sneak in extra fields like someone else's email. Here, the attacker changed the victim's email to their own, then used the password reset feature to take over the 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.

More by GERRR4Y

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.