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

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

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