search menu icon-carat-right cmu-wordmark

CERT Coordination Center

MIT Kerberos (krb5) ftpd and ksu do not properly validate seteuid() calls

Vulnerability Note VU#401660

Original Release Date: 2006-08-15 | Last Revised: 2006-08-16

Overview

Privilege escalation vulnerabilities in MIT krb5 ftpd and ksu may allow an authenticated attacker to execute arbitrary code.

Description

The MIT krb 5 ftpd and ksu programs contain multiple privilege escalation vulnerabilities.

These vulnerabilities are dependent on the host operating system's implementation of the seteuid() system call and result when seteuid() can fail due to resource exhaustion while changing to an unprivileged user ID. Some implementations of seteuid() do not expose the vulnerability.

From MIT krb5 Security Advisory 2006-001:

The following vulnerabilities may result from unchecked calls to seteuid(). These vulnerabilities are not yet known to exist on any operating system:

    • Unchecked calls to seteuid() in ftpd may allow a local privilege escalation leading to reading, writing, or creating files as root.
    • Unchecked calls to seteuid() in the ksu program may allow a local privilege escalation resulting in filling a file with null bytes as root and then deleting it (the "kdestroy" operation).

Impact

An authenticated attacker may be able to execute arbitrary code with root privileges.

Solution

UpgradeThe MIT Kerberos team has released an update to address these issues. See the Systems Affected section of this document for information about specific vendors. Users who compile Kerberos from the original source distribution should see MIT krb5 Security Advisory 2006-001 for more details.


Disable vulnerable programs

From MIT krb5 Security Advisory 2006-001: "Disable krshd and ftpd, and remove the setuid bit from the ksu binary and the v4rcp binary."

Vendor Information

401660
 

View all 46 vendors View less vendors


CVSS Metrics

Group Score Vector
Base
Temporal
Environmental

References

Acknowledgements

Thanks to the MIT Kerberos Team for reporting this issue. The MIT Kerberos Team in turn thanks Michael Calmer and Marcus Meissner at SUSE and Shiva Persaud at IBM for providing information about AIX.

This document was written by Ryan Giobbi.

Other Information

CVE IDs: CVE-2006-3084
Severity Metric: 2.33
Date Public: 2006-07-26
Date First Published: 2006-08-15
Date Last Updated: 2006-08-16 13:36 UTC
Document Revision: 40

Sponsored by CISA.