id: square-oauth-secret-token

info:
  name: Square OAuth Secret
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/data/default/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: 4a0a004730450220374efb15e8b817d098d07a7d50d61727b7a6e65fc6e2164cb81a59db406a29b8022100eac0ececb44842429804624dc283645ba632436467bdd71964ee9507970b5803:922c64590222798bb761d5b6d8e72950