Mass assignment leading to modification of role
The endpoint appears to be vulnerable to Mass Assignment attack. The original request was replayed by modifyinh role param in request body. The application responded with 2XX success code in response.
Mass Assignment (MA)
How this template works
APIs Selection
The template uses API selection filters to specify the criteria for selecting the API endpoints to be tested. It filters the endpoints based on the response code (between 200 and 299), the HTTP method (PUT, POST, or PATCH), and the presence of the "role" key in the response payload.
Execute request
The template executes a single request by adding a body parameter with the key and value extracted from the response payload. The key is extracted using the "role" key from the response payload, and the value is extracted using the "role_context" key from the param context.
Validation
The template validates the response by checking if the response code is between 200 and 299 and if the response payload contains the extracted "role" key with the corresponding value extracted from the param context.
Frequently asked questions
What is a Mass Assignment vulnerability and how does it impact the security of an application
How does the test identify if an API endpoint is vulnerable to Mass Assignment attacks
What are some examples of sensitive properties that should not be updated by clients in an application
How does the test categorize the severity of a Mass Assignment vulnerability
What are some recommended references for understanding and mitigating Mass Assignment vulnerabilities
How does the test validate if the vulnerability has been successfully exploited
"The text editor in Akto is absolutely remarkable. Its user-friendly YAML format strikes the perfect balance between simplicity and power. With intuitive features like 'API selection filter', 'Execute', Validate' creating test rules becomes incredibly easy. Akto's test editor is a game-changer, enabling seamless creation of highly personalized and effective tests that could meet the needs of any modern day organization. "

Security team,
Rippling