[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

system/2192: Security hole in ftp-proxy




>Number:         2192
>Category:       system
>Synopsis:       Security hole in ftp-proxy
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 22 05:00:01 MST 2001
>Last-Modified:
>Originator:     Jedi/Sector One
>Organization:
net
>Release:        OpenBSD 3.0
>Environment:
	System      : OpenBSD 3.0
	Architecture: OpenBSD.i386
	Machine     : i386
>Description:

ftp-proxy has a nice option (-A) to only allow anonymous connections.

However, this only check for /^USER anonymous/ or /^USER ftp/ .

Some buggy FTP daemons are triming spaces before commands. By adding an
extra space before "USER", ftp-proxy restrictions can be bypassed.

>How-To-Repeat:

USER nonanon
500 Only anonymous ftp is allowed

 USER nonanon
331 Password required for nonanon.
 
Successfully tested with proftpd 1.2.4 and ncftpd 2.7.0 .

>Fix:

Don't check for /^USER/i, check for /^\s*USER/i .

>Audit-Trail:
>Unformatted: