Skip to content
DoS Write-up Beginner

PoC — Vulnérabilité Cache Varnish PURGE DDoS by @GupS3C

The server's Varnish cache accepted unauthenticated PURGE requests, so anyone could clear cached content. An attacker could repeatedly purge the cache to force all traffic to the origin servers, degrading performance or causing a denial of service.

GupS3C Follow

Published on medium.com

Le serveur utilise Varnish pour gérer le cache des ressources. Cependant, il semble qu’une méthode de purge (PURGE) soit accessible sans authentification appropriée.

user, 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 Varnish PURGE method was reachable from the internet without authentication or an IP allowlist.

Impact

Repeated purges could overload the origin servers and cause degraded performance or a denial of service; the text does not show a sustained outage, only the mechanism and its potential.

What the attacker needed

Network access to the Varnish front end; PURGE method not restricted

How it was found

  1. Open a terminal with a command-line HTTP tool such as curl.
  2. Check the current cache state by requesting the site's HTTP headers and looking at the cache status header.
  3. Send a PURGE request to the site.
  4. Request the headers again and check whether the cache status changed from a hit to a miss, indicating the object was purged.

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 cache is a fast copy of a website's pages kept close to visitors so the slower main server is not asked every time. Varnish is software that keeps such copies. Here the command that throws those copies away (PURGE) was not protected, so anyone could empty the cache and make the main server do all the work, which can slow or crash the site.

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.