Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Differential Testing?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/blackfoxxx-differential-testing)
---
name: differential-testing
description: "Parser and routing disagreements: path, header, content-type, encoding"
---
# Differential testing (routing, parser and normalization disagreements)
Two layers rarely parse a request the same way. A proxy, a CDN, a WAF, an app
server and a framework each normalize the path, the headers and the body
differently. The gap between "what the front door thinks this request is" and
"what the application thinks it is" is where auth bypass, cache poisoning and
smuggling live.
Authorized engagements only. Prove the disagreement; do not poison shared state.
## 1. The classes worth testing
**Path normalization**
| Mutation | What a disagreement looks like |
|---|---|
| Trailing dot / slash | `/admin/.` or `/admin/` reaches a protected handler the front door did not match |
| Double slash, `%2e`, `%2f` | Front door sees `/public`, origin decodes to `/admin` |
| Semicolon suffix | `/admin;x` stripped by one layer, kept by another |
| Case | `/ADMIN` matched case-insensitively by the origin but not the WAF |
| `..;/` | Servlet-style traversal that bypasses a prefix rule |
**Header overrides**
`X-Original-URL`, `X-Rewrite-URL`, `X-Forwarded-For: 127.0.0.1`,
`X-Forwarded-Host: localhost`, `X-HTTP-Method-Override`. These are legitimate in
some deployments and catastrophic in others; the response tells you which.
**Content-type and body parsing**
The same body sent as `application/json`, `application/x-www-form-urlencoded`,
`text/plain`, or multipart. A validator that only inspects JSON is bypassed by a
form body the framework still binds.
**Encoding and duplication**
Double-encoded values (`%252e`), Unicode normalization, duplicate parameters
(`id=1&id=2` — which one wins?), array vs scalar (`id[]=1`), JSON duplicate keys.
## 2. Procedure
1. Capture the **baseline** request/response with the session you are entitled to
(anonymous if the bug is pre-auth). Record status, length, body hash.
2. Run `http_variant_matrix` on that exact URL with the same headers/body. It
keeps the host fixed, so every variant stays inside scope.
3. Read the summary:
- **Status difference** (401/403 → 200, 404 → 200): strong lead. Replay the
single variant manually and confirm the body is the protected content.
- **Body difference on the same status**: weaker. Check whether it is a real
behavioral difference (different data, different action) or just a cache
artifact / error page.
4. Confirm with the **minimal** variant that still works, and record both the
baseline and the bypass.
## 3. Cache and proxy disagreements
Only test cache behavior if the RoE allows it, and never poison a shared cache
with a payload other users will receive. Use a harmless marker (your own
identifier) and a path that only you request. If the cache is shared with real
users, stop at "the cache key ignores this header" and report it without
weaponizing it.
## 4. What a confirmed finding needs
- The two layers named (e.g. "CDN matches `/admin`, origin decodes `%2f` to `/`").
- The exact request pair (baseline + bypass).
- The protected content or action reached.
- The impact in one sentence: "an unauthenticated request reaches the admin
export endpoint".
## 5. Anti-patterns
- Treating a 200 on a login page as an auth bypass because the baseline was 403.
- Reporting a cache header difference with no security consequence.
- Fuzzing the host itself (Host header injection to an external domain) — that
leaves scope and is not needed to prove the parser gap.