id: gitter-token

info:
  name: Gitter Access Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/gitter-access-token.yaml
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/gitter-access-token.go
  classification:
    cwe-id: CWE-540
  metadata:
    verified: true
    max-request: 1
  tags: exposure,gitter,file,keys,vuln

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

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