id: coinbase-accesstoken

info:
  name: Coinbase Access Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/coinbase-access-token.yaml
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/coinbase-access-token.go
  metadata:
    verified: true
    max-request: 1
  tags: coinbase,exposure,tokens

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

    extractors:
      - type: regex
        part: body
        regex:
          - (?i)(?:coinbase)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:=|\|\|:|<=|=>|:)(?:'|\"|\s|=|\x60){0,5}([a-z0-9_-]{64})(?:['|\"|\n|\r|\s|\x60|;]|$)
# digest: 4a0a004730450220204969bb3efd1d2a41c8f5019f57b70b41ba6deb672b8c5e7d1f2800b28ec08102210092bdcdfa62622bef6425503cde3e12312a8b9641d14b6ca03eed49b1a0e9f684:922c64590222798bb761d5b6d8e72950