Skip to content

LS-DISCORD-002: Discord Webhook

Severity HIGH
Blast radius Channel spam and phishing
Rotate at https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks

If this leaks

Allows anyone with the URL to post arbitrary messages, embeds, or files into the configured channel.

What to do

  1. Rotate or revoke the credential at https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks.
  2. Check the provider's audit logs for use you don't recognise.
  3. Remove it from git history (leakscan purge --help) and load it from an environment variable or secret manager instead.

Pattern

https://discord(?:app)?\.com/api/webhooks/[0-9]{17,20}/[A-Za-z0-9._-]{60,}

Suppress

On one line: # leakscan:ignore LS-DISCORD-002. For the whole project:

disable_rules: [LS-DISCORD-002]