id: slack-config-refresh-token

info:
  name: Slack Config Refresh Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/slack-config-refresh-token.txt
    - https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/slack-config-refresh-token.yaml
    - https://api.slack.com/authentication
  metadata:
    max-request: 1
  tags: exposure,token,slack,vuln

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

    extractors:
      - type: regex
        part: body
        regex:
          - (?i)(xoxe-\d-[A-Z0-9]{146})
# digest: 490a0046304402201178e67edba7e883395fa00b1f6ea6207e5760aae584d52302501dc9a9bc439702204a2aaf1a4333fe31a2317d80dcb6082441012a3b3aa5c13943316af2d3306963:922c64590222798bb761d5b6d8e72950