hard20 pts · first answer countssecurity-testingapi-testing
Mass assignment in profile update
The profile form sends PATCH /api/me with name and phone. You add an extra field to the JSON body and the response shows your account is now an admin. What is this vulnerability?
PATCH /api/me
Content-Type: application/json
{ "name": "Sara", "phone": "+971501234567", "role": "admin" }Discussion 0
Join free to post in the discussion.
Related questions
- Reading an API status codeQA Engineer
- Status code for a created resourceQA Engineer
- 401 vs 403QA Engineer
- Probing for SQL injectionQA Engineer
- Testing a search box for XSSQA Engineer
- What a safe method meansQA Engineer
- A successful delete with no bodyQA Engineer
- Fetching an ID that does not existQA Engineer