News for hackers. Stuff that matters.
Re:Okta – Username Above 52 Characters Security Advisory by a-dub on Friday November 01, 2024 @10:26PM (#42023620)
why would someone in 2024 reach for bcrypt for building a secure hash key?
Re:Okta – Username Above 52 Characters Security Advisory by EasyMark on Friday November 01, 2024 @11:24PM (#42023836)
okta has been around longer than a year and momentum keeps a lot of companies from changing anything until catastrophe strikes
Re:Okta – Username Above 52 Characters Security Advisory by pquerna on Saturday November 02, 2024 @12:39AM (#42024114)
per <https://trust.okta.com/security-advisories/okta-ad-ldap-dele...>

2024-07-23 - Vulnerability introduced as part of a standard Okta release

This issue is not an "okta is old" issue. this was new code written in 2024 that used a password hashing function from 1999 as a cache key.

Re:Okta – Username Above 52 Characters Security Advisory by crest on Saturday November 02, 2024 @04:25PM (#42029000)
Bcrypt is still perfectly usable for its original purpose. They just picked/wrote a bad implementation that silently truncated inputs longer than the maximum input length. Would you also ask why they picked AES (a cipher from 1998) when the error was with the user (e.g. picking fixed/too short key)?
Re:Okta – Username Above 52 Characters Security Advisory by heliosyne on Saturday November 02, 2024 @01:43AM (#42024289)
Because bcrypt is still viable. Its cost factor is easily scaled to commodity performance, keeping the attack cost high.

The main attack vector these days is GPU-based compute. There, SHA* algorithms are particularly weak because they can be so efficiently computed. Unlike SHA algorithms, bcrypt generates high memory contention, even on modern GPUs.

Add in the constraint of broad support, low "honest use" cost, and maturity (extensive hostile cryptanalysis), bcrypt stays as one of the better choices even 25 year later.

That said, bcrypt's main limitation is it has a low memory-size cost. There are some newer algorithms that improve on bcrypt by increasing the memory-size cost to more than is practical even for FPGA attacks.

More importantly, bcrypt didn't actually fail here. The vulnerability happened because okta didn't use it correctly. All crypto is insecure if you use it wrong enough.

Re:Okta – Username Above 52 Characters Security Advisory by a-dub on Saturday November 02, 2024 @02:52PM (#42028348)
after all of the headaches in the late 90s/early 2000s with truncating password hash functions, i'm just a little surprised that this sort of thing would still be an issue.

i understand performance concerns and design trade offs, but i would expect a secure hashing function in 2024 to do proper message scheduling and compression or return errors when truncations are happening.

i suppose 90s culture is hip again these days, so maybe this does make sense?

Re:Okta – Username Above 52 Characters Security Advisory by mkj on Saturday November 02, 2024 @04:05AM (#42024817)
It seemed the best option I could find for a rp2040 microcontroller when I went looking recently? Perhaps not for okta...