Skip to content
Misconfiguration Write-up Beginner

$100 Bounty Unauthenticated Varnish Cache Purge

The Varnish cache accepted PURGE requests from any unauthenticated user, allowing anyone to clear cached content. An attacker could repeatedly purge the cache, forcing the backend to process every request and potentially causing performance degradation or denial of service.

zeeshan1337 Follow

Published on medium.com

During testing on a program, I identified a misconfiguration in the caching layer that allowed unauthenticated users to purge cached content.

Muhammad Zeeshan, 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

The cache invalidation functionality was exposed without access control, allowing any external user to send PURGE requests.

Impact

Repeated cache purging could force backend processing for every request, increasing CPU, memory, and database usage, degrading performance, and potentially causing denial of service.

What the attacker needed

None

The fix

The cache should be configured to restrict PURGE requests to trusted IP addresses via ACLs, disable the PURGE method if not needed, or require authentication for cache invalidation.

How it was found

  1. Identify a cached endpoint such as the homepage or a static resource.
  2. Send a PURGE request to that endpoint.
  3. Observe a 200 OK response with a '200 Purged' message.
  4. Repeat the request multiple times to confirm consistent behaviour.

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 stores copies of web pages so they load faster. Varnish is a caching server that can be told to delete a cached page using a special request called PURGE. Here, anyone on the internet could send that request, so they could keep emptying the cache and make the website work harder.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.