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,vuln

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

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