Skip to content
DoS Write-up Intermediate

Recursive Amplification Attacks: Botnet-as-a-Service

The platform's ETL scripts could send authenticated requests back to the public API, creating a recursive loop that multiplied events exponentially. An attacker with a free account could use this to flood any external endpoint with millions of requests, and a vulnerable package allowed remote code execution on the runner.

Ben Kofman Follow

Published on praetorian.com

On a recent client engagement, we tested a startup’s up-and-coming SaaS data platform and discovered an alarming attack path. The specific feature names and technologies have been generalized to anonymize the platform.

Justin Copeland, on praetorian.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 lack of enforced rate limits and recursion detection allowed ETL scripts to call the public API recursively, and an outdated package enabled sandbox escape.

Impact

The recursive loop could generate over 10 million events in two minutes, potentially causing a denial-of-service against the platform or, if modified, against arbitrary third parties; the RCE allowed more versatile DDoS traffic, though the runner's limited permissions and short lifespan reduced further impact.

What the attacker needed

A free account; ability to configure ETL scripts; public API access

The fix

The client mitigated the issue by implementing a realistic upper-bound rate limit per API key, which if exceeded will result in queued requests, and at a certain point will result in an HTTP 429 response.

How it was found

  1. Create a free account and configure a public API source.
  2. Write an ETL script that sends an authenticated request back to the API.
  3. Trigger the script with a single API request, causing a loop.
  4. Modify the script to send two requests per event to achieve exponential growth.
  5. Monitor event statistics as the number of events rapidly increases.
  6. Disable the API source to stop the loop.

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 data platform let users write small scripts to process incoming data. Those scripts could send requests back to the same platform, causing a loop where each request triggered more requests, quickly growing out of control. This could be used to flood other websites with traffic, and a bug in one script library even let attackers run commands on the platform's servers.

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.