|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Subject: easy DoS of LDAP services in case of naive programming
From: bert hubert (ahu
DS9A.NL)Date: Wed Jun 21 2000 - 16:43:47 CDT
- Next message: tf8: "WuFTPD: Providing *remote* root since at least1994"
- Previous message: Stan Bubrouski: "Re: rh 6.2 - gid compromises, etc"
- In reply to: Michal Zalewski: "Netscape FTP Server - "Professional" as hell :>"
- Next in thread: Luis Pinto: "Re: Netscape FTP Server - "Professional" as hell :>"
- Reply: bert hubert: "easy DoS of LDAP services in case of naive programming"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, Jun 21, 2000 at 02:13:33PM +0200, Michal Zalewski wrote:
> - this ftp server supports LDAP users; different LDAP
> accounts are served on single physical UID. It means,
> any user can access and eventually overwrite files
On a side note, I know people who have been bitten by users trying to log in
with account '*'. With LDAP, each query is by default subject to (not quite
regular) expression expansion.
So a user who enters a '*' as a username forces your LDAP server to look
through all possible users - an operation that may well take seconds to
complete, or even longer if your server is big, as often happens with LDAP
directories. An easy DoS attack.
There is an even sicker possibility when you copy code verbatim from the
(fine) examples found in the OpenLDAP or Michigan distribution. A search for
user '*' will return lots of entries - if you did not take the trouble to
take out the 'while' loop from the example, you may end up trying a lot of
users for a matching password.
And some of your users *will* have default or easy to guess passwords -
allowing easy entry to your systems by trying to log in as user '*' with
a common password.
In short, take care to properly escape what your users enter, and as a
further precaution, protect yourself against multiple returns from a search
for a single user.
Regards,
bert hubert
--
| http://www.rent-a-nerd.nl
| - U N I X -
| Inspice et cautus eris - D11T'95
- Next message: tf8: "WuFTPD: Providing *remote* root since at least1994"
- Previous message: Stan Bubrouski: "Re: rh 6.2 - gid compromises, etc"
- In reply to: Michal Zalewski: "Netscape FTP Server - "Professional" as hell :>"
- Next in thread: Luis Pinto: "Re: Netscape FTP Server - "Professional" as hell :>"
- Reply: bert hubert: "easy DoS of LDAP services in case of naive programming"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]