Malicious Handlebars Code Snippets causing Discord to Crash

Disclosed by
poeck
  • Engagement Undisclosed
  • Disclosed date 7 months ago
  • Reward $2,000
  • Priority P2 Bugcrowd's VRT priority rating
  • Status Resolved This vulnerability has been accepted and fixed
Summary by poeck

A vulnerability in Discord's syntax highlighting allows attackers to trigger a Denial-of-Service attack by exploiting recursive context switching between Handlebars and HTML. By alternating between raw block expressions and script tags, the highlighter is forced into a heavy computational loop that causes significant performance lag or a full application crash on Desktop and Web clients.

Activity