ID CVE-2007-5770
Summary The (1) Net::ftptls, (2) Net::telnets, (3) Net::imap, (4) Net::pop, and (5) Net::smtp libraries in Ruby 1.8.5 and 1.8.6 do not verify that the commonName (CN) field in a server certificate matches the domain name in a request sent over SSL, which makes it easier for remote attackers to intercept SSL transmissions via a man-in-the-middle attack or spoofed web site, different components than CVE-2007-5162.
References
Vulnerable Configurations
  • cpe:2.3:a:ruby-lang:ruby:1.8.5:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:1.8.5:*:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:1.8.6:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:1.8.6:*:*:*:*:*:*:*
CVSS
Base: 5.0 (as of 29-09-2017 - 01:29)
Impact:
Exploitability:
CWE CWE-287
CAPEC
  • Authentication Abuse
    An attacker obtains unauthorized access to an application, service or device either through knowledge of the inherent weaknesses of an authentication mechanism, or by exploiting a flaw in the authentication scheme's implementation. In such an attack an authentication mechanism is functioning but a carefully controlled sequence of events causes the mechanism to grant access to the attacker. This attack may exploit assumptions made by the target's authentication procedures, such as assumptions regarding trust relationships or assumptions regarding the generation of secret values. This attack differs from Authentication Bypass attacks in that Authentication Abuse allows the attacker to be certified as a valid user through illegitimate means, while Authentication Bypass allows the user to access protected material without ever being certified as an authenticated user. This attack does not rely on prior sessions established by successfully authenticating users, as relied upon for the "Exploitation of Session Variables, Resource IDs and other Trusted Credentials" attack patterns.
  • Exploiting Trust in Client (aka Make the Client Invisible)
    An attack of this type exploits a programs' vulnerabilities in client/server communication channel authentication and data integrity. It leverages the implicit trust a server places in the client, or more importantly, that which the server believes is the client. An attacker executes this type of attack by placing themselves in the communication channel between client and server such that communication directly to the server is possible where the server believes it is communicating only with a valid client. There are numerous variations of this type of attack.
  • Utilizing REST's Trust in the System Resource to Register Man in the Middle
    This attack utilizes a REST(REpresentational State Transfer)-style applications' trust in the system resources and environment to place man in the middle once SSL is terminated. Rest applications premise is that they leverage existing infrastructure to deliver web services functionality. An example of this is a Rest application that uses HTTP Get methods and receives a HTTP response with an XML document. These Rest style web services are deployed on existing infrastructure such as Apache and IIS web servers with no SOAP stack required. Unfortunately from a security standpoint, there frequently is no interoperable identity security mechanism deployed, so Rest developers often fall back to SSL to deliver security. In large data centers, SSL is typically terminated at the edge of the network - at the firewall, load balancer, or router. Once the SSL is terminated the HTTP request is in the clear (unless developers have hashed or encrypted the values, but this is rare). The attacker can utilize a sniffer such as Wireshark to snapshot the credentials, such as username and password that are passed in the clear once SSL is terminated. Once the attacker gathers these credentials, they can submit requests to the web service provider just as authorized user do. There is not typically an authentication on the client side, beyond what is passed in the request itself so once this is compromised, then this is generally sufficient to compromise the service's authentication scheme.
  • Man in the Middle Attack
    This type of attack targets the communication between two components (typically client and server). The attacker places himself in the communication channel between the two components. Whenever one component attempts to communicate with the other (data flow, authentication challenges, etc.), the data first goes to the attacker, who has the opportunity to observe or alter it, and it is then passed on to the other component as if it was never intercepted. This interposition is transparent leaving the two compromised components unaware of the potential corruption or leakage of their communications. The potential for Man-in-the-Middle attacks yields an implicit lack of trust in communication or identify between two components.
Access
VectorComplexityAuthentication
NETWORK LOW NONE
Impact
ConfidentialityIntegrityAvailability
NONE PARTIAL NONE
cvss-vector via4 AV:N/AC:L/Au:N/C:N/I:P/A:N
oval via4
accepted 2013-04-29T04:10:51.219-04:00
class vulnerability
contributors
  • name Aharon Chernin
    organization SCAP.com, LLC
  • name Dragos Prisaca
    organization G2, Inc.
