1. CVE archive
  2. 2007
  3. CVE-2007-5162

CVE-2007-5162

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

Description

The connect method in lib/net/http.rb in the (1) Net::HTTP and (2) Net::HTTPS libraries in Ruby 1.8.5 and 1.8.6 does not verify that the commonName (CN) field in a server certificate matches the domain name in an HTTPS request, which makes it easier for remote attackers to intercept SSL transmissions via a man-in-the-middle attack or spoofed web site.

Affected products

VendorProductVersionPlatform
ruby-lang ruby 1.8.5 –
ruby-lang ruby 1.8.6 –
All 94 Ruby-lang Ruby vulnerabilities

Vulnerability type

CWE-287 Improper Authentication

When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.

Impact on systems

ScopeImpact
Integrity, Confidentiality, Availability, Access Control Read Application Data, Gain Privileges or Assume Identity, Execute Unauthorized Code or Commands
This weakness can lead to the exposure of resources or functionality to unintended actors, possibly providing attackers with sensitive information or even execute arbitrary code.

How to prevent it

Architecture and Design · Libraries or Frameworks Use an authentication framework or library such as the OWASP ESAPI Authentication feature.

All 5,304 CWE-287 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org