[31804] in bugtraq

home help back first fref pref prev next nref lref last post

minor apache htpasswd problem

daemon@ATHENA.MIT.EDU (Andreas Steinmetz)
Thu Sep 25 17:03:00 2003

Message-ID: <3F734F21.2010703@domdv.de>
Date: Thu, 25 Sep 2003 22:25:05 +0200
From: Andreas Steinmetz <ast@domdv.de>
MIME-Version: 1.0
To: bugtraq@securityfocus.com
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

This is valid for the htpasswd utility of at least apache 1.3.27 and 1.3.28:

The salt used for password generation solely depends on the current 
system time:

(void) srand((int) time((time_t *) NULL));
ap_to64(&salt[0], rand(), 8);

This causes all passwords generated within the same second to have the 
same salt value. This in turn may cause auto-generated default passwords 
to have the same value which could be a point of attack if the password 
file is not properly protected.

The apache team was notified on 23.08.2003 but didn't respond.

Though it would need quite some administrative errors before the above 
could be used it should still be corrected.
-- 
Andreas Steinmetz


home help back first fref pref prev next nref lref last post