bin/100442: lukemftpd core dumps on anonymous login

Andrew Stevenson andrew at
Mon Jul 17 16:00:36 UTC 2006

>Number:         100442
>Category:       bin
>Synopsis:       lukemftpd core dumps on anonymous login
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 17 16:00:34 GMT 2006
>Originator:     Andrew Stevenson
>Release:        FreeBSD 6.1-RELEASE i386
System: FreeBSD 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Mon Jun 12 07:32:23 UTC 2006 root at i386


lukemftpd core dumps on anonymous login after accepting the password. What
seems to be happening is that the user function (ftpd.c:716) is called but we
hit the goto on line 786 and so skip the call to parse_conf on line 821. This
means that when we get to count_users (conf.c:883) (called from pass
(ftpd.c:1149)) curclass.classname is still NULL and the strlcat on line 892 of
conf.c causes a segfault.

The NetBSD code differs in that it doesn't have the goto though I haven't
tested to see if that avoids the problem. I'm not sure of the rationale for
the differing code - the comments seem to say the NetBSD code came from
FreeBSD originally.


Added an ftp user and group. Shell set to nologin.
Added lukemftpd to inetd.conf with the flags "ftpd -ll -r -d"
Login via FTP as "ftp" with any password.




More information about the freebsd-bugs mailing list