id: sendinblue-api-token

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

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

    extractors:
      - type: regex
        part: body
        regex:
          - (?i)\b(xkeysib-[a-f0-9]{64}\-(?i)[a-z0-9]{16})(?:['|\"|\n|\r|\s|\x60|;]|$)
# digest: 4b0a0048304602210088d95f0dd1f2d48aff6ed74293b2d96856ed0533905d5655e467d8e4a9c08a74022100be240412bb321927dcc56a8910587153f12b2b906fd8a0b35efb251da9ef16ed:922c64590222798bb761d5b6d8e72950