News for hackers. Stuff that matters.
Re:Don't Fuck with Paste by _0ffh on Friday March 08, 2024 @03:45AM (#39639176)
> Even worse, there are some that restrict what kind of special character you can use

Even worse, there are some that restrict special characters, but don't tell you which!

Now you've got to go trial and error to find out which of the special characters in your password is not acceptable to that precious §("/$& website!

Re:Don't Fuck with Paste by piyush_soni on Friday March 08, 2024 @04:10AM (#39639326)
Even worse, when on top of all these they add an arbitrary length requirement: It can't be less than 8 letters OR more than 12. :|
Re:Don't Fuck with Paste by oneeyedpigeon on Friday March 08, 2024 @04:17AM (#39639369)
"look, just tell me what you want my password to goddam be, and I'll go with that!"
Re:Don't Fuck with Paste by dwighttk on Friday March 08, 2024 @07:16AM (#39640367)
“Sure but you can’t copy it out”
Re:Don't Fuck with Paste by tracker1 on Friday March 08, 2024 @04:41AM (#39639499)
That one irks me too... When I built an auth/rbac app previously I did make Max length configurable and it would display a night if set. I set a hidden hard limit to 1k only to reduce attack surfaces that would only display and error if exceeded.

Default was a min-length of 15 as the only requirement with the default hint of "try using a short sentence"

I also had optional use of zxcvbn and haveibeenpwned checks during new passphrase creation.

I really wanted to open source the application but couldn't get approval to do so.

It was a pretty nice little simple auth application that issued RSA signed JWT to configured applications. It was interested into a few internal apps as well as for clients that didn't have something like azure ad, okta, etc. where we wrote bridge apps for auth.

If I had my configuration doc, I'd probably recreate it exactly, but with a Rust backend with HTMX instead of C#+react.

The date store used SQLite as a KV store, with simple methods for access that allowed an exception later for the values. Also wrote support for PostgreSQL and MS-SQL so they could be used where available.

Spent a lot of time on same defaults, hashing and encryption along with required configuration options for a few clients.

Aside: more devs really need to better understand public/private key generation and usage... Like not using the same keys for different environments.

Re:Don't Fuck with Paste by rmetzler on Friday March 08, 2024 @04:49AM (#39639543)
Don’t worry, all of this is necessary because the passwords are stored in plain text in the database.
Re:Don't Fuck with Paste by cdr on Friday March 08, 2024 @05:02AM (#39639602)
Even worse, some will simply arbitrarily silently truncate the password. But not everywhere! The sign up page might silently truncate and then the actual login page might not.
Re:Don't Fuck with Paste by piyush_soni on Friday March 08, 2024 @05:13AM (#39639667)
Wow. That would be a wonderful game of treasure hunt. Fortunately I've not come across that so far :D
Re:Don't Fuck with Paste by _0ffh on Friday March 08, 2024 @06:41AM (#39640154)
What happened to me once is that a long-time password of mine got truncated as the website lowered it's maximum password length, and the login page didn't truncate, so my full correct password suddenly stopped working. The pain.
Re:Don't Fuck with Paste by erhaetherth on Saturday March 09, 2024 @04:43PM (#39654981)
Pretty sure Microsoft did this at some point. Maybe for Hotmail.
Re:Don't Fuck with Paste by anshorei on Friday March 08, 2024 @05:13AM (#39639666)
Even worse, when the password has an arbitrary length requirement of 20, but the site doesn't tell you and just cuts of any trailing characters exceeding the requirement during account creation.

You have no idea how long it took me to figure that one out.

Re:Don't Fuck with Paste by thedanbob on Friday March 08, 2024 @06:57AM (#39640257)
Slightly easier to figure out but no less annoying is when the maxLength attributes on the password fields for the two forms (create account and login) are different.
Re:Don't Fuck with Paste by tomsmeding on Friday March 08, 2024 @05:58AM (#39639918)
That sounds suspiciously like a VARCHAR(20) somewhere...
Re:Don't Fuck with Paste by lapcat on Friday March 08, 2024 @06:59AM (#39640270)
Several comments mention passwords getting silently truncated by input maxlength. FWIW my extension provides a visible warning when this occurs: https://underpassapp.com/StopTheMadness/
Re:Don't Fuck with Paste by a_vanderbilt on Friday March 08, 2024 @09:37AM (#39641414)
I love this extension so much. Nothing satisfies me more than forcing stupid websites into cooperation.
Re:Don't Fuck with Paste by encom on Friday March 08, 2024 @10:05AM (#39641657)
Proprietary, mac only, app store-ware. More madness.
Re:Don't Fuck with Paste by lapcat on Friday March 08, 2024 @10:40AM (#39642059)
> mac only

Also iOS.

Re:Don't Fuck with Paste by 0x0203 on Friday March 08, 2024 @07:46AM (#39640550)
This all reminds me of the password game: https://neal.fun/password-game/ I'd call it amusing if it weren't so often real.

For a more entertaining take, I really enjoy this use of it against scammers and thieves: https://www.youtube.com/watch?v=knhQ2f8anT8

Re:Don't Fuck with Paste by zamalek on Friday March 08, 2024 @05:45AM (#39639844)
Even worse are "secure answers." Aka osint. I just have my password manager create passwords for those too.
Re:Don't Fuck with Paste by Mordisquitos on Friday March 08, 2024 @10:05AM (#39641656)
Are you referring to 'security questions' where the user must choose from a predetermined list? A predetermined list which is often questions whose answers may be know to close attackers (first school), not applicable to everyone (name of first pet), or anglocentrically blind to worldwide cultural diversity (mother's maiden name). I hate that so much.

Providing a list is fine as long as they let the user type their own question if they want to. I cannot trust the security of a single one of their crap questions if I were to answer them honestly. However, if they let me type my own question, I can absolutely guarantee it.

Re:Don't Fuck with Paste by zamalek on Friday March 08, 2024 @11:09AM (#39642418)
Yeah those. I choose them in order, no matter the subject, and put a password manager passphrase in.
Re:Don't Fuck with Paste by tiltowait on Friday March 08, 2024 @11:12AM (#39642468)
The worst I've seen have uncommunicated password length maximums—but don't error when you exceed them. Instead, they just truncate your password, but only on creation. When authenticating, they don't truncate, so your password you just made with a password manager is "wrong".

Spotify did/does this. Made canceling my free trial really tricky, because I needed to log in again to do so.

Re:Don't Fuck with Paste by BrandoElFollito on Saturday March 09, 2024 @06:18PM (#39655436)
SWIFT did it too. And a few other sites I forgot.

I added this check to my "why the fuck this password did not work" list of idiocies produced by incompetent developers