id: codeclimate-token

info:
  name: CodeClimate Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/data/default/rules/codeclimate.yml
    - https://github.com/codeclimate/ruby-test-reporter/issues/34
  metadata:
    verified: true
    max-request: 1
  tags: codeclimate,token,exposure

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

    extractors:
      - type: regex
        part: body
        regex:
          - '(?i)codeclima.{0,50}\b([a-f0-9]{64})\b'
# digest: 490a0046304402202788977f9dbbacd4cfb69a090b25b4c700ac23f53a0b186a9099f9d407ad273602201a1ad0aa113f7824d26172c19f1fbd741d7b5c6dabde12e0d81098e83b23df33:922c64590222798bb761d5b6d8e72950