CVE-2015-5740

The net/http library in net/http/transfer.go in Go before 1.4.3 does not properly parse HTTP headers, which allows remote attackers to conduct HTTP request…

published October 18, 2017

CVSS
—
EPSS
4%
Percentile
89.5
In the wild
Unconfirmed
What it is

⚠️ A sneaky double header! The net/http library in Go before version 1.4.3 mishandles HTTP headers, allowing attackers to slip in malicious requests like a delivery driver taking an extra package without checking. 🚚 It's like a restaurant receiving two orders for the same table but only checking the first one. The server gets confused, potentially serving the wrong meal—or worse, serving nothing at all while hostile ingredients sneak in! If exploited, attackers could smuggle HTTP requests through the server, potentially hijacking user sessions or sending malicious commands without detection. This could lead to unauthorized access and disrupt services—definitely not the kind of surprise you want in your application!

Put simply

It's like a restaurant receiving two orders for the same table but only checking the first one. The server gets confused, potentially serving the wrong meal—or worse, serving nothing at all while hostile ingredients sneak in! This vulnerability occurs because the Go net/http library fails to parse headers correctly when there are multiple 'Content-Length' headers present. Consequently, it can misinterpret the intended payload, enabling HTTP request smuggling attacks.

What to do

If exploited, attackers could smuggle HTTP requests through the server, potentially hijacking user sessions or sending malicious commands without detection. This could lead to unauthorized access and disrupt services—definitely not the kind of surprise you want in your application! To safeguard against this issue, update your Go installation to version 1.4.3 or later. Additionally, review your HTTP header handling logic to prevent any future mishaps. Staying proactive with your code practices will help! You've got this! By taking these steps, your applications will be safer and more robust! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.03657 · 89.5th percentile
Published
2017-10-18T20:00Z
EPSS history
Timeline
  • 18 OCT 20:00Z
    The net/http library in net/http/transfer.go in Go before 1.4.3 does not properly parse HTTP headers, which allows remote attackers to conduct HTTP request…
    cvelistv5