How this template works
APIs Selection
The template uses API selection filters to specify the criteria for selecting the API endpoint to test. In this case, the filters are based on the response code and URL. The filters ensure that the response code is between 200 and 299 (inclusive) and extract the URL into a variable called "urlVar".
Execute request
The template uses the "execute" section to define the type of request to be executed. In this case, it is a single request. The request is modified using the "modify_url" action, where the URL variable "urlVar" is appended with "/debug/vars". This modifies the URL to target the "/debug/vars" endpoint.
Validation
The template specifies the validation criteria in the "validate" section. It checks that the response code is equal to 200 and that the response payload contains the strings '"memstats":' and '"cmdline":'. These validations ensure that the request was successful and that the response contains the expected information related to Golang expvar. Note: The instructions explicitly state not to add anything at the beginning or end of the answer.
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