Actions
Bug #93
openPrivilege Escalation via Unauthorized Status Update (Mass Assignment Vulnerability) (Web-API)
Status:
New
Priority:
Normal
Assignee:
-
Description
The /api/agency/update endpoint allows an authenticated user to modify restricted fields such as status. This enables a user to self-verify or change their account status without admin approval, leading to privilege escalation.
Endpoint:
POST https://devapi.akindervolunteer.com/api/agency/update
Steps to Reproduce:
- Authenticate as a normal agency user.
- Send the following request:
POST /api/agency/update
Authorization: Bearer <user_token>
Content-Type: application/json
{
"status": "Available"
}
- Observe that the user's status is updated successfully.
Expected Behavior:
Only administrators should be able to update sensitive fields like status.
Actual Behavior:
Any authenticated user can update their own status.
Actions