781 : OpenSSH Kerberos TGT/AFS Token Passing Remote Overflow
Printer | http://osvdb.org/781 | Email This | Edit Vulnerability

Views This Week Views All Time Added to OSVDB Last Modified Modified (since 2008) Percent Complete
11 1021 over 9 years ago over 4 years ago 0 times 90%

Timeline

Disclosure Date
2003-05-22

Description

A remote and local overflow exists in OpenSSH. OpenSSH fails to clear counters from a buffer in the auth_krb4_tgt() function, resulting in a buffer overflow. With a specially crafted request, an attacker can cause stack variables to be overwritten and arbitrary code to be executed, resulting in a loss of confidentiality, integrity, and/or availability.

Classification

Location: Local Access Required, Remote / Network Access
Attack Type: Input Manipulation
Impact: Loss of Integrity
Disclosure: OSVDB Verified

Technical

The sshd daemon in OpenSSH versions 2.9.9 and older is vulnerable to a buffer overflow resulting in remote root if the following conditions are met:
1) sshd is compiled with Kerberos/AFS support and
2) either KerberosTgtPassing or AFSTokenPassing is enabled in sshd_config.

Versions from 2.9.9 to 3.2 are vulnerable to local root exploits if the same conditions are met. Kerberos ticket and token passing are disabled by default. An attacker can send a specially crafted request to pass Kerberos IV TGT, or pass AFS token, exploiting the bug in auth_krb4_tgt() function which fails to clear user-supplied contents from a temp buffer. Thus, a remote attacker can overflow the buffer and overwrite stack variables to execute arbitrary code on the system.

Solution

Upgrade to version 3.2.2 or higher, as it has been reported to fix this vulnerability. It is also possible to correct the flaw by applying the vendor-supplied patch, or by disabling Kerberos authentication.

Products

OpenSSH
Watch-list
OpenSSH
Watch-list
1.2.3
2.1.0
2.1.1
2.2.0
2.3.0
2.5.0
2.5.1
2.5.2
2.9
2.9.9
3.0
3.0.1
3.0.2
3.1
3.2.0

References

Tools & Filters

10954
1986 1989

Credit

  • Marcell Fodor - m.fodormail.datanet.hu -

CVSSv2 Score

CVSSv2 Base Score = 7.5
Source: nvd.nist.gov | Generated: 2003-12-31 | Disagree?

Access_vector_2 Access_complexity_2 Authentication_2 Confidentiality_impact_1 Integrity_impact_1 Availability_impact_1

Blogs

This section lists the latest news and blogs found via the daylife API (and for older items, the technorati API), which mention or otherwise discuss this vulnerability.

None found at this time

Comments

No Comments.

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 2012 Open Source Vulnerability Database (OSVDB), All Rights Reserved.
Privacy Statement - Terms of Use