How I Discovered a High-Severity Vulnerability on Discord (and go
A Discord template link accepted a JavaScript array value instead of a template ID, causing the client to retry rendering in an endless loop and send many background requests. Sending hundreds of such links across channels lagged the victim's client and got their account rate-limited and locked out for an hour.
Recently, I found a vulnerability that ratelimits users Discord account and locks their Discord account for minutes/hours for using Discord’s any features. The vulnerability also caused to lagging users Discord client (or browser) because it was sending high amount of requests on background.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the template page did not validate that the link value was a plain template ID, so a JavaScript array value caused a render failure that was retried in an endless loop.
Impact
A victim could have their client lag and their account rate-limited and locked out of all features for minutes to hours.
What the attacker needed
Ability to post links in channels; victim views the crafted links
The fix
The issue was fixed by Discord's security team, so the vulnerability can no longer be reproduced.
How it was found
- Open a Discord template link that uses a JavaScript array value instead of a template ID.
- Observe the client failing to render and repeatedly sending requests in the background.
- Send hundreds of such links in different channels.
- Observe the client lagging and the account becoming rate-limited for an hour.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Discord has short links that create a template, and the page expects a normal ID in the link. If you put a special JavaScript value there instead, the page keeps failing and retrying forever, which floods the app with requests. Doing this many times at once overloads the app and makes Discord temporarily block the account.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.