5008 : KAME Racoon IKE Daemon RSA Signature Verification Failure
Printer | http://osvdb.org/5008 | Email This | Edit Vulnerability

Views This Week

3

Views All Time

112

Info

Last Modified

6 months ago

Percent Complete

100%

Disclosure

Apr 07, 2004

Discovery

Unknown

Dates

Exploit

Apr 07, 2004

Solution

Unknown

Description

Multiple IPSec implementations, including KAME, ipsec-tools, and operating systems that include them contain a flaw that may allow a malicious user to make a successful IPSec connection without proper authorization. The issue is triggered when the attacker possesses any valid and trusted X.509 certificate and the server attempts to use RSA signature authentication. While the server does check the validity of the X.509 certificate, it fails to check the RSA signature of that certificate. It is possible that the flaw may allow unauthorized access, resulting in a loss of confidentiality.

Classification

Location: Local Access Required, Remote/Network Access Required
Attack Type: Authentication Management, Input Manipulation, Misconfiguration
Impact: Loss of Confidentiality
Exploit: Exploit Available
Disclosure: OSVDB Verified

Technical

The KAME IKE daemon Racoon and its Linux 2.6 port in ipsec-tools fail to verify the RSA signature during phase one of an IPSec connection, using either main or aggressive mode. The X.509 certificate of the client is verified, but the certificate is not used to verify the client's signature. This could allow remote attackers to establish unauthorized IP connections or conduct man-in-the-middle attacks, provided that they possess a valid, trusted X.509 certificate. As you can see, the vulnerable code in the eay_rsa_verify() function of crypto_openssl.c reads as follows:

evp = d2i_PUBKEY(NULL, &bp, pubkey->l);
if (evp == NULL)
return 0;

d2i_PUBKEY always returns NULL, and so the function always exits with the returncode 0 (success). There is no signature verification.

Solution

Upgrade to version 1.84 of KAME or a recent CVS tree, version 1.62 of NetBSD, version 4.9-CURRENT of FreeBSD, version 0.2.5 of ipsec-tools, or higher, as these have been reported to fix this vulnerability. An upgrade is required as there are no known workarounds.

Products

FreeBSD Project
Watch-list
FreeBSD
Watch-list
4.9-RELEASE
NetBSD Foundation, Inc.
Watch-list
NetBSD
Watch-list
1.6
1.6.1
IPsec-Tools
Watch-list
IPsec-tools
Watch-list
0.1
0.2
0.3rc4
0.2.4
0.2.3
0.2.2
0.2.1
Apple Computer, Inc.
Watch-list
Mac OS X
Watch-list
10.2.8
10.3.3
KAME Project
Watch-list
KAME Racoon
Watch-list
CVS prior to April 06 2004
1.83

References

Tools & Filters

Nessus

12488 12608 14126

Credit

  • Ralf Spenneberg - ralfBrand New Doo Doospenneberg.net -
  • Michal Ludvig - michalBrand New Doo Doologix.cz - IPSec-Tools
  • Hans Hacker -

Blogs

None found at this time

Comments

No Comments.

DONATE NOW!

User Status

Quick Searches

Advertisements

The database information may change without any notice. Use of the information constitutes acceptance for use in an AS IS condition, and 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 copyright holder or distributor (OSVDB or OSF) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

© Copyright 2008 Open Source Vulnerability Database (OSVDB), All Rights Reserved.
Privacy Statement - Terms of Use