id: google-oauth-prefixed

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

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

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