Skip to content
Cache bugs Disclosed report Beginner

Unauthenticated cache purging

The website allowed unauthenticated users to send cache purge requests, as demonstrated by a successful PURGE request. An attacker could purge cached content, potentially causing denial of service or other cache-related attacks.

mr_prey3r Follow

Originally disclosed on HackerOne

Informational View original
  • Triaged in 39 days
  • Fixed in 44 days
  • Disclosed after 44 days

Summary:

I found a vulnerability in https://fanout.io/ page known as unauthenticated cache purging vulnerability. This vulnerability arises when cache purging requests are available to the unauthenticated users.

Steps To Reproduce:

  1. Go to any terminal of an OS which has curl installed in it.
  2. Type in the following command curl --head https://fanout.io/ and hit enter. You will see that there are these following HTTP headers available
HTTP
via: 1.1 varnish
age: 7
x-served-by: cache-qpg1234-QPG
x-cache: HIT
x-cache-hits: 1
  1. This means that the page is caching the requests. So to reproduce the bug or to exploit it, type curl -X PURGE https://fanout.io/ and in the response you'll see { "status": "ok", "id": "1237-1678993092-222436" } (the id can be changed in your case)

This response proves that this endpoint is vulnerable to unauthenticated cache purging.

Supporting Material/References:

F2235408

Impact

In general, cache purging vulnerabilities can have a high severity level because they can allow an attacker to manipulate the cache of a web application, which can lead to various types of attacks such as website defacement, unauthorized access to sensitive data, or denial of service (DoS) attacks.

Attachments

2023-03-18_12-55-20.mp4 From the original on HackerOne

The original report as published on HackerOne, by mr_prey3r. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the cache purging endpoint lacked authentication checks, allowing anyone to send PURGE requests.

Impact

An attacker could manipulate the cache, potentially leading to website defacement, unauthorised access to sensitive data, or denial of service.

What the attacker needed

None

How it was found

  1. Open a terminal with curl installed.
  2. Send a HEAD request to the target and observe cache-related headers.
  3. Send a PURGE request to the target and observe a success response.

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 report has not been written yet. The Original tab links to the source.

A cache is a temporary storage that speeds up websites by keeping copies of pages. Normally, only authorised people should be able to clear (purge) the cache. Here, anyone could send a special request to clear the cache, which could disrupt the site or be used in attacks.

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.

More by mr_prey3r

View all

1 more disclosed report, best first.

More from Fastly VDP

View all

The newest disclosed reports for this program.

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.