4160 : WU-FTPD restricted-gid Directory Access Restriction Bypass
Printer | http://osvdb.org/4160 | Email This | Edit Vulnerability

Views This Week

1

Views All Time

33

Info

Last Modified

7 months ago

Percent Complete

100%

Disclosure

Mar 09, 2004

Discovery

Unknown

Dates

Exploit

Mar 09, 2004

Solution

Unknown

Description

WU-FTPD contains a flaw that may lead to an unauthorized information disclosure. The issue is triggered when the restricted-gid feature is used. A malicious user can change the permissions on their home directory to deny themselves access. A subsequent connection by that user will exploit the flaw, and put them into the home directory of the root user, which will disclose files that an ordinary user would not have access to resulting in a loss of confidentiality.

Classification

Location: Remote/Network Access Required
Attack Type: Information Disclosure
Impact: Loss of Confidentiality
Exploit: Exploit Available
Disclosure: OSVDB Verified

Technical

The following is the patch that Red Hat has applied. It should work for all platforms:

--- wu-ftpd/src/ftpd.c.escape 2001-05-17 20:36:44.000000000 +0200
+++ wu-ftpd/src/ftpd.c 2004-03-01 11:56:17.541416616 +0100
@@ -3365,7 +3365,7 @@
}
#endif /* ALT_HOMEDIR */
#else /* DISABLE_STRICT_HOMEDIR is defined */
- if (chdir("/") < 0) {
+ if (restricted_user || chdir("/") < 0) {
#ifdef VERBOSE_ERROR_LOGING
syslog(LOG_NOTICE, "FTP LOGIN FAILED (cannot chdir) for %s, %s",
remoteident, pw->pw_name);

Solution

Upgrade to version 2.6.2-13 (Available on some Linux distributions) or higher, as it has been reported to fix this vulnerability. In addition, WU-FTPD Development Group has released a patch for some older versions of the main distribution.

Products

WU-FTPD Development Group
Watch-list
wu-ftpd
Watch-list
2.5.0
2.6.1
2.6.2
2.6.0

References

Tools & Filters

Nessus

12098 12475 12622 15294

Credit

  • Glenn Stewart -

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