id: google-bucket-service

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

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

    matchers:
      - type: dsl
        dsl:
          - contains(tolower(header), 'x-goog-component-count')
          - contains(tolower(header), 'x-goog-expiration')
          - contains(tolower(header), 'x-goog-generation')
          - contains(tolower(header), 'x-goog-metageneration')
          - contains(tolower(header), 'x-goog-stored-content-encoding')
          - contains(tolower(header), 'x-goog-stored-content-length')
          - contains(tolower(header), 'x-guploader-uploadid')
        condition: or
# digest: 4b0a00483046022100d5b96eaac37f65bc99e09275bbe1d98b77b43241e4f8c0b566ee0360c17ee149022100917d2d0c81563e1d80a060fd4bbaff726c277b827907a77a1bb0b0481a74a9b8:922c64590222798bb761d5b6d8e72950