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, it filters the requests based on the response code, ensuring that it is between 200 and 299, and extracts the URL from the response using the "urlVar" variable.
Execute request
The template specifies a single request to be executed. It modifies the URL by appending "/.git-credentials" to the extracted URL. This request is sent to the modified URL to check for the presence of the .git-credentials file.
Validation
The template defines validation criteria to verify the response of the executed request. It checks that the response code is equal to 200, the response payload contains both "https://" and "@github.com", and the response headers do not contain the value "text/html". These validations ensure that the .git-credentials file is present and contains the expected sensitive information.
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