> https://man.openbsd.org/crypt > So if the userid is 18 digits, the username is 52 characters, and the delimiters are 1 character each, then the total length of the non-secret prefix is 72, and bcrypt will drop the secret suffix. You aren’t supposed to put more than the salt and the password into trad unix password hashes.
> You aren’t supposed to put more than the salt and the password into trad unix password hashes. To be fair, they're basically salting with the userid and username. Still unorthodox to be sure.
Okta – Username Above 52 Characters Security Advisory
11–20 of 78 posts
Re: Okta – Username Above 52 Characters Security Advisory
#12Earlier quoted context omitted.
Potentially ignorant question, why would they go for bcrypt over say HKDF[1], especially since they mix in public data like the username and potentially userid? [1]: https://datatracker.ietf.org/doc/html/rfc5869
Why do we need a KDF for a cache key? Won't a normal cryptographic hash function (or its HMAC variant) suffice?
Re: Okta – Username Above 52 Characters Security Advisory
#13> https://man.openbsd.org/crypt > So if the userid is 18 digits, the username is 52 characters, and the delimiters are 1 character each, then the total length of the non-secret prefix is 72, and bcrypt will drop the secret suffix. You aren’t supposed to put more than the salt and the password into trad unix password hashes.
I mean yes overall, but why would put delimeters into hash? you just smash bytes together.
Username: x@example.xyz.com Password: /!@#$% Concatenated: x@example.xyz.com/!@#$%
Re: Okta – Username Above 52 Characters Security Advisory
#14Earlier quoted context omitted.
Why do we need a KDF for a cache key? Won't a normal cryptographic hash function (or its HMAC variant) suffice?
If the cache gets leaked, you don’t want any miscreants to be able to bruteforce passwords from the cache keys.
Re: Okta – Username Above 52 Characters Security Advisory
#15Earlier quoted context omitted.
> You aren’t supposed to put more than the salt and the password into trad unix password hashes. To be fair, they're basically salting with the userid and username. Still unorthodox to be sure.
The salt is a separate input to the algorithm that is used differently and usually more restricted than the password.
Re: Okta – Username Above 52 Characters Security Advisory
#16Re: Okta – Username Above 52 Characters Security Advisory
#17I'm really sick of companies disclosing this shit late Friday afternoon. Go fuck yourselves. Sincerely, Everyone in the industry
It's the second time they do that in a few weeks too, _and_ it's not on their security page [1] which promises transparency. [1] https://trust.okta.com/
Re: Okta – Username Above 52 Characters Security Advisory
#18Earlier quoted context omitted.
If the cache gets leaked, you don’t want any miscreants to be able to bruteforce passwords from the cache keys.
Do we need to put the password in the cache key?
At least that's my immediate thought, could be wrong.
Re: Okta – Username Above 52 Characters Security Advisory
#19Earlier quoted context omitted.
> You aren’t supposed to put more than the salt and the password into trad unix password hashes. To be fair, they're basically salting with the userid and username. Still unorthodox to be sure.
The salt is a separate input to the algorithm that is used differently and usually more restricted than the password.
Though you can salt a hash using a function that does not take a distinct salt input by just concatenating the salt with the value. This is a relatively common practice, but of course only works if there is no truncation of the salted input.
Re: Okta – Username Above 52 Characters Security Advisory
#20> https://man.openbsd.org/crypt > So if the userid is 18 digits, the username is 52 characters, and the delimiters are 1 character each, then the total length of the non-secret prefix is 72, and bcrypt will drop the secret suffix. You aren’t supposed to put more than the salt and the password into trad unix password hashes.