path_traversal_check
Detect and prevent path traversal vulnerabilities in API endpoints by testing specific parameters for unauthorized access. Works with GET or POST methods and integrates authentication checks.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
endpoint | Yes | API endpoint to test | |
http_method | No | HTTP method to use | GET |
parameter_name | Yes | Name of the parameter to test for path traversal | |
use_auth | No | Whether to use current authentication if available |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"endpoint": {
"description": "API endpoint to test",
"format": "uri",
"type": "string"
},
"http_method": {
"default": "GET",
"description": "HTTP method to use",
"enum": [
"GET",
"POST"
],
"type": "string"
},
"parameter_name": {
"description": "Name of the parameter to test for path traversal",
"type": "string"
},
"use_auth": {
"default": true,
"description": "Whether to use current authentication if available",
"type": "boolean"
}
},
"required": [
"endpoint",
"parameter_name"
],
"type": "object"
}