Skip to content
Open redirect Write-up Intermediate

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.

DarkMatterMatt Follow

Published on medium.com

The message https://discord.gg%2ek.vu will show an embed from https://discord.gg.k.vu but display as https://discord.gg/%2ek.vu

DarkMatterMatt, on medium.com

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 clients passed raw, still-encoded user input to Node's url.parse() instead of decoding it first, so the parser treated the % as the end of the hostname and the server and client disagreed on the real host.

Impact

The mismatch could make phishing attacks more convincing because the displayed link appears to be on discord.gg while the embed content comes from the attacker's domain; mobile clients do not show the misleading slash, and Discord declined to treat it as a vulnerability, so no patch exists.

What the attacker needed

Victim uses web or desktop client; victim clicks the embed link

How it was found

  1. Send a message containing a URL with an encoded dot in the hostname.
  2. The server decodes the encoding and loads the embed from the real second domain.
  3. The web or desktop client parses the raw URL and displays it as pointing at discord.gg.
  4. A victim sees the trusted-looking link and clicks through to the attacker's page.

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.

When a link contains encoded characters (like %2e, which stands for a dot), different programs can read it differently. Discord's servers decoded it one way and loaded content from one site, but the desktop and web apps showed the link as if it pointed at discord.gg. That mismatch lets an attacker show a trusted-looking link that actually leads somewhere else.

What is Open redirect?

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.

More by DarkMatterMatt

View all

1 more disclosed report, best first.

More from Discord

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Open redirect

The lesson behind this report.

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.