Skip to content
DoS Disclosed report Beginner

Denial of Service (DoS) Vulnerability in Drafts Creation Endpoint

An authenticated user could send very large draft payloads to the drafts endpoint, which were saved even when the server returned a 502 error. Sending several such drafts caused response times to exceed 32 seconds, indicating resource exhaustion that could disrupt service for other users.

dpaysm Follow

Originally disclosed on HackerOne

High 7.5 View original
  • Disclosed after 8 months

Hello,

I have identified a potential Denial of Service (DoS) vulnerability in the /drafts.json endpoint on try.discourse.org. By submitting large payloads (e.g., ~800,000 characters or more) to create drafts, the server processes the request, returns a 502 Bad Gateway error, but still saves the draft. When multiple such requests (e.g., 9 parallel or sequential drafts with unique IDs) are sent, it causes significant server delays, with response times exceeding 32 seconds, indicating resource exhaustion. This issue allows authenticated users to overwhelm the backend by creating multiple large drafts, potentially disrupting service availability for other users.

Steps to Reproduce: Log in to try.discourse.org with a test account. Intercept a request to create a draft (e.g., using Burp Suite or a similar proxy) at POST /drafts.json. Modify the payload to include a large string in the draft content (e.g., use the large payload from https://github.com/DpaysmX/payload_/blob/main/payload.txt, adapted as a long string in the data or draft field). Submit the request. Observe that the server returns a 502 Bad Gateway error, but the draft is still saved (check the drafts section or via GET requests). Create multiple unique drafts (e.g., 9 new drafts with slight variations to avoid "already editing" errors) using the same large payload. Send these requests in sequence or parallel. Monitor response times: The server slows down, with durations up to 32.108 seconds for subsequent requests.

Creating a draft with the large payload. 502 error but successful save. Sending 8 unique drafts, leading to 32-second response delays. [Attach your video here:

simplescreenrecorder-2025-10-26_06.25.58.mp4 From the original on HackerOne

Note: The payload cannot be posted as a message (due to validation), but drafts bypass this, allowing abuse. Sequential numbering or unique keys ensure multiple saves without conflicts.

payload: https://github.com/DpaysmX/payload_/blob/main/payload.txt

Impact

This vulnerability enables an authenticated attacker to:

Send large payloads that are processed and saved despite 502 errors, consuming backend resources. Create multiple drafts in quick succession, causing server-wide delays (e.g., 32+ seconds per request). If automated (e.g., via scripts with multiple accounts or IPs), this could lead to resource exhaustion, making the forum unresponsive for legitimate users. Potential for amplified attacks in shared environments, affecting unrelated endpoints and users.

The original report as published on HackerOne, by dpaysm. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the drafts endpoint lacks a size limit and continues processing and saving oversized drafts even after the request times out or errors.

Impact

An authenticated attacker could cause server-wide delays exceeding 32 seconds per request, and if automated with multiple accounts or IPs, could make the forum unresponsive for legitimate users.

What the attacker needed

An authenticated account; ability to intercept and modify requests

How it was found

  1. Log in to the site with a test account.
  2. Intercept a request to create a draft at the drafts endpoint.
  3. Modify the payload to include a very large string in the draft content.
  4. Submit the request and observe a 502 error while the draft is still saved.
  5. Create multiple unique drafts using the same large payload.
  6. Send the requests in sequence or parallel and monitor response times.

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 report has not been written yet. The Original tab links to the source.

A draft is a saved but unsent message. The server accepted extremely large drafts and kept saving them even when it reported an error, so an attacker with a normal account could make many huge drafts and slow the whole site down for everyone else.

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.

More from Discourse

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.