check_404_neutrality
Test a route to ensure nonexistent, invalid, and malformed resource IDs return byte-identical 404 responses, preventing existence leaks.
Instructions
Check that nonexistent, invalid and malformed resource ids return a byte-identical 404. Differences leak an existence oracle that enables enumerating other users' resources.
Args: base_url: Origin of the app under test, e.g. "http://127.0.0.1:5000". path_template: Route with an {id} placeholder, e.g. "/notes/{id}".
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": {
"base_url": "<base_url>"
},
"name": "check_404_neutrality"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base_url | Yes | ||
| path_template | No | /items/{id} |