How this template works
APIs Selection
The template uses API selection filters to specify the criteria for selecting the API requests to be executed. In this case, the filters are based on the response code and URL. The filter checks if the response code is equal to 302 (redirect) and if the URL matches a regular expression pattern. It also extracts a variable called "urlVar" from the URL.
Execute request
The template defines a single request to be executed. It modifies the URL by replacing the protocol (http or https) with "http://evil.com" using a regular expression. It then disables following redirects for this request.
Validation
After executing the request, the template validates the response. It checks if the response code is equal to 302 (redirect) and if the response headers contain the key "location" with a value that contains either "evil.com". This validation ensures that the request was redirected to a URL containing "evil.com", indicating a potential open redirect vulnerability.
Frequently asked questions
Explore other tests
eSMTP - Config Discovery
Nginx - Git Configuration Exposure
Laravel - Sensitive Information Disclosure
Docker Container - Misconfiguration Exposure
Msmtp - Config Exposure
Parameters.yml - File Discovery
Mongo Express - Unauthenticated Access
Apache Airflow Configuration Exposure
Dockerrun AWS Configuration Exposure
Apache Config file disclosure
Appspec Yml Disclosure
CGI script environment variable