id: google-oauth-prefixed

info:
  name: Google OAuth Client Secret (prefixed)
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/data/default/rules/google.yml
  metadata:
    verified: true
    max-request: 1
  tags: google,token,exposure

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

    extractors:
      - type: regex
        part: body
        regex:
          - '(GOCSPX-[a-zA-Z0-9_-]{28})'
# digest: 4a0a00473045022100f9f9c9b3551425aeacc050ce7388899eab25b7bfa10dc8154f6595a7864c6bc502202593c9791a247d4842c4371ffc3decc5452b5deb36e242f1e72d6419909da58c:922c64590222798bb761d5b6d8e72950