Skip to content

Write-ups

Discord

Every publicly disclosed report for Discord, what kind of bugs they were and what was paid.

disclosed reports
7
with a public bounty
2
median public bounty
$5,000
public bounties in all
$10k

Disclosed reports

Newest first. Only what Discord chose to make public.

RCE $5,000

Why I chose Discord for the target

The Discord desktop app had contextIsolation disabled, allowing a DOM-based XSS in an embedded Sketchfab iframe to interfere with preload scripts and execute arbitrary code. Combined with an Electron bug that failed to block top-level navigation from cross-origin iframes, an attacker could achieve remote code execution on the victim's machine.

Discord

Open redirect

Discord embed spoofing

Discord's web and desktop clients parsed message URLs without first decoding percent-encoding, so a crafted link could display one hostname while the embed content was actually loaded from a different domain. An attacker could use this to make phishing links appear to come from discord.gg.

Discord

DoS

Discord DoS with a single message

A message containing a malformed URL with invalid percent encoding in the authentication part caused Discord's web and desktop clients to crash permanently when rendering the channel. An attacker could send such a message from the mobile app or by editing the request, making the channel unreadable on those clients.

Discord

OAuth / SSO

Finding a security bug in Discord and what it taught me

The OAuth client credentials grant issued an access token for a Discord Team, which is a managed user object, allowing the token to act as that user. The attacker could use the token to add the team user to a guild, causing inconsistent API behaviour.

Discord

RCE

Using URI to pop shells via the Discord Client

The Discord client rendered URI schemes wrapped in angle brackets as clickable links and would launch the associated local application without a prompt. An attacker could send a crafted ms-word URI that opened a remote Word document with a VBA macro, which then downloaded and ran a reverse shell on the victim's Windows machine.

Discord

Misconfiguration

discord.exe – Improper Input Validation

The Discord desktop app reads an environment variable to set the web app endpoint without validating its value, so if an attacker can control that variable, the app will load a domain of their choice. The researchers demonstrated this by setting the variable to a custom URL, which allowed them to load a phishing page and trigger a calculator URI, but they could not achieve remote code execution because Electron's security settings blocked it.

Discord

RCE $5,000

Discord Desktop - Remote Code Execution

The Discord desktop app, built on Electron, had an XSS in a Vimeo embed and a misconfigured new-window handler that allowed opening a new window. By redirecting that window to a different origin, the sandbox was cleared, enabling a V8 exploit to achieve remote code execution.

Discord