Unauthenticated PURGE on Varnish | My First Valid Bug
The Varnish caching layer on a subdomain accepted unauthenticated PURGE requests, letting anyone clear cached pages. An attacker could repeatedly purge the cache so every request hit the origin server, degrading performance and potentially causing a denial of service.
medium.com
Published on medium.com
Hello everyone! I am really happy to announce that I got my first valid bug from a VDP Program let say it’s name is redacted.com, so let us navigate through the intricacies of this discovery.
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 access control list for PURGE requests was missing or too permissive, so the cache accepted purge commands from any client.
Impact
Repeated purges force the origin to regenerate every response, which could degrade latency for all users and may lead to application-level denial of service and higher infrastructure costs.
What the attacker needed
No authentication needed; network access to the subdomain
How it was found
- Send an unauthenticated PURGE request to the subdomain's homepage.
- Observe the server confirming the purge succeeded.
- Run a loop that repeatedly purges the homepage cache.
- Benchmark the site to measure the performance drop.
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 kept in front of the real server so pages load quickly. Varnish is software that does this caching. Normally only trusted administrators should be able to tell the cache to throw away its copies, but here anyone on the internet could do it, so the slow real server had to answer every request.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.