News for hackers. Stuff that matters.

Tell HN: GitHub will reset passwords June 24, 2020

When I logged into an old github account I recieved this message:

The password you provided is weak and can be easily guessed. To increase your security, you must update your password. After June 24, 2020 we will automatically reset your password.

-----

It's only for insecure passwords I guess but hopefully if someone needs to see this they will

( 6 comments | 5 points | on HN )
Re:Tell HN: GitHub will reset passwords June 24, 2020 by rpg3 on Monday May 25, 2020 @07:18PM (#23305895)
I had the same message last month, except my deadline was April 24th. Anyone that's affected will see a message when they log in, but it will actually only reset until you try to log in after that date.

For me, I logged in a few days after my deadline and instead of showing me the warning it just forced me to reset my password. I'm assuming they're doing it on a rolling basis of some sort.

Re:Tell HN: GitHub will reset passwords June 24, 2020 by pvsukale3 on Monday May 25, 2020 @07:20PM (#23305906)
Just out of curiosity: how do they understand password is weak if it is hashed?
Re:Tell HN: GitHub will reset passwords June 24, 2020 by akerl_ on Monday May 25, 2020 @08:00PM (#23306136)
The standard way is, as is pointed out in a parallel comment, checking when the user logs in (since they have to send their unhashed password to the server as part of logging in).

Another approach is to use things like https://haveibeenpwned.com/ to detect users whose credentials are compromised and alert them.

Another more involved approach is to actually try to find collisions with user passwords (using either common wordlists, generated wordlists, or straight brute force) and then notifying users if they find a hit.

Re:Tell HN: GitHub will reset passwords June 24, 2020 by mtmail on Monday May 25, 2020 @07:25PM (#23305945)
OP wrote "When I logged into" so presumably at this point the website can check the password against a password strength/complexity algorithm or top 1000 lists. Ther user had to change the password immediately. Only if you try to skip the step it will auto-reset.
Re:Tell HN: GitHub will reset passwords June 24, 2020 by jhayward on Monday May 25, 2020 @07:25PM (#23305939)
I don't know what method GH is using, but the standard attack on hashed passwords is the use of rainbow tables[1]

[1] https://en.wikipedia.org/wiki/Rainbow_table

Re:Tell HN: GitHub will reset passwords June 24, 2020 by gus_massa on Monday May 25, 2020 @07:41PM (#23306028)
Most modern hash algorithm like bcrypt or scrypt add automatically a salt to prevent the use of rainbow tables.