id: microsoft-teams-webhook

info:
  name: Microsoft Teams Webhook Disclosure
  author: Ice3man
  severity: info
  reference:
    - https://docs.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/what-are-webhooks-and-connectors
  metadata:
    max-request: 1
  tags: exposure,token,microsoft

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

    extractors:
      - type: regex
        part: body
        regex:
          - 'https://outlook\.office\.com/webhook/[A-Za-z0-9\-@]+/IncomingWebhook/[A-Za-z0-9\-]+/[A-Za-z0-9\-]+'
# digest: 4a0a0047304502206b93248e79245c926114c3120a94fc5a81be05bc7b2d139ca6efff5c82142693022100f390d30d69b85587fb7ccf436604a313f6934ab2e921e0184270793e852cdf09:922c64590222798bb761d5b6d8e72950