id: sendbird-access-token

info:
  name: SendBird Access Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/sendbird-access-token.go
    - https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/sendbird-access-token.yaml
  classification:
    cwe-id: CWE-522,CWE-540
  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}([a-f0-9]{40})(?:['|\"|\n|\r|\s|\x60|;]|$)
# digest: 490a0046304402201473acfef2ad5c9c9d423d29abe7586b3bd1b07a0392816b6262143b4013228002202e1007f757a1b2061421da85fac727dc56cfb72f88d490ebb1bb580c695e341f:922c64590222798bb761d5b6d8e72950