definition_extensions
  • comment The operating system installed on the system is Red Hat Enterprise Linux 4
    oval oval:org.mitre.oval:def:11831
  • comment CentOS Linux 4.x
    oval oval:org.mitre.oval:def:16636
  • comment Oracle Linux 4.x
    oval oval:org.mitre.oval:def:15990
  • comment The operating system installed on the system is Red Hat Enterprise Linux 5
    oval oval:org.mitre.oval:def:11414
  • comment The operating system installed on the system is CentOS Linux 5.x
    oval oval:org.mitre.oval:def:15802
  • comment Oracle Linux 5.x
    oval oval:org.mitre.oval:def:15459
description The (1) Net::ftptls, (2) Net::telnets, (3) Net::imap, (4) Net::pop, and (5) Net::smtp libraries in Ruby 1.8.5 and 1.8.6 do not verify that the commonName (CN) field in a server certificate matches the domain name in a request sent over SSL, which makes it easier for remote attackers to intercept SSL transmissions via a man-in-the-middle attack or spoofed web site, different components than CVE-2007-5162.
family unix
id oval:org.mitre.oval:def:11025
status accepted
submitted 2010-07-09T03:56:16-04:00
title The (1) Net::ftptls, (2) Net::telnets, (3) Net::imap, (4) Net::pop, and (5) Net::smtp libraries in Ruby 1.8.5 and 1.8.6 do not verify that the commonName (CN) field in a server certificate matches the domain name in a request sent over SSL, which makes it easier for remote attackers to intercept SSL transmissions via a man-in-the-middle attack or spoofed web site, different components than CVE-2007-5162.
version 24
redhat via4
advisories
  • bugzilla
    id 362081
    title CVE-2007-5770 ruby insufficient verification of SSL certificate in various net::* modules
    oval
    AND
    • comment Red Hat Enterprise Linux 4 is installed
      oval oval:com.redhat.rhba:tst:20070304001
    • OR
      • AND
        • comment irb is earlier than 0:1.8.1-7.EL4.8.1
          oval oval:com.redhat.rhsa:tst:20070961008
        • comment irb is signed with Red Hat master key
          oval oval:com.redhat.rhsa:tst:20060729015
      • AND
        • comment ruby is earlier than 0:1.8.1-7.EL4.8.1
          oval oval:com.redhat.rhsa:tst:20070961002
        • comment ruby is signed with Red Hat master key
          oval oval:com.redhat.rhsa:tst:20060729003
      • AND
        • comment ruby-devel is earlier than 0:1.8.1-7.EL4.8.1
          oval oval:com.redhat.rhsa:tst:20070961006
        • comment ruby-devel is signed with Red Hat master key
          oval oval:com.redhat.rhsa:tst:20060729011
      • AND
        • comment ruby-docs is earlier than 0:1.8.1-7.EL4.8.1
          oval oval:com.redhat.rhsa:tst:20070961012
        • comment ruby-docs is signed with Red Hat master key
          oval oval:com.redhat.rhsa:tst:20060729007
      • AND
        • comment ruby-libs is earlier than 0:1.8.1-7.EL4.8.1
          oval oval:com.redhat.rhsa:tst:20070961010
        • comment ruby-libs is signed with Red Hat master key
          oval oval:com.redhat.rhsa:tst:20060729009
      • AND
        • comment ruby-mode is earlier than 0:1.8.1-7.EL4.8.1
          oval oval:com.redhat.rhsa:tst:20070961004
        • comment ruby-mode is signed with Red Hat master key
          oval oval:com.redhat.rhsa:tst:20060729005
      • AND
        • comment ruby-tcltk is earlier than 0:1.8.1-7.EL4.8.1
          oval oval:com.redhat.rhsa:tst:20070961014
        • comment ruby-tcltk is signed with Red Hat master key
          oval oval:com.redhat.rhsa:tst:20060729013
    rhsa
    id RHSA-2007:0961
    released 2007-11-13
    severity Moderate
    title RHSA-2007:0961: ruby security update (Moderate)
  • bugzilla
    id 362081
    title CVE-2007-5770 ruby insufficient verification of SSL certificate in various net::* modules
    oval
    AND
    • comment Red Hat Enterprise Linux 5 is installed
      oval oval:com.redhat.rhba:tst:20070331001
    • OR
      • AND
        • comment ruby is earlier than 0:1.8.5-5.el5_1.1
          oval oval:com.redhat.rhsa:tst:20070965002
        • comment ruby is signed with Red Hat redhatrelease key
          oval oval:com.redhat.rhsa:tst:20070965003
      • AND
        • comment ruby-devel is earlier than 0:1.8.5-5.el5_1.1
          oval oval:com.redhat.rhsa:tst:20070965012
        • comment ruby-devel is signed with Red Hat redhatrelease key
          oval oval:com.redhat.rhsa:tst:20070965013
      • AND
        • comment ruby-docs is earlier than 0:1.8.5-5.el5_1.1
          oval oval:com.redhat.rhsa:tst:20070965016
        • comment ruby-docs is signed with Red Hat redhatrelease key
          oval oval:com.redhat.rhsa:tst:20070965017
      • AND
        • comment ruby-irb is earlier than 0:1.8.5-5.el5_1.1
          oval oval:com.redhat.rhsa:tst:20070965010
        • comment ruby-irb is signed with Red Hat redhatrelease key
          oval oval:com.redhat.rhsa:tst:20070965011
      • AND
        • comment ruby-libs is earlier than 0:1.8.5-5.el5_1.1
          oval oval:com.redhat.rhsa:tst:20070965018
        • comment ruby-libs is signed with Red Hat redhatrelease key
          oval oval:com.redhat.rhsa:tst:20070965019
      • AND
        • comment ruby-mode is earlier than 0:1.8.5-5.el5_1.1
          oval oval:com.redhat.rhsa:tst:20070965004
        • comment ruby-mode is signed with Red Hat redhatrelease key
          oval oval:com.redhat.rhsa:tst:20070965005
      • AND
        • comment ruby-rdoc is earlier than 0:1.8.5-5.el5_1.1
          oval oval:com.redhat.rhsa:tst:20070965006
        • comment ruby-rdoc is signed with Red Hat redhatrelease key
          oval oval:com.redhat.rhsa:tst:20070965007
      • AND
        • comment ruby-ri is earlier than 0:1.8.5-5.el5_1.1
          oval oval:com.redhat.rhsa:tst:20070965014
        • comment ruby-ri is signed with Red Hat redhatrelease key
          oval oval:com.redhat.rhsa:tst:20070965015
      • AND
        • comment ruby-tcltk is earlier than 0:1.8.5-5.el5_1.1
          oval oval:com.redhat.rhsa:tst:20070965008
        • comment ruby-tcltk is signed with Red Hat redhatrelease key
          oval oval:com.redhat.rhsa:tst:20070965009
    rhsa
    id RHSA-2007:0965
    released 2007-11-13
    severity Moderate
    title RHSA-2007:0965: ruby security update (Moderate)
