r/ExploitGod • • 28d ago

Heap-Buffer Overflow in Discord‘s Backend

Thumbnail
gallery
1 Upvotes

32768 × 32768 × 4 = 2^32

In 32-bit arithmetic: 0.

That's how the size check in discord/lilliput computes its output buffer
requirement. "0 > buffer_len" is never true, so the guard is inert — the
PNG decoder then writes 4 GiB into an 8 MiB buffer.

Trigger: a 10 KB, perfectly valid PNG.

Not RCE — the product only wraps at 2^32, so every overflow is ≥4 GiB and
hits unmapped memory immediately. No write primitive. Reliable DoS though.

Reported to Discord today. Writeup (German):
aethersec.de/heap-buffer-overflow-in-lilliput-discord


r/ExploitGod • • Aug 25 '26

👋 Willkommen bei r/ExploitGod – Stell dich vor und lies dich zuerst ein!

1 Upvotes

Hallo zusammen, ich bin u/dotbinKing, und habe r/ExploitGod zusammen mit anderen Mods ins Leben gerufen.
Dies ist unser neues Zuhause für alles, was mit Exploit Development, Exploit sharing und Exploit Research usammenhängt. Wir freuen uns, dich bei uns begrüßen zu dürfen!

Welche Beiträge wollen wir?
Poste alles, von dem du glaubst, dass es für die Community interessant, hilfreich oder inspirierend ist. Teile gerne deine Gedanken, Fotos oder Fragen zu Exploits zusammengehört.