2021-12-05 06:32:46 +00:00
|
|
|
id: unauthenticated-varnish-cache-purge
|
2022-04-22 10:38:41 +00:00
|
|
|
|
2021-04-11 15:20:42 +00:00
|
|
|
info:
|
|
|
|
name: Varnish Unauthenticated Cache Purge
|
|
|
|
author: 0xelkomy
|
|
|
|
severity: low
|
2021-04-11 15:43:24 +00:00
|
|
|
description: As per guideline one should protect purges with ACLs from unauthorized hosts.
|
2021-08-19 13:17:27 +00:00
|
|
|
reference:
|
|
|
|
- https://book.varnish-software.com/4.0/chapters/Cache_Invalidation.html
|
|
|
|
- https://hackerone.com/reports/154278
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 1
|
2023-10-14 11:27:55 +00:00
|
|
|
tags: misconfig,cache,hackerone,varnish
|
2021-04-11 15:20:42 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2021-04-11 15:20:42 +00:00
|
|
|
- method: PURGE
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}"
|
|
|
|
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
part: body
|
|
|
|
words:
|
|
|
|
- '<title>200 Purged</title>'
|
|
|
|
- '"status": "ok"'
|
|
|
|
condition: or
|
|
|
|
|
|
|
|
- type: status
|
|
|
|
status:
|
2021-12-05 06:32:46 +00:00
|
|
|
- 200
|
2023-10-19 13:13:52 +00:00
|
|
|
# digest: 4a0a00473045022100c82e5e80f99112a5a144b3439b8288cbdf96c88a35918d7b9682268ff403aa4b0220501fb43dcde78cccb154e5c6b8f71bff62a0b289a6d41acc9e2a7ed30ff3c8ca:922c64590222798bb761d5b6d8e72950
|