5 ms·
I've run into a service where having a password longer than 15 characters _truncates_ it but the password change dialog does not so it's stuck in limbo.
by doublepg23 4y ago
I've run into a service where having a password longer than 15 characters _truncates_ it but the password change dialog does not so it's stuck in limbo.
- aidenn0 4y agoI ran into a service where the password entry input enforced a shorter length than the change password. If I pasted my password it failed, but if I auto-filled from bitwarden it succeeded. Took me weeks to figure out why...
- alisonatwork 4y agoOne site I went to lowercased my password before storing it unencrypted in the DB, which I only discovered after failing to log in and asking for a password reset mail, so it helpfully emailed me my clear text lowercased password.
- cdaringe 4y agoIncredible. Please tell us who did this, not to shame them, bit to help us!
- alisonatwork 4y agoIt was an online store I bought something from quite a few years back. I would hope most stores are using more modern back ends nowadays that doesn't allow this to happen.
- skim_milk 4y agoI worked at a place that did this, case-insensitive passwords and all. The worst part? They had unencrypted production database backups on all of their dev laptops, the majority of which left the premises after every night. I couldn't get a figure of how many laptops were lost but statistically speaking there had to have been at least 3 lost laptops with unencrypted production database backups per year using industry statistics. Eventually I convinced leadership to invest in basic security after conservative but still embarrassingly high 6-to-7-figure estimates of annual loss expectancy that only took a measly 5 figures a year to eliminate 75% of the risk, but the company only went around to it a long while after I left the place.
- sshine 4y agoI have former employers who still didn't fix the security bugs I uncovered years after. I don't know what makes a manager turn off snooze on open PRs for fixing blatant holes. But if you've got that skill, it can take you far!
- donalhunt 4y agoI think the lesson is "stop asking for permission and just do want is right". It's rare that a manager needs to approve a PR - would be a culture smell for me in an org.
- xahrepap 4y agoThe PayPal forgot password form had this bug just a couple years ago. I changed my password to a generated one. And it was too long. But it didn’t tell me. Just silently truncated. I used the password reset to change it. This time I used a pretty short password I could type (to rule out a weird copy-paste bug or something). Logged in, went to the change password option and THAT page informed me there was a character limit.
- sshine 4y agoPassword character limits are important. They reveal that the back-end service probably doesn't hash the passwords, which is a good time to GTFO.
- Xylakant 4y agoI would consider setting a (high) limit for a password a good practice. No one wants an attacker to run a megabyte of password data through your slow password hash. It should be a limit that normal users never reach, but something like 100 chars seems entirely reasonable.
- BrandoElFollito 4y agoThe typical password managers allow you to generate up to ~120 characters, I would go for 500 just to be on the safe side.
- intuxikated 4y agoSome web frameworks have such limits built-in. Django for example has a limit of 4096 characters for password input, which should be more than enough for anyone, including people using long random-generated passwords from password managers
- afiori 4y agoThe reasonable thing to do is to prehash the user password on the client with a Unicode normalization and a SHA-512 pass. This way you can have strong input validation server side but also allow almost arbitrary inputs client side. PS: you likely could also salt the client side hashing and use bcrypt, but bcrypt has a quite short maximum length and I am not sure if it would provide significantly better security here.
- BrandoElFollito 4y agoThis is still the case with PeopleSoft (32 chars limitation, and truncation)
- danaris 4y agoThis was, at least a few years ago, the case with Blizzard's Battle.net passwords. I picked a nice secure passphrase, but had to cut it off mid-word because of this truncation. (I think the behavior was for it simply to take the first 16 characters of whatever you typed in the password field, so typing the full passphrase didn't fail, but I wasn't confident that that would remain true in all cases, so I made a habit of only typing the first 16 chars.)
- epicalex 4y agoI believe the British Airways site still does something similar to this, or it did until very recently if it's been fixed. Add a password that is too long, it gets truncated and the truncated version saved with no warning or error. It took me several password reset attempts to realise what was going on, as my literally just set and password manager-saved password didn't work. I think in BA's case the password input also had a character limit on it, which is ultimately how I realised what was happening, even though there was no info anywhere that such a limit existed.