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: 4b0a00483046022100a1bdb3602e8986328234a5a5fac7fc44317f70c2b4818bfad76f99d6357fb6b2022100b40e0790bae12744752a556e2411959ca135a89efacb9451e4992975d4ca2ef1:922c64590222798bb761d5b6d8e72950
