id: zendesk-key

info:
  name: Zendesk Secret Key
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/zendesk-secret-key.yaml
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/zendesk-secret-key.go
  metadata:
    verified: true
    max-request: 1
  tags: zendesk,exposure,tokens,vuln

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

    extractors:
      - type: regex
        part: body
        regex:
          - (?i)(?:zendesk)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:=|\|\|:|<=|=>|:)(?:'|\"|\s|=|\x60){0,5}([a-z0-9]{40})(?:['|\"|\n|\r|\s|\x60|;]|$)
# digest: 4a0a0047304502204ad884b0d593b04614164cfe77b265110e97ffaf0b14e35edb69b408938329d0022100a2c54e73bc78a29ecb3ef89f4ecea392a892540e22ba09eb3d852a38976eac8e:922c64590222798bb761d5b6d8e72950