Skip to content
DoS Write-up Intermediate

The Endpoint Everyone Ignored Just Took Down a Server

The draft-saving endpoint on a forum platform lacked the payload size limit that the post-creation endpoint enforced, so an authenticated user could send very large draft saves. Repeating this with unique draft keys saturated server threads, causing response times to exceed 32 seconds and making the service effectively unusable.

infosecwriteups.com

Published on infosecwriteups.com

A POST to /drafts.json. The kind of thing your browser fires quietly every few seconds while you're typing a reply, making sure your work is saved if you close the tab.

Abhishek meena, on infosecwriteups.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 draft endpoint did not apply the same content-length validation that the post creation endpoint used, so oversized payloads were processed and written to the database before the request timed out.

Impact

An authenticated user could make the forum very slow for all users, with response times over 32 seconds, but the server did not crash.

What the attacker needed

A free account on the target forum; ability to intercept HTTP requests

How it was found

  1. Log in to the public sandbox with a real account.
  2. Intercept a normal draft save request.
  3. Replace the draft content with a very large payload.
  4. Send the request and observe a 502 error, then check that the draft was still saved.
  5. Repeat with unique draft keys to create multiple large drafts.
  6. Observe response times climbing above 32 seconds.

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.

A forum website lets you save a draft of a post while you type. The part that saves drafts did not check how big the draft was, unlike the part that publishes posts. An attacker with a normal account could send huge drafts over and over, which kept the server busy and made the site very slow 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.

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.