Varnish Unauthenticated Cache Purge
ID: unauthenticated-varnish-cache-purge
Severity: low
Author: 0xelkomy
Tags: misconfig,cache,hackerone,varnish
Description
Section titled “Description”As per guideline one should protect purges with ACLs from unauthorized hosts.
YAML Source
Section titled “YAML Source”id: unauthenticated-varnish-cache-purge
info: name: Varnish Unauthenticated Cache Purge author: 0xelkomy severity: low description: As per guideline one should protect purges with ACLs from unauthorized hosts. reference: - https://book.varnish-software.com/4.0/chapters/Cache_Invalidation.html - https://hackerone.com/reports/154278 metadata: max-request: 1 tags: misconfig,cache,hackerone,varnish
http: - method: PURGE path: - "{{BaseURL}}"
matchers-condition: and matchers: - type: word part: body words: - '<title>200 Purged</title>' - '"status": "ok"' condition: or
- type: status status: - 200# digest: 490a0046304402205d9985c110bf58b4905f8a0765a59acee6425c4ecfbc34067e058480d182114c022000f58eb3b8a6536952ebcd46aa2c453cea39a46843a6a272781a5563095f9db5:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/misconfiguration/unauthenticated-varnish-cache-purge.yaml"