rpms
  • irb-0:1.8.1-7.EL4.8.1
  • ruby-0:1.8.1-7.EL4.8.1
  • ruby-devel-0:1.8.1-7.EL4.8.1
  • ruby-docs-0:1.8.1-7.EL4.8.1
  • ruby-libs-0:1.8.1-7.EL4.8.1
  • ruby-mode-0:1.8.1-7.EL4.8.1
  • ruby-tcltk-0:1.8.1-7.EL4.8.1
  • ruby-0:1.8.5-5.el5_1.1
  • ruby-devel-0:1.8.5-5.el5_1.1
  • ruby-docs-0:1.8.5-5.el5_1.1
  • ruby-irb-0:1.8.5-5.el5_1.1
  • ruby-libs-0:1.8.5-5.el5_1.1
  • ruby-mode-0:1.8.5-5.el5_1.1
  • ruby-rdoc-0:1.8.5-5.el5_1.1
  • ruby-ri-0:1.8.5-5.el5_1.1
  • ruby-tcltk-0:1.8.5-5.el5_1.1
refmap via4
apple APPLE-SA-2007-12-17
bid 26421
cert TA07-352A
confirm
debian
  • DSA-1410
  • DSA-1411
  • DSA-1412
mandriva MDVSA-2008:029
misc https://bugzilla.redhat.com/show_bug.cgi?id=362081
sectrack 1018938
secunia
  • 26985
  • 27576
  • 27673
  • 27756
  • 27764
  • 27769
  • 27818
  • 28136
  • 28645
  • 29556
suse SUSE-SR:2007:024
ubuntu USN-596-1
vupen ADV-2007-4238
Last major update 29-09-2017 - 01:29
Published 14-11-2007 - 01:46
Back to Top