Skip to content
DoS Write-up Intermediate

Classic Single Request Denial of Service (DoS)

A user activity endpoint accepted an unbounded pagination limit, so a single request could ask the server to process and return an enormous number of stored records. After inflating the account's activity log to over a million entries, one such request made the whole application return gateway timeouts for all users for around twenty seconds.

medium.com

Published on medium.com

Aslam O Alaikum ! I hope you all are doing well.

Exploit5lover, on medium.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 pagination limit parameter was used directly in the backend query without any server-side maximum, so a single request could force processing of an arbitrarily large result set.

Impact

A single authenticated user could make the main application unavailable to all users for roughly twenty seconds per request, repeatably, though the outage was temporary and the app recovered on its own.

What the attacker needed

An account on the target application; ability to rotate source IP addresses; patience to build a large activity log

The fix

The endpoint should enforce a strict server-side maximum on the page size and reject or clamp oversized limits before querying the database.

How it was found

  1. Send the activity request with a much larger limit than the default and observe it is accepted.
  2. Find the switch-to-app flow that logs a login event without a CAPTCHA.
  3. Automate the switch flow in parallel batches, rotating source addresses to avoid the per-IP rate limit.
  4. Repeat until the account holds over a million activity records.
  5. Request the activity list with a limit matching the record count and watch for a gateway timeout.
  6. Repeat the request and confirm the whole application is unavailable to other users and addresses.

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 web page that lists your login history usually shows a few items at a time and lets you ask for the next page. The server trusted a number in that request that says how many items to send back, and never capped it. By filling their own history with over a million entries and then asking for all of them at once, the researcher made the server do so much work that everyone else's requests timed out too.

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.