id: aws-bucket-service

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

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: 490a004630440220668ba4bd75521c8285a06a720e5372784f7e2d5acff3ad0be0e496a83d88883802207404d02ef96a9a12de08f9a5a3397806e0e0a0cebc98071a975e057a24960261:922c64590222798bb761d5b6d8e72950