How this template works
APIs Selection
The template uses API selection filters to specify criteria for selecting the APIs to be tested. In this case, it filters APIs based on the response code, ensuring that it selects APIs with a response code between 200 and 299. It also extracts the URL of the selected APIs using the "extract" keyword and assigns it to the variable "urlVar".
Execute request
The template uses the "execute" section to define the execution of the API requests. It specifies the type of execution as "single", indicating that each API will be tested individually. It then defines the requests to be executed, which in this case includes modifying the URL of the API using the value stored in the "urlVar" variable.
Validation
The template includes validation criteria to verify the expected behavior of the API responses. It checks that the response code is equal to 200 and that the response headers contain a version string matching the regular expression "nginx/[0-9.]+". These validations ensure that the API is functioning correctly and that the Nginx server version is not disclosed in the response headers.
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