id: sendbird-access-id

info:
  name: SendBird Access ID
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/sendbird-access-id.go
    - https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/sendbird-access-id.yaml
  metadata:
    max-request: 1
    verified: true
  tags: exposure,token,sendbird,vuln

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

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