id: beamer-token

info:
  name: Beamer API Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/beamer-api-token.yaml
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/beamer-api-token.go
  metadata:
    verified: true
    max-request: 1
  tags: beamer,exposure,tokens,vuln

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

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