<!-- Copyright (c) 2026 defconxt. All rights reserved. -->
<!-- Licensed under AGPL-3.0 — see LICENSE file for details. -->
<!-- NERF is a trademark of defconxt. -->
---
name: detecting-web-cache-poisoning
description: >-
  Detect and exploit web cache poisoning vulnerabilities by injecting unkeyed inputs into cached responses, targeting CDN and reverse proxy cache layers.
domain: cybersecurity
subdomain: browser-security
tags:
  - cache-poisoning
  - cdn
  - unkeyed-input
  - cache-deception
version: "1.0"
author: defconxt
license: AGPL-3.0
metadata:
  mitre-attack: ["T1557"]
  frameworks: ["MITRE ATT&CK", "OWASP"]
  tools: ["burpsuite", "param-miner", "curl"]
---

# Detecting Web Cache Poisoning

## Overview

Detect and exploit web cache poisoning vulnerabilities by injecting unkeyed inputs into cached responses, targeting CDN and reverse proxy cache layers.

## Prerequisites

| Tool / Requirement | Details |
|---|---|
| `burpsuite` | Security tooling |
| `param-miner` | Security tooling |
| `curl` | Security tooling |
| Burp Suite with Param Miner, understanding of caching architectures | Environment requirement |

## Quick Reference

```bash
# Quick start commands
node scripts/agent.js --help
node scripts/agent.js scan --url https://target.com --headers
```

## Workflow

### Step 1: Identify Unkeyed Headers

```bash
node scripts/agent.js scan --url https://target.com --headers
```

### Step 2: Test Cache Poisoning

```bash
curl -H 'X-Forwarded-Host: evil.com' https://target.com
```

### Step 3: Verify Cached Poison

```bash
node scripts/agent.js verify --url https://target.com --cache-buster random123
```

## Detection

```yaml
title: Web Cache Poisoning Detection
id: 3d3409d4-f719-4a1b-8f23-2e6e5d2b83d6
status: experimental
description: Detects suspicious activity related to detecting web cache poisoning techniques in browser security context
logsource:
  category: proxy
  product: windows
detection:
  selection:
    cs_uri_query: "*script*"
  condition: selection
level: medium
tags:
  - attack.t1557
  - attack.initial_access
falsepositives:
  - Browser security extensions performing routine URL reputation checks
```


**Detection Opportunities**

| Indicator | Source | Detection Logic |
|---|---|---|
| Web Cache Poisoning Detection | windows/proxy | Sigma rule (medium) |
| ATT&CK Coverage | MITRE ATT&CK | T1557 |

## Verification

- **Verify scan results**: `node scripts/agent.js scan --url https://target.com --headers`
- **Confirm cache poisoning**: `node scripts/agent.js verify --url https://target.com --cache-buster random123`

## References

- MITRE ATT&CK: T1557
- Frameworks: MITRE ATT&CK, OWASP
- Tools: burpsuite, param-miner, curl
