* Larry Cashdollar <lwc@vapid.ath.cx> wrote:
> This was posted on the full-disclosure list sept 16 2004 by
> Luiz Fernando.
>=20
> http://archives.neohapsis.com/archiv...4-09/0547.html
>=20
> The nessus check for this vulnerability recommends upgrading to
> Apache version 1.3.32:
>=20
> http://cgi.nessus.org/plugins/dump.php3?id=3D14771
>=20
> But in Apache 1.3.33:
>=20
> lachoy# grep strcpy /install/src/apache_1.3.33/src/support/htpasswd.c
> strcpy(record, user);
> strcpy(pwfilename, argv[i]);
> strcpy(user, argv[i + 1]);
> strcpy(password, argv[i + 2]);
> strcpy(scratch, line);
>=20
> It is still vulnerable.
If you start htpasswd from a shell and you exploit some kind of buffer
overflow, you get ... a shell?. Wow!
Whoever runs htpasswd setuid is darn silly. The httpd developers, the docs =
and
commonsense tell, that the program is just not designed for such an intenti=
on.
Or in other words, take any program that's not designed for being run setuid
and you'll find a "vulnerability" (e.g. with malloc debug environment
variables or the like).
Sorry, I can't see a security vulnerability here.
nd
--=20
> [...] wei=DF jemand zuf=E4llig, was der Tag DIV ausgeschrieben bedeutet?
DIVerses. Benannt nach all dem unstrukturierten Zeug, was die Leute da
so reinpacken und dann absolut positionieren ...
-- Florian Hartig und Lars Kasper in dciwam

Likes:

Quote