id: scalingo-api-token

info:
  name: Scalingo API Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/scalingo-api-token.go
    - https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/scalingo-api-token.yaml
  classification:
    cwe-id: CWE-522,CWE-540
  metadata:
    max-request: 1
    verified: true
  tags: exposure,token,scalingo,vuln

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

    extractors:
      - type: regex
        part: body
        regex:
          - \b(tk-us-[a-zA-Z0-9-_]{48})(?:['|\"|\n|\r|\s|\x60|;]|$)
# digest: 490a0046304402201aab23e5f2107789cd0783c15154be30ca9f43548f43878114c54bcda35a415b022014f96f6ac3fae4af3c874c9b6ffbe3dd27a8b0587e61f96aaaab5e3b49c166cd:922c64590222798bb761d5b6d8e72950