id: aws-redirect

info:
  name: Subdomain takeover AWS S3
  author: manikanta a.k.a @secureitmania
  severity: info
  reference:
    - https://link.medium.com/fgXKJHR9P7
  metadata:
    max-request: 1
  tags: aws,takeover,misconfig,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}'

    redirects: false

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 307

      - type: word
        words:
          - 'Location: https://aws.amazon.com/s3/'
        part: header
# digest: 490a0046304402207fa7e9e2a59aedbed994ccfd0b057cda6e8307c208ec1fe82f9ec6d162c76882022033de7bd18be6afedc348a2e8b8b387aee7f74be924e2bfb62f5a86e56cbb0413:922c64590222798bb761d5b6d8e72950