> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/web/cache-poisoning.md).

# Web Cache Poisoning

Web cache poisoning, cache key injection, unkeyed headers, unkeyed cookies, parameter cloaking, and cache-based XSS.

Web Cache Poisoning notes for PortSwigger Web Security Academy labs, focused on practical testing steps, Burp Suite validation, payload behavior, and exploitation workflow.

## Testing Workflow

1. Identify the vulnerable feature and the relevant request, parameter, header, cookie, or browser-side sink.
2. Reproduce the behavior in Burp Suite with a minimal payload before escalating the attack.
3. Validate impact with a clear proof of concept, such as account access, data disclosure, code execution, SSRF, or state change.
4. Keep payloads, URLs, tokens, and lab credentials unchanged while documenting the exploitation path.

## Labs

<table><thead><tr><th data-type="content-ref"></th></tr></thead><tbody><tr><td><a href="/web/cache-poisoning/cache-poisoning-to-exploit-an-xss-dom-with-strict-cache.md">Cache Poisoning to Exploit an XSS DOM with Strict Cache</a></td></tr><tr><td><a href="/web/cache-poisoning/cache-poisoning-to-exploit-dom-xss-with-strict-cache.md">Cache Poisoning to Exploit DOM XSS with Strict Cache</a></td></tr><tr><td><a href="/web/cache-poisoning/cache-poisoning-via-abnormal-get-request.md">Cache Poisoning via Abnormal Get Request</a></td></tr><tr><td><a href="/web/cache-poisoning/cache-poisoning-via-an-unindexed-query-string.md">Cache Poisoning via an Unindexed Query String</a></td></tr><tr><td><a href="/web/cache-poisoning/cache-poisoning-via-unindexed-query-parameter.md">Cache Poisoning via Unindexed Query Parameter</a></td></tr><tr><td><a href="/web/cache-poisoning/cache-poisoning-with-an-unindexed-header.md">Cache Poisoning with an Unindexed Header</a></td></tr><tr><td><a href="/web/cache-poisoning/web-cache-poisoning-with-unkeyed-cookie.md">Cache Poisoning with an Unkeyed Cookie</a></td></tr><tr><td><a href="/web/cache-poisoning/web-cache-poisoning-with-unkeyed-header.md">Cache Poisoning with an Unkeyed Header</a></td></tr><tr><td><a href="/web/cache-poisoning/cache-poisoning-with-multiple-headers.md">Cache Poisoning with Multiple Headers</a></td></tr><tr><td><a href="/web/cache-poisoning/combination-of-web-cache-poisoning-vulnerabilities.md">Combination of Web Cache Poisoning Vulnerabilities</a></td></tr><tr><td><a href="/web/cache-poisoning/combination-of-web-vulnerabilities-cache-poisoning.md">Combination of Web Vulnerabilities Cache Poisoning</a></td></tr><tr><td><a href="/web/cache-poisoning/injection-into-cache-key.md">Injection Into Cache Key</a></td></tr><tr><td><a href="/web/cache-poisoning/cache-key-injection.md">Injection Into the Cache Key</a></td></tr><tr><td><a href="/web/cache-poisoning/internal-cache-poisoning.md">Internal Cache Poisoning</a></td></tr><tr><td><a href="/web/cache-poisoning/parameter-cloaking.md">Parameter Cloaking</a></td></tr><tr><td><a href="/web/cache-poisoning/targeted-cache-poisoning-via-unknown-header.md">Targeted Cache Poisoning via an Unknown Header</a></td></tr><tr><td><a href="/web/cache-poisoning/url-normalization.md">URL Normalization</a></td></tr><tr><td><a href="/web/cache-poisoning/web-cache-poisoning-via-fat-get-request.md">Web Cache Poisoning via a Fat GET Request</a></td></tr><tr><td><a href="/web/cache-poisoning/web-cache-poisoning-via-unkeyed-query-parameter.md">Web Cache Poisoning via an Unkeyed Query Parameter</a></td></tr><tr><td><a href="/web/cache-poisoning/web-cache-poisoning-via-unkeyed-query-string.md">Web Cache Poisoning via an Unkeyed Query String</a></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://hacking-notes.jord4n.pro/web/cache-poisoning.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
