News for hackers. Stuff that matters.
Re:Sudo Replacement by doublepg23 on Friday January 20, 2023 @07:46PM (#34462465)
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.
Re:Sudo Replacement by aidenn0 on Friday January 20, 2023 @08:44PM (#34462893)
I 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...

Re:Sudo Replacement by alisonatwork on Friday January 20, 2023 @09:01PM (#34463015)
One 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.
Re:Sudo Replacement by cdaringe on Friday January 20, 2023 @09:18PM (#34463157)
Incredible. Please tell us who did this, not to shame them, bit to help us!
Re:Sudo Replacement by alisonatwork on Friday January 20, 2023 @10:17PM (#34463517)
It 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.
Re:Sudo Replacement by skim_milk on Saturday January 21, 2023 @12:28AM (#34464150)
I 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.

Re:Sudo Replacement by sshine on Saturday January 21, 2023 @02:16AM (#34464562)
I 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!

Re:Sudo Replacement by donalhunt on Saturday January 21, 2023 @07:15AM (#34465901)
I 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.
Re:Sudo Replacement by xahrepap on Friday January 20, 2023 @10:55PM (#34463713)
The 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.

Re:Sudo Replacement by sshine on Saturday January 21, 2023 @02:13AM (#34464546)
Password character limits are important.

They reveal that the back-end service probably doesn't hash the passwords, which is a good time to GTFO.

Re:Sudo Replacement by Xylakant on Saturday January 21, 2023 @03:30AM (#34464871)
I 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.
Re:Sudo Replacement by BrandoElFollito on Saturday January 21, 2023 @08:44AM (#34466355)
The typical password managers allow you to generate up to ~120 characters, I would go for 500 just to be on the safe side.
Re:Sudo Replacement by intuxikated on Saturday January 21, 2023 @08:52AM (#34466391)
Some 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
Re:Sudo Replacement by afiori on Saturday January 21, 2023 @03:06PM (#34469841)
The 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.

Re:Sudo Replacement by BrandoElFollito on Saturday January 21, 2023 @08:43AM (#34466350)
My bank requires a password of exactly 8 digits. In 2023.
Re:Sudo Replacement by Haegin on Saturday January 21, 2023 @05:12PM (#34471188)
A bank I used until about 2018 (no idea if they've fixed this yet - I left) had an exactly 6 character password, and when you used telephone banking it just needed the 6 digits that corresponded to that word. Those 6 numbers also worked online, so at best they were turning all passwords into numbers before hashing them, ensuring there are less than 900000 different possible passwords, which was trivially easy to brute force in 2015, nevermind today.
Re:Sudo Replacement by BrandoElFollito on Sunday January 22, 2023 @07:47AM (#34476858)
Bruteforcing should not work as the attempts are either throttled, or lock the account. Provided that they are in place, otherwise the account is wide open.

This i what happens with the 4 digits of a CC PIN and the 3 attempts before the card switches into PUK mode.

Re:Sudo Replacement by WhyNotHugo on Sunday January 22, 2023 @08:10AM (#34477012)
I know of banks which, in 2023, requires exactly 8 digits, the first four being numbers, the other four later letters. No digit can be repeated. Also no consecutive numbers.

It's like they're deliberately trying to reduce the pool of valid inputs.

Re:Sudo Replacement by BrandoElFollito on Sunday January 22, 2023 @10:30AM (#34478276)
Not only this, but they also have a sadistic trait against their users. My password on another site (a bank too, IIRC) requires the password not to have my email username and consecutive, or repeated letters. My email username is "u" (as is [email protected]) and I usually generate a 50 or 70 characters long password. There is usually a "u" (they check the case, too). And come characters are repeated in the whole password.

So I reduce the length, significantly, sometimes to 8 characters.

The people who make rules in security in some areas are complete idiots.

Re:Sudo Replacement by BrandoElFollito on Saturday January 21, 2023 @08:42AM (#34466342)
This is still the case with PeopleSoft (32 chars limitation, and truncation)
Re:Sudo Replacement by danaris on Saturday January 21, 2023 @12:26PM (#34468070)
This 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.)
Re:Sudo Replacement by epicalex on Tuesday January 24, 2023 @02:45PM (#34509119)
I 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.