Website login system security
March 10, 2008 8:10 AM
Subscribe
Security requirements for a php website login system.
I am building a website which will have a member login system. In my prototype, the user had to confirm via email before they were registered. The client wants to miss this step, and have them immediately access the members area. My 'forgot password' had a random temporary password sent to the account email address, which the user would login with, my client wants the actual password sent out. Finally, the client wants to use the email address as the login/user name, and wants the user to be able to change this email address.
I have a feeling that doing things the clients way will not be good security, but am having trouble articulating exactly why. Can anyone help me define the flaws (or tell me I am being overcautious). The members area will have details like address, phone number etc if that has implications.
posted by zingzangzung to computers & internet (9 comments total)
3 users marked this as a favorite
But seriously, you need to tell the client what could go wrong and see if it is OK.
"Someone could obtain access to customer email, then change the username and become them."
"Since passwords would need to be stored using reversible encryption to send them to the user, (you ARE at least encrypting them, right?) then an unscrupulous admin (or password reset customer service monkey) could obtain the password and masquerade as the user. We couldn't detect this."
Does the random temporary password work in addition to the old password or does it replace the old one? if it replaces, then an evildoer can deny anybody access to the site by telling it that the target user lost his/her password, thus resetting it. Temporary, but annoying.
We generally prefer to email reset codes to users who lose their passwords. The link is unguessable and is only good for 24, 28 whatever hours. The old password still works if they reset code isn't picked up.
It isn't perfect (see encased in lead above), but it is usually a tradeoff we can live with. Oh, and we log absolutely everything related to logins.
posted by mrbugsentry at 8:22 AM on March 10