2021-04-02 13:49:50 +00:00
|
|
|
id: cache-poisoning
|
2021-04-02 13:14:09 +00:00
|
|
|
|
|
|
|
info:
|
2023-04-17 09:28:43 +00:00
|
|
|
name: Cache Poisoning Detection
|
2022-05-17 09:01:33 +00:00
|
|
|
author: melbadry9,xelkomy,akincibor,dogasantos
|
2022-03-17 11:19:43 +00:00
|
|
|
severity: low
|
2021-08-18 11:37:49 +00:00
|
|
|
reference:
|
2021-08-19 14:44:46 +00:00
|
|
|
- https://blog.melbadry9.xyz/fuzzing/nuclei-cache-poisoning
|
|
|
|
- https://portswigger.net/research/practical-web-cache-poisoning
|
2023-04-17 10:07:36 +00:00
|
|
|
- https://portswigger.net/web-security/web-cache-poisoning
|
2021-08-11 07:37:27 +00:00
|
|
|
tags: cache,generic
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 2
|
2021-04-02 13:14:09 +00:00
|
|
|
|
2023-04-17 10:07:36 +00:00
|
|
|
variables:
|
|
|
|
cache_key: "{{to_lower(rand_base(6))}}"
|
|
|
|
cache_header: "{{to_lower(rand_base(6))}}"
|
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2021-04-02 13:14:09 +00:00
|
|
|
- raw:
|
|
|
|
- |
|
2023-04-17 10:07:36 +00:00
|
|
|
GET /?{{cache_key}}=9 HTTP/1.1
|
2023-04-17 09:28:43 +00:00
|
|
|
Host: {{Hostname}}
|
2023-04-17 10:07:36 +00:00
|
|
|
X-Forwarded-Prefix: {{cache_header}}.xfp
|
|
|
|
X-Forwarded-Host: {{cache_header}}.xfh
|
|
|
|
X-Forwarded-For: {{cache_header}}.xff
|
2021-04-02 13:14:09 +00:00
|
|
|
|
|
|
|
- |
|
2023-04-17 10:07:36 +00:00
|
|
|
GET /?{{cache_key}}=9 HTTP/1.1
|
2023-04-17 09:28:43 +00:00
|
|
|
Host: {{Hostname}}
|
2021-04-02 13:14:09 +00:00
|
|
|
|
|
|
|
matchers:
|
|
|
|
- type: dsl
|
|
|
|
dsl:
|
2023-04-17 10:07:36 +00:00
|
|
|
- 'contains(body_2, cache_header)'
|