id: cache-poisoning-fuzz

info:
  name: Cache Poison Fuzzing
  author: dwisiswant0,ColbyJack1134
  severity: info
  reference:
    - https://youst.in/posts/cache-poisoning-at-scale/
    - https://portswigger.net/web-security/web-cache-poisoning
  metadata:
    max-request: 5834
  tags: fuzz,cache,fuzzing,vuln

http:
  - raw:
      - |
        GET /?{{md5(headers)}}=1 HTTP/1.1
        Host: {{Hostname}}
        User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0
        {{headers}}: {{randstr}}.tld
      - |
        GET /?{{md5(headers)}}=1 HTTP/1.1
        Host: {{Hostname}}
        User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0

    attack: clusterbomb
    payloads:

      headers: helpers/wordlists/headers.txt
    stop-at-first-match: true
    matchers:
      - type: dsl
        dsl:
          - 'contains(body_1, "{{randstr}}")'
          - 'contains(body_2, "{{randstr}}")'
        condition: and
# digest: 490a00463044022029c36c60f8deb9db76f34c44084922582d3bd294a9589c0837884a92647d2b1e02200ff390569d3f6b6d673275f97ceaef72c2798c0846fd4c5faa3849f67de9445d:922c64590222798bb761d5b6d8e72950