role_escalation_test
Test for privilege escalation vulnerabilities by sending requests with manipulated role cookies and JSON body fields to identify unauthorized access opportunities.
Instructions
Test cookie/parameter-based role escalation.
Sends requests with various role cookie values (Admin=true, roleid=2, etc.) and checks for privilege escalation. Also tests JSON body field manipulation for profile update endpoints.
Returns: {"baseline": dict, "results": [{"value": str, "status": int, "length": int, "escalated": bool}], "escalation_candidates": [str]}.
Side effects: If json_body is set, sends POST/PUT requests that may modify state.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>",
"cookie_name": "<cookie_name>",
"cookie_values": "<cookie_values>"
},
"name": "role_escalation_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Protected URL to access, e.g. https://target/admin or https://target/api/users | |
| cookie_name | Yes | Cookie name for role control, e.g. 'admin', 'role', 'is_admin' | |
| cookie_values | Yes | Values to test, e.g. ['true','1','admin','2','yes'] | |
| extra_cookies | No | Additional cookies to include, e.g. 'session=abc123; logged_in=true' | |
| json_body | No | JSON body for POST-based role escalation, e.g. '{"roleid":2}'. Will test each value substituted | |
| json_field | No | JSON field to manipulate in json_body, e.g. 'roleid' |