Vulnerability DatabaseCVE-2016-1000109

CVE-2016-1000109
HHVM vulnerability analysis and mitigation

Overview

HHVM (HipHop Virtual Machine) was found to be vulnerable to a CGI application vulnerability known as 'httpoxy' (CVE-2016-1000109). The vulnerability affects HHVM versions prior to 3.9.6, all versions between 3.10.0 and 3.12.4 (inclusive), and all versions between 3.13.0 and 3.14.2 (inclusive). The issue stems from HHVM not addressing RFC 3875 section 4.1.18 namespace conflicts, which could allow remote attackers to manipulate the HTTP_PROXY environment variable (NVD).

Technical details

The vulnerability occurs when HHVM running in a CGI or CGI-like context assigns client request Proxy header values to internal HTTP_PROXY environment variables. This creates a namespace conflict where untrusted client data from the Proxy header gets transformed into the HTTP_PROXY environment variable, which many HTTP clients use to configure outgoing proxy settings. The vulnerability has a CVSS v3.1 Base Score of 5.3 (MEDIUM) with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N (NVD, HTTPOXY).

Impact

When exploited, this vulnerability allows remote attackers to redirect a CGI application's outbound HTTP traffic to an arbitrary proxy server through a crafted Proxy header in an HTTP request. This could potentially enable man-in-the-middle attacks on internal server subrequests or allow attackers to direct the server to initiate connections to arbitrary hosts (HTTPOXY).

Mitigation and workarounds

The vulnerability was fixed in HHVM by ignoring the Proxy HTTP header from FastCGI requests. For affected versions, the recommended mitigation is to block or strip the Proxy header at the web server or proxy level before it reaches the application. This can be done using various web server configurations such as NGINX, Apache, or other reverse proxies (HTTPOXY, GitHub Patch).

Additional resources


SourceThis report was generated using AI

Related HHVM vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2022-36937CRITICAL9.8
  • HHVMHHVM
  • cpe:2.3:a:facebook:hhvm
NoYesMay 10, 2023
CVE-2021-24036CRITICAL9.8
  • NixOSNixOS
  • folly
NoYesJul 23, 2021
CVE-2020-1900CRITICAL9.8
  • HHVMHHVM
  • cpe:2.3:a:facebook:hhvm
NoYesMar 11, 2021
CVE-2019-3556HIGH8.1
  • HHVMHHVM
  • cpe:2.3:a:facebook:hhvm
NoYesOct 26, 2021
CVE-2020-1899HIGH7.5
  • HHVMHHVM
  • cpe:2.3:a:facebook:hhvm
NoYesMar 11, 2021

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management