id: square-oauth-secret-token

info:
  name: Square OAuth Secret
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/builtin/rules/square.yml
  metadata:
    verified: true
    max-request: 1
  tags: square,token,exposure,oauth

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

    extractors:
      - type: regex
        part: body
        regex:
          - '(?i)\b(sq0csp-[a-z0-9_-]{43})\b'
# digest: 4a0a00473045022100aac88ed4dc40afeab9a82f72bf486c7ffb830d26443acbff83f9bfa26292b1e1022018d43fe0f3265dda0705f1add77629b141d8bd489df01c032b4da9bc2e8cde44:922c64590222798bb761d5b6d8e72950