Skip to content

LS-SQ-002: Square OAuth Token

Severity HIGH
Blast radius Payment processing and customer financial data
Rotate at https://developer.squareup.com/apps

If this leaks

Acts on behalf of the merchant who authorized the app, with access to payments, orders, and customer records.

What to do

  1. Rotate or revoke the credential at https://developer.squareup.com/apps.
  2. Check the provider's audit logs for use you don't recognise.
  3. Remove it from git history (leakscan purge --help) and load it from an environment variable or secret manager instead.

Pattern

sq0(?:atp|csp)-[A-Za-z0-9\-_]{22,43}

Suppress

On one line: # leakscan:ignore LS-SQ-002. For the whole project:

disable_rules: [LS-SQ-002]