Home page logo

fulldisclosure logo Full Disclosure mailing list archives

Re: FreeBSD and OpenBSD ftpd bug (not exploitable?)
From: Patrick Lamaiziere <patfbsd () davenulle org>
Date: Sun, 7 Mar 2010 17:57:42 +0100

Le Fri, 05 Mar 2010 16:19:12 +0100,
Kingcope <kcope2 () googlemail com> a écrit :

FreeBSD ftpd globbing bug - null pointer dereference ?

Affected FreeBSD Releases
FreeBSD 8.0, 6.3 and 4.9

Affected OpenBSD Releases
OpenBSD 4.6

Could someone please shed some light into why glob doesn't fail but
gives a zeroed out structure back?

according to glob(3) (on FreeBSD)

"gl_pathv : contains a pointer to a NULL-terminated list of
matched pathnames.  However, if gl_pathc is zero, the contents of
gl_pathv are undefined."

In your test program, glob returns 0 but with gl_pathc == 0 so it

ftpd should check if gl_pathc > 0.

Good catch!

Best regards.

Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]