id: sentry-access-token

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

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

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