Test API endpoints for mass assignment

Business logicDiscovery

Written with a model's help from “Some Logic Bugs in Email Handling” on Mahmoud Farag (Medium). Read the writeup before relying on it.

When testing API endpoints that update user profiles, try adding extra fields to the request body to see if the backend accepts them. This can indicate mass assignment behavior, where sensitive fields such as email can be modified without proper validation. Send a request to the endpoint with a payload like { "newEmail": "test@example.com" } to test for this condition. If the change is accepted, it may be possible to update sensitive fields without authorization. Look for inconsistencies in validation between different endpoints or subdomains, and test each one to see if they enforce the same rules.

Follow #account-takeover, #business-logic or #email-handling for new tips like this one, on your notifications page and, if you choose, in a daily or weekly email.

Comments

No comments yet.