re: bozo .htpasswd exposure

matthew green <[email protected]> Wed, 21 Nov 2018 20:41:19 +1100
Newsgroups gmane.os.netbsd.devel.security
Message-ID <[email protected]>
OK, i've commited fixes for all these problems to -current.

one additional comment:

> (Additionally, the "|| basename[1]" part of the if clause seems to make
> assumptions of the contents of basename[0] and it seems could lead to
> bypassing the check_special_files call in the case of one-character-long
> directory names; but this statement needs more research)

this conditional sould be OK.  either basename is NULL or
it points to a non-nul char of a nul-terminated string,
so basename[1] should be valid to check.

thanks again for your research finding flaws in bozohttpd.


.mrg.