Bug 637924 (CVE-2010-3308)

Summary: CVE-2010-3308 Openswan cisco banner option handling vulnerability
Product: [Other] Security Response Reporter: Josh Bressers <bressers>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: avagarwa, rcvalle
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-16 20:02:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 635058, 635060, 637925    
Bug Blocks:    

Description Josh Bressers 2010-09-27 18:43:15 UTC
Security Alert:
This alert (and any possible updates) is available at the following URL:
http://www.openswan.org/download/CVE-2010-3302/

The Openswan project has discovered two vulnerabilities in the XAUTH
Cisco handling code that could be exploited if openswan connects to a
trusted gateway that has been compromised.

Vulnerable versions: openswan 2.6.26 up to and including openswan 2.6.28
Fixed version      : openswan 2.6.29 and above

Vulnerability information:
In very specific circumstances, a buffer overflow and arbitrary shell
commands could be sent to a vulnerable openswan client.

These vulnerabilities can only be triggered when openswan is configured to
connect to a malicious Cisco compatible gateway using XAUTH. It requires
openswan to be configured with *xauthclient=yes and remote_peer_type=cisco,
and requires successful phase1 IKE negotiation. This can only happen to a
vulnerable Openswan client when connecting to a trusted and authenticated
gateway using XAUTH.

An Openswan server receiving VPN connections is not affected by this flaw.

Vulnerability Details:
The field cisco_banner (later renamed to server_banner) were declared as a
fixed length buffer. If a banner is sent with more then 500 characters,
the buffer will overflow.  Additionally, the banner was copied
into fmt_common_shell_out() without being sanitized to make it safe
against exploitable characters, such as single quotes('). This was
introduced in git commit id 3615e17463a, on May 19, 2010 and first
released in openswan 2.6.26.

Patch:
For those unable to upgrade to the latest openswan 2.6.29 release, a patch
addressing CVE-2010-3308 and CVE-2010-3302 can be found at:
http://www.openswan.org/download/CVE-2010-330x/

Acknowledgements:

Red Hat would like to thank the Openswan project for reporting this issue.
Upstream acknowledges D. Hugh Redelmeier and Paul Wouters as the original
reporters.

Comment 2 Josh Bressers 2010-09-27 18:47:49 UTC
Created openswan tracking bugs for this issue

Affects: fedora-all [bug 637925]

Comment 3 errata-xmlrpc 2010-11-16 18:17:48 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6

Via RHSA-2010:0892 https://rhn.redhat.com/errata/RHSA-2010-0892.html