id: shippo-api-token

info:
  name: Shippo API Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/shippo-api-token.go
    - https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/shippo-api-token.yaml
  metadata:
    verified: true
    max-request: 1
  tags: shippo,exposure,tokens,vuln

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

    extractors:
      - type: regex
        part: body
        regex:
          - (?i)\b(shippo_(live|test)_[a-f0-9]{40})(?:['|\"|\n|\r|\s|\x60|;]|$)
# digest: 4a0a00473045022012aef8898d62f29e8a1317f42e3270c638656e7253a7cc0806616cf6f08cf8ca022100f58aa220ef2bcf9c9a02e91ae2411319822e4d80dedf7c5462867c8a8dfef453:922c64590222798bb761d5b6d8e72950