Skip to content
Cache bugs Write-up Beginner

How I found my first ever valid bug on Hackerone

The main application used Varnish for HTTP cache management and accepted unauthenticated PURGE requests, allowing anyone to purge cached content. The author reported it, but it was initially closed as informative before being triaged and fixed.

rubaethasanariyan Follow

Published on medium.com

Assalamualaikum(Peace be upon you) And Ramadan Mubarak to everyone!!! Hope you’re doing great.

Rubayet Hasan aka MR_Prey3r, 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 cache management endpoint did not require authentication, so anyone could send a PURGE request.

Impact

An attacker could purge cached content without authentication, which the author later learned was not very impactful and was initially closed as informative.

What the attacker needed

None

The fix

The issue was triaged and fixed by Fastly staff without changing the severity.

How it was found

  1. Open the main application and check technologies with Wappalyzer, noticing Varnish.
  2. Send a PURGE request to the main URL using curl.
  3. Observe a successful status response confirming the purge.

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 copy of a website's pages kept close to visitors so pages load faster. If a website lets anyone send a special 'purge' request, an attacker can delete those copies, forcing the server to work harder and possibly showing stale or missing content. Here the site accepted such a request without asking for any login.

What is Cache bugs?

A cache and the origin disagree about a request, so a poisoned response is served to everyone or a private page is stored as public.

Similar reports

View all

Same bug class and techniques, clearest first.

Web cache poisoning and deception

The lesson behind this report.

A cache and the origin disagree about a request, so a poisoned response is served to everyone or a private page is stored as public.