id: clojars-token

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

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

    extractors:
      - type: regex
        part: body
        regex:
          - (?i)(CLOJARS_)[a-z0-9]{60}
# digest: 4a0a00473045022100ab0f70bdbbfe9021178a288a4ee85855f173d0357d8b350434af8217bfe6a8a3022057398637fbae11e36a369c9e2b1094110593233cc975e82fa2ef67ef51f0d39b:922c64590222798bb761d5b6d8e72950