CVE-2016-1000109:HHVM "httpoxy" vulnerability allows attackers to redirect HTTP traffic via crafted Proxy headers.

splash
Back

Description Preview

HHVM (HipHop Virtual Machine) versions prior to 3.9.6, between 3.10.0-3.12.4, and between 3.13.0-3.14.2 are vulnerable to the "httpoxy" attack. The vulnerability occurs because HHVM does not properly handle namespace conflicts described in RFC 3875 section 4.1.18. When processing CGI applications, HHVM places untrusted client data from the Proxy HTTP header into the HTTP_PROXY environment variable. This allows remote attackers to redirect a CGI application's outbound HTTP traffic to an arbitrary proxy server, potentially enabling man-in-the-middle attacks and information disclosure.

Overview

The "httpoxy" vulnerability (CVE-2016-1000109) in HHVM is a serious security issue affecting CGI applications. The vulnerability stems from HHVM's improper handling of the Proxy HTTP header, which gets converted to the HTTP_PROXY environment variable. Many HTTP client libraries use the HTTP_PROXY environment variable to determine which proxy server to use for outbound connections. By sending a malicious Proxy header in an HTTP request, an attacker can control where the application's HTTP requests are sent, potentially intercepting sensitive data or performing man-in-the-middle attacks.

This vulnerability impacts multiple versions of HHVM:

  • All versions prior to 3.9.6
  • All versions from 3.10.0 through 3.12.4
  • All versions from 3.13.0 through 3.14.2

Remediation

To address this vulnerability, system administrators and developers should:

  1. Update HHVM to a patched version:

    • Version 3.9.6 or later
    • Version 3.12.5 or later
    • Version 3.14.3 or later
  2. If updating is not immediately possible, implement one of these mitigations:

    • Configure your web server to strip or block the Proxy header from incoming requests
    • For Apache, add: RequestHeader unset Proxy early
    • For Nginx, add: fastcgi_param HTTP_PROXY "";
    • For other servers, consult the httpoxy.org website for specific instructions
  3. Review your application code to ensure it doesn't rely on the HTTP_PROXY environment variable in an unsafe manner

  4. Consider implementing additional network-level protections such as Web Application Firewalls configured to block requests containing Proxy headers

References

  1. Official patch: https://github.com/facebook/hhvm/commit/423b4b719afd5ef4e6e19d8447fbf7b6bc0d0a25
  2. Comprehensive information about httpoxy: https://httpoxy.org/
  3. Facebook security advisory: https://www.facebook.com/security/advisories/cve-2016-1000109
  4. RFC 3875 section 4.1.18 (CGI specification): https://tools.ietf.org/html/rfc3875#section-4.1.18

Industry ExposureMost to least
This section illustrates the prevalence of a specific Common Vulnerabilities and Exposures (CVE) across various industries based on customer reports. The ranking displays industries from the most to least affected by this particular vulnerability, offering valuable insight into where this CVE has been most frequently observed. This information can help organizations within these sectors prioritize their security efforts, understand their relative risk exposure compared to their peers, and focus remediation strategies where they are most needed. By understanding the industry-specific impact, organizations can make more informed decisions regarding patching, resource allocation, and overall risk management related to this CVE.

  1. Accommodation & Food Services
    Accommodation & Food Services
  2. Administrative, Support, Waste Management & Remediation Services
    Administrative, Support, Waste Management & Remediation Services
  3. Agriculture, Forestry Fishing & Hunting
    Agriculture, Forestry Fishing & Hunting
  4. Arts, Entertainment & Recreation
    Arts, Entertainment & Recreation
  5. Construction
    Construction
  6. Educational Services
    Educational Services
  7. Finance and Insurance
    Finance and Insurance
  8. Health Care & Social Assistance
    Health Care & Social Assistance
  9. Information
    Information
  10. Management of Companies & Enterprises
    Management of Companies & Enterprises
  11. Manufacturing
    Manufacturing
  12. Mining
    Mining
  13. Other Services (except Public Administration)
    Other Services (except Public Administration)
  14. Professional, Scientific, & Technical Services
    Professional, Scientific, & Technical Services
  15. Public Administration
    Public Administration
  16. Real Estate Rental & Leasing
    Real Estate Rental & Leasing
  17. Retail Trade
    Retail Trade
  18. Transportation & Warehousing
    Transportation & Warehousing
  19. Utilities
    Utilities
  20. Wholesale Trade
    Wholesale Trade

Focus on What Matters

  1. See Everything.
  2. Identify True Risk.
  3. Proactively Mitigate Threats.

Let's talk!

background