_________________________________________________________ DePaul University Computer Security Response Team C S R T _________________________________________________________ Computer Security Vulnerability Alert _____________________________________________________________________ 15:59 -0500 2003-08-04 SUMMARY ``Off-by-one'' error in realpath library. SEVERITY Medium PLATFORM FreeBSD RELENG_3, FreeBSD RELENG_4_3 through RELENG_4_8 FreeBSD RELENV_5_0 FreeBSD 4-STABLE prior to 2003-05-22 17:11:44 -0000 NetBSD-current prior to 2003-08-04 NetBSD 1.5 through 1.6.1 OpenBSD 3.2, 3.3 WU-FTPd 2.5.0 <= 2.6.2 Other platforms running wu-ftpd by default. Also, this bug may impact the OpenSSH sftp-server and other applications if linked against a vulnerable version of realpath(3). IMPACT This bug may cause an exploitable hole in applications linked against realpath. SCOPE University computers running effected platforms above, or those running code linked against realpath. DETAILS An off-by-one error exists in a C library function named realpath(3). The realpath(3) library determines how a system call is to discover the absolute pathname from a pathname containing "/", "/./", or "/../". If the pathname is 1024 characters and contains two (2) directory seperators, a single NULL byte may be passed to, overwriting the buffer of realpath(3). DAMAGE Compromise of system privileges, remote code execution or denial of services. EXPLOIT A working exploit has been released for the wu-ftpd vulnerable daemon. CSRT will monitor activity and report if other exploits are found. ALERTID CSRT2003070804 REVISION Id: csrt-va2003080401.txt,v 1.3 2003/08/04 20:59:21 epancer Exp ______________________________________________________________________ MORE INFO o Copy of CSRT Alert o CERT/CC Vulnerability Note VU#743092 o FreeBSD Advisory o FreeBSD Patch o NetBSD Advisory o NetBSD Patch o OpenBSD Errata Website o OpenBSD 3.2 Patch o OpenBSD 3.3 Patch o WU-FTPD Advisory ______________________________________________________________________ _____________________________END OF ALERT_____________________________