I am using version 1.11.5, and ran into a problem when resetting passwords for users on the site. I was attempting to set long passwords based on several random words. The admin module accepted the passwords update, but I was unable to log in using the new password.
After a bit of investigation, it appears that the admin module is silently truncating the entered password to 25 characters (so when I attempted to log in with the longer password I thought I had set, it was not recognised).
If there is a specific reason for limiting the size of user passwords, would it be worth adding validation to the admin module password to ensure that users can only enter a maximum of 25 characters, and don't end up setting passwords that are different from the ones they think they are setting?
User passwords truncated?
-
- Power Poster
- Posts: 1049
- Joined: Wed Mar 19, 2008 4:54 pm
Re: User passwords truncated?
a very long password of several words isn't much safer.
when you create a random password with e.g. http://strongpasswordgenerator.com/ of 16 characters and punctuations, you get a very strong password.
when you create a random password with e.g. http://strongpasswordgenerator.com/ of 16 characters and punctuations, you get a very strong password.
Re: User passwords truncated?
Agreed, may not be more secure, but a long password using conventional words can be secure and easy to remember, which is also important:
http://xkcd.com/936/
If CMSMS is limiting the password size at entry, this needs to be explicitly validated, so users don't mistakenly think that a longer password has been successfully set.
I will raise a report to see if this is a genuine bug, and not just something strange about my setup.
http://xkcd.com/936/
If CMSMS is limiting the password size at entry, this needs to be explicitly validated, so users don't mistakenly think that a longer password has been successfully set.
I will raise a report to see if this is a genuine bug, and not just something strange about my setup.
Re: User passwords truncated?
Sorry but tat would be about a day (maybe less) to crack down with a dictionary attack. My 2 cents, FWIW....
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: User passwords truncated?
The password fields in the admin adduser/edituser forms have a maxlength attribute of 25 chars. They have been this way for a very long time.
I researched... Javascript does not allow us to (reliably) preview the text that is about to be pasted into a text field to see if you are pasting in too many characters. Therefore for 2.0 I've disabled the paste ability on the admin (and frontend) password fields.
I also changed the 'bug report' to minor.
I researched... Javascript does not allow us to (reliably) preview the text that is about to be pasted into a text field to see if you are pasting in too many characters. Therefore for 2.0 I've disabled the paste ability on the admin (and frontend) password fields.
I also changed the 'bug report' to minor.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: User passwords truncated?
Oh.calguy1000 wrote:Therefore for 2.0 I've disabled the paste ability on the admin (and frontend) password fields.

I suspect like a lot of people I use a password storage program (in my case Keepass) which generates strong(er) passwords. I just generate a new one, copy and paste it, and save the Keepass record. Job done.
Looks like staartmees might do something similar with his strong passwords site that (s)he mentioned.
Sounds like now, though, we won't be able to copy and paste in to the new user form? So it's going to be a pain to type a (say) 20 character password.....twice. And it might be tempting for some to shorten the password (to make it quicker to type) and so make their site less secure.
Can I vote you don't disable paste please?
What about simply adding some text "Max 25 characters" next to the password field? That would be enough for me to realise and probably for the OP too.
Or how about something like this which will turn the text box border red when you reach the character limit:
http://www.dynamicdrive.com/dynamicinde ... tinput.htm
Disabling pasting just it makes it more difficult for everybody IMHO.
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: User passwords truncated?
Yeah I reversed that nopaste thing yesterday, and modified the maxlength attribute to be 100 chars...
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: User passwords truncated?
Oh, cool.
Thanks Calguy.

Re: User passwords truncated?
Thanks folks. That seems like a good outcome, regardless of whether you are trying to use long, memorable passwords or complex non-memorable passwords with a password manager (or a combination of both approaches).
I think the important point is that password security is not just about complexity, but also depends on how useable the password is. As pointed out above, making passwords too difficult to use will compromise security because users will cut corners.
I think the important point is that password security is not just about complexity, but also depends on how useable the password is. As pointed out above, making passwords too difficult to use will compromise security because users will cut corners.