The Vigil@nce team watches public vulnerabilities impacting your computers, and then offers security solutions, a vigilance database and tools to fix them.

Vulnerability of Apache HttpClient: parameter injection with addRequestHeader

Synthesis of the vulnerability 

When an attacker can control the parameter of the addRequestHeader() method of Apache HttpClient, he can insert additional HTTP headers.
Vulnerable systems: Apache HttpClient.
Severity of this threat: 1/4.
Creation date: 11/01/2013.
Références of this weakness: CST-7122, CST-7123, CST-7124, CST-7125, CST-7126, CST-7127, CST-7128, CST-7129, CST-7130, CST-7131, VIGILANCE-VUL-12326.

Description of the vulnerability 

The HTTP protocol uses text headers separated by line feeds. For example:
  GET / HTTP/1.0
  Host: www.exemple.com
  etc.

The addRequestHeader() method of Apache HttpClient is used to add an HTTP header to a query. However, this function does not forbid line feeds. An attacker can thus use it to add several HTTP headers at once.

When an attacker can control the parameter of the addRequestHeader() method of Apache HttpClient, he can therefore insert additional HTTP headers.
Full bulletin, software filtering, emails, fixes, ... (Request your free trial)

This weakness note impacts software or systems such as Apache HttpClient.

Our Vigil@nce team determined that the severity of this threat note is low.

The trust level is of type confirmed by the editor, with an origin of document.

A proof of concept or an attack tool is available, so your teams have to process this alert. An attacker with a specialist ability can exploit this computer weakness.

Solutions for this threat 

Apache HttpClient: workaround for addRequestHeader.
A workaround is to filter parameters which are transmitted to the addRequestHeader() method.

Liferay Portal: version 7.1.3 CE GA 4.
The version 7.1.3 CE GA 4 is fixed.
Full bulletin, software filtering, emails, fixes, ... (Request your free trial)

Computer vulnerabilities tracking service 

Vigil@nce provides a computer vulnerability patch. The Vigil@nce security watch publishes vulnerability bulletins about threats impacting the information system.