id: vault-batch-token

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

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

    extractors:
      - type: regex
        part: body
        regex:
          - (?i)\b(hvb\.[a-z0-9_-]{138,212})(?:['|\"|\n|\r|\s|\x60|;]|$)
# digest: 4a0a00473045022066c0fed70990acfc748254028d8f5bcb39a3e6ed51d6968df51cb2638766a756022100bb02d1307764e403c1c7ad05e4d9eb18144e174817a2b033d7777da6518c63cd:922c64590222798bb761d5b6d8e72950