How this template works
APIs Selection
The template uses the API selection filters to specify the desired response code range. In this case, it filters for response codes greater than or equal to 200 and less than 300, indicating a successful response.
Execute request
The template executes a single request using the modified HTTP method TRACE and adds a new header called "new_test_header" with the value "test_val". This allows the template to test if the endpoint is vulnerable to unsafe HTTP methods by replaying the original request with the modified method.
Validation
The template validates the response by checking if the response code falls within the desired range (200-299) and if the response headers contain a key called "new_test_header". This ensures that the server responded with a success code and that the added header was present in the response.