July 21, 2016 By Larry Loeb 2 min read

A widely known, 15-year-old scripting vulnerability is causing unexpected problems for many Linux distributions and programming languages, according to Threatpost. The problem exposes many PHP and CGI web apps to man-in-the-middle attacks.

Serverside web applications that run in older Common Gateway Interface (CGI) or CGI-like environments, such as some FastCGI configurations, will be affected by the new discovery. It also affects programming languages such as PHP, Python and Go.

HTTPoxy Can Lead to Man-in-the-Middle Attacks

The vulnerability is rated as medium and can be exploited easily by miscreants with simple skills.

“This is a very serious flaw if you’re one of the few still reliant on CGI and PHP for generating web pages,” Dominic Scheirlinck, principal engineer of VendHQ, told Threatpost. He is from the team at VendHG that gave the vulnerability the moniker.

Scheirlinck explained that the problem arose from a simple namespace conflict tied to HTTP proxy headers that unsafely trust the HTTP_PROXY environment variable when generating forward requests. This allows an attacker to remotely configure the HTTP_PROXY environment by submitting a malicious HTTP header.

The flaw would open up the affected server to a remotely exploitable vulnerability. For example, an attacker could launch a man-in-the-middle attack and redirect traffic to an arbitrary host.

It could also allow a cybercriminal to intercept traffic and eavesdrop on communications. An old-fashioned denial-of-service attack is also possible.

2001: An HTTPoxy Odyssey

Scheirlinck discussed the deeper origins of the vulnerability. The root cause of the problem, he thinks, is a Perl flaw discovered by Randal L. Schwartz in 2001. Schwartz quickly fixed the vulnerability in Perl libraries.

But since then, other variations of the bug have cropped up, and vendors are not always able to draw connections between the current issues and the original vulnerability.

Servers do not usually depend on a CGI environment to generate webpages like they did in the past. That will help control the proliferation of attacks based on the vulnerability.

The CVEs that address all components of this problem across languages include PHP (CVE-2016-5385), Go (CVE-2016-5386), Apache HTTP Server (CVE-2016-5387), Apache Tomcat (CVE-2016-5388), HHVM (CVE-2016-1000109) and Python (CVE-2016-1000110).

More from

Government cybersecurity in 2025: Former Principal Deputy National Cyber Director weighs in

4 min read - As 2024 comes to an end, it’s time to look ahead to the state of public cybersecurity in 2025.The good news is this: Cybersecurity will be an ongoing concern for the government regardless of the party in power, as many current cybersecurity initiatives are bipartisan. But what will government cybersecurity look like in 2025?Will the country be better off than they are today? What are the positive signs that could signal a good year for national cybersecurity? And what threats should…

FYSA – Adobe Cold Fusion Path Traversal Vulnerability

2 min read - Summary Adobe has released a security bulletin (APSB24-107) addressing an arbitrary file system read vulnerability in ColdFusion, a web application server. The vulnerability, identified as CVE-2024-53961, can be exploited to read arbitrary files on the system, potentially leading to unauthorized access and data exposure. Threat Topography Threat Type: Arbitrary File System Read Industries Impacted: Technology, Software, and Web Development Geolocation: Global Environment Impact: Web servers running ColdFusion 2021 and 2023 are vulnerable Overview X-Force Incident Command is monitoring the disclosure…

2024 trends: Were they accurate?

4 min read - The new year always kicks off with a flood of prediction articles; then, 12 months later, our newsfeed is filled with wrap-up articles. But we are often left to wonder if experts got it right in January about how the year would unfold. As we close out 2024, let’s take a moment to go back and see if the crystal balls were working about how the year would play out in cybersecurity.Here are five trends that were often predicted for…

Topic updates

Get email updates and stay ahead of the latest threats to the security landscape, thought leadership and research.
Subscribe today