GHSA-6x33-pw7p-hmpq Denial of Service in http-proxy
An attacker can crash the proxy server by sending a long HTTP body if the server sets headers, causing a denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is GHSA-6x33-pw7p-hmpq?
GHSA-6x33-pw7p-hmpq is a denial of service vulnerability in http-proxy, published on 4 Sep 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Versions of http-proxy prior to 1.18.1 are vulnerable to Denial of Service. An HTTP request with a long body triggers an ERR_HTTP_HEADERS_SENT unhandled exception that crashes the proxy server. This is only possible when the proxy server sets headers in the proxy request using the proxyReq.setHeader function.
For a proxy server running on http://localhost:3000, the following curl request triggers the unhandled exception:curl -XPOST http://localhost:3000 -d "$(python -c 'print("x"*1025)')"
Recommendation
Upgrade to version 1.18.1 or later
Which versions are affected by GHSA-6x33-pw7p-hmpq?
2 open source packages ship an affected version, including http-proxy.
| Package | Affected | Fixed in |
|---|---|---|
http-proxy npm | All versions | 1.18.1 |
http-proxy npm | All versions | 1.18.1 |
How do I fix GHSA-6x33-pw7p-hmpq?
Upgrade http-proxy to 1.18.1 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is GHSA-6x33-pw7p-hmpq being exploited?
There is no known exploitation of GHSA-6x33-pw7p-hmpq in the wild and no public exploit code.