id: aws-bucket-service

info:
  name: Detect websites using AWS bucket storage
  author: pdteam
  severity: info
  metadata:
    max-request: 1
  tags: aws,tech,bucket,discovery

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

    matchers-condition: and
    matchers:
      - type: dsl
        dsl:
          - contains(tolower(header), 'x-amz-bucket')
          - contains(tolower(header), 'x-amz-request')
          - contains(tolower(header), 'x-amz-id')
          - contains(tolower(header), 'amazons3')
        condition: or

      - type: dsl
        dsl:
          - contains(tolower(header), 'x-guploader-uploadid')
        negative: true
# digest: 490a0046304402205879fc467c6ccc26f5a1e110d3ea1b5248ae0ac0b9480c1fb4e9e960b945098d02204a41435f3623ece12326028899477a4d827f9e4347b013cd94780e1be58a32af:922c64590222798bb761d5b6d8e72950