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.
- 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:
- Go to any terminal of an OS which has curl installed in it.
- Type in the following command
curl --head https://fanout.io/and hit enter. You will see that there are these following HTTP headers available
via: 1.1 varnish
age: 7
x-served-by: cache-qpg1234-QPG
x-cache: HIT
x-cache-hits: 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
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
- Open a terminal with curl installed.
- Send a HEAD request to the target and observe cache-related headers.
- 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.