Ruby Net:::HTTP and Net::HTTPS library man-in-the-middle

ruby-nethttps-mitm (36861) The risk level is classified as LowLow Risk

Description:

The Ruby NET:HTTP and Net::HTTPS libraries could provide weaker than expected security. The connect method in the lib/net/http.rb file does not properly validate the certificate¿s common name (CN) after SSL tunnel negotiation has completed. A remote attacker could masquerade as a valid server and gain unauthorized access to secure data through a man-in-the-middle attack.

Platforms Affected:

  • Canonical, Ubuntu 6.06 LTS
  • Canonical, Ubuntu 6.10
  • Canonical, Ubuntu 7.04
  • Canonical, Ubuntu 7.10
  • Debian, Debian Linux 3.1
  • Debian, Debian Linux 4.0
  • MandrakeSoft, Mandrake Linux 2007
  • MandrakeSoft, Mandrake Linux 2007 X86_64
  • MandrakeSoft, Mandrake Linux 2007.1 X86_64
  • MandrakeSoft, Mandrake Linux 2007.1
  • MandrakeSoft, Mandrake Linux 2008.0
  • MandrakeSoft, Mandrake Linux 2008.0 X86_64
  • MandrakeSoft, Mandrake Linux Corporate Server 3.0 X86_64
  • MandrakeSoft, Mandrake Linux Corporate Server 3.0
  • MandrakeSoft, Mandrake Linux Corporate Server 4.0 X86_64
  • MandrakeSoft, Mandrake Linux Corporate Server 4.0
  • RedHat, Enterprise Linux 4 Desktop
  • RedHat, Enterprise Linux 4 AS
  • RedHat, Enterprise Linux 4 ES
  • RedHat, Enterprise Linux 4 WS
  • RedHat, Enterprise Linux 5
  • RedHat, Enterprise Linux 5 Client
  • RedHat, Enterprise Linux 5 Client Workstation
  • SuSE, SuSE Linux
  • Yukihiro Matsumoto, Ruby 1.8.5
  • Yukihiro Matsumoto, Ruby 1.8.6

Remedy:

For Ruby 1.8.5:
Upgrade to the latest version of Ruby (1.8.5, Revision 13502 or later), available from the Ruby Web site. See References.

For Ruby 1.8.6:
Upgrade to the latest version of Ruby (1.8.6, Revision 13504 or later), available from the Ruby Web site. See References.

For other distributions:
Apply the appropriate update for your system. See References.

Consequences:

Other

References:

Reported:

Sep 27, 2007

The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

Copyright (c) 1994-2008 Internet Security Systems, Inc. All rights reserved worldwide.

For corrections or additions please email xforce@iss.net

Return to the main page