Unfortunately, the username and password you have entered do not match!

Registration

Unfortunately, this username is already taken!

Unfortunately, this e-mail address is already used!

Please retype the verification code.

All fields are required

LDAP logins and checkLoginAttemps

Welcome, Guest
Username Password: Remember me

LDAP logins and checkLoginAttemps
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: LDAP logins and checkLoginAttemps

LDAP logins and checkLoginAttemps 1 year, 11 months ago #10748

Hi

This is a bug I've noticed with the software. Bear with me while I give the details.

Joomla: 1.5.18
PHP: 5.3.2
RSFirewall: 1.0.0 Rev 15

As we're using Joomla! as an intranet, we've turned on the Authentication - LDAP plugin, so users use their network username and password to login. This works fine, and creates a new user for this person.

When it creates the user, however, it doesn't save the password to the users table. This doesn't affect our users, as they only need to be authenticated.

However, RSFirewall is looking to make sure no un-authenticated users get in, and logs any unsuccessful attempts. RSFirewallHelper::checkLoginAttempts() is the function that does this, but it does it wrong. It checks to see if a username exists by checking to see if a query on the username supplied by the login attempt returns a password. As our users are created by LDAP, the logic check says that the user doesn't exist because the password field in the DB is blank. It then logs the username and password in the clear, in the database, for a successful login, as if it was an unsuccessful login. This is a huge security hole for us, so I've hacked the code to stop it storing passwords for login attempts.

For compatibility purposes, can I suggest this section of the code be changed? First off, check the number of returned rows, rather then whether the password is greater then 0. This will limit false positives.

Secondly, provide an administration option to turn off this section of the code. If I implement the first suggestion, I'm going to get an alert with a status of high on every successful login. As it is, I get one of medium, but I can deal with that. Ideally the active scanner would note whether the user was authenticated rather then whether the passwords matched, to handle authentication plugins other then the default Joomla! one.

Let me know if you need any more details.

--- Ben

Re:LDAP logins and checkLoginAttemps 1 year, 11 months ago #10749

Hello,

Thank you for sharing this with the community. We will try to address this issue in the future revision of RSFirewall!.
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team

Re:LDAP logins and checkLoginAttemps 5 hours, 1 minute ago #0

Hello,
This is an automatically generated message.
We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you wish to receive our support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here: http://www.rsjoomla.com/support-policy.html.

Thank You!
PLEASE NOTE: This topic is NOT locked and you can add replies to it. Other users are free to reply as well. This message has been generated by a bot and has no effect on the topic whatsoever.
  • Page:
  • 1
Time to create page: 0.52 seconds
Feedback