Sensitive AWS details exposed via replacing XML param due to SSRF
The endpoint appears to be vulnerable to Server Side Request Forgery attack. The original request was replayed by replacing XML upload parameter with url that redirects to AWS IMDS endpoint. The application responded with 2XX success code and also gave out sensitive AWS information in response.
Server Side Request Forgery (SSRF)
How this template works
APIs Selection
The template uses API selection filters to specify the criteria for selecting the APIs to be tested. In this case, the filters include checking the response code to be between 200 and 204, and checking if the request payload or query parameter contains a ".xml" extension.
Execute request
The template uses a single execution type, which means it will execute a single request. The request is modified by replacing the "xml_key" query parameter and body parameter with a specific URL. This modification is done using the "modify_query_param" and "modify_body_param" actions.
Validation
After executing the request, the template validates the response. It checks if the response code is between 200 and 299, indicating a successful request. It also checks if the response payload contains any of the specified sensitive AWS information, such as "ami-id" or "block-device-mapping". If the validation criteria are met, the test is considered successful.
Frequently asked questions
Explore other tests
Sensitive files exposed due to SSRF
Port scanning with SSRF
Sensitive AWS details exposed via replacing url param with encoded url due to SSRF
Sensitive AWS details exposed due to SSRF
Sensitive AWS details exposed via replacing CSV param due to SSRF
Sensitive AWS details exposed via replacing file param due to SSRF
Sensitive AWS details exposed via replacing image param due to SSRF
Sensitive localhost details exposed via replacing URI param with localhost/admin due to SSRF
Sensitive localhost details exposed via replacing URI param redirecting to localhost/admin due to SSRF
Sensitive localhost details exposed via replacing URI param to encoded localhost/admin due to SSRF
Sensitive AWS details exposed via replace PDF param due to SSRF