1. CVE archive
  2. 2012
  3. CVE-2012-5783

CVE-2012-5783

5.8 Medium severity CVSS v2.0 · source NVD AV:N/AC:M/Au:N/C:P/I:P/A:N 5.8 – Medium

Description

Apache Commons HttpClient 3.x, as used in Amazon Flexible Payments Service (FPS) merchant Java SDK and other products, does not verify that the server hostname matches a domain name in the subject's Common Name (CN) or subjectAltName field of the X.509 certificate, which allows man-in-the-middle attackers to spoof SSL servers via an arbitrary valid certificate.

Affected products

VendorProductVersionPlatform
apache httpclient 3.1 –
canonical ubuntu linux 12.04 –
canonical ubuntu linux 14.04 –
canonical ubuntu linux 15.04 –
All 10 Apache Httpclient vulnerabilities

Vulnerability type

CWE-295 Improper Certificate Validation

The product does not validate, or incorrectly validates, a certificate.

Impact on systems

ScopeImpact
Integrity, Authentication Bypass Protection Mechanism, Gain Privileges or Assume Identity
When a certificate is invalid or malicious, it might allow an attacker to spoof a trusted entity by interfering in the communication path between the host and client. The product might connect to a malicious host while believing it is a trusted host, or the product might be deceived into accepting spoofed data that appears to originate from a trusted host.

How to prevent it

Architecture and Design · Implementation Certificates should be carefully managed and checked to assure that data are encrypted with the intended owner's public key.
Implementation If certificate pinning is being used, ensure that all relevant properties of the certificate are fully validated before the certificate is pinned, including the hostname.

All 1,810 CWE-295 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org