How a Single Message Could Take Down Discourse Instances (Bagging
An oversized Markdown reply could freeze a Discourse forum, causing application-wide slowdowns and 502 errors. An attacker could post such a payload to temporarily take discussion forums offline.
Earlier this year, I discovered a serious vulnerability in Discourse, the open-source forum software used by over 100,000 communities and major companies including Nvidia, Google, Meta, Atlassian, and OpenAI etc.
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 server did not limit the size or complexity of Markdown input, so processing a huge reply consumed excessive resources.
Impact
The attack could temporarily take entire discussion forums offline, causing downtime that hurts visibility, trust, and operations.
What the attacker needed
Ability to post a reply on the forum
How it was found
- On the public demo forum, reply to a message with a very large Markdown payload.
- Observe the server freezing and returning a 502 error.
- Send eight parallel requests with the same payload.
- Observe the whole forum stalling, including the /latest endpoint.
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.
Discourse is forum software used by many communities. A very long Markdown post (Markdown is a simple formatting language) could make the server work so hard that the whole site became slow or stopped responding. An attacker could send such a post to disrupt the forum for everyone.
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.