Test Role Escalation Via Request Tampering
Try modifying the assignedRoleNames field in a request to a higher privilege role, such as Admin, to see if the server accepts the change. Send a POST request to the /api/user/profile endpoint with the modified assignedRoleNames field, like this: POST /api/user/profile HTTP/1.1 Host: target.com Cookie: [AUTHENTICATED_SESSION] { "userId": "2697", "name": "John Doe", "assignedRoleNames": ["Admin"] }. If the server responds with a 200 OK status and the new role is reflected in the response, it may indicate a client-controlled role assignment vulnerability. Look for a response like this: HTTP/1.1 200 OK { "result": { "id": "2697", "roles": ["Admin"], "unAuthorizedRequest": false } }. This could allow an attacker to escalate their privileges and gain unauthorized access to sensitive data and functionality.
Follow #access-control, #authorization or #privilege-escalation for new tips like this one, on your notifications page and, if you choose, in a daily or weekly email.
Comments
No comments yet.