News for hackers. Stuff that matters.
Re:Twitch is hacked, and its source code leaked by tyingq on Wednesday October 06, 2021 @02:05PM (#28776233)
>Then I'm not sure what you can even do with those

Assume some end users used the same passwords on other, non-twitch accounts. That's what makes hacked passwords valuable, no matter where they came from.

Re:Twitch is hacked, and its source code leaked by twofornone on Wednesday October 06, 2021 @02:19PM (#28776371)
That's something I've wondered - do password hashes tend to be the same across platforms? Is everyone using the same hashing algorithm? Isn't this also what salting is for?

Never implemented auth myself.

Re:Twitch is hacked, and its source code leaked by tyingq on Wednesday October 06, 2021 @02:24PM (#28776433)
Yes, the hashes are (usually) different due to different algorithms and/or salts. But, if you've brute forced one by using good guesses, and know the email/userid for other sites, and the user used the same or a similar password...that doesn't matter.
Re:Twitch is hacked, and its source code leaked by franga2000 on Wednesday October 06, 2021 @02:36PM (#28776591)
If everyone did things the way they're supposed to then no, hashes should never be the same between platforms. Using the same algorithm is likely, but as you said, salting solves that.

But mistakes such as salting with just the username are sometimes made even by very large companies and in that case, hashes could be the same.

Re:Twitch is hacked, and its source code leaked by evandwight on Wednesday October 06, 2021 @02:55PM (#28776838)
Why does it matter if hashes are the same?

That only tells you the passwords are the same.

Re:Twitch is hacked, and its source code leaked by mindwok on Wednesday October 06, 2021 @03:37PM (#28777336)
If they are the same everywhere, you can precompute a huge database of hashes (called a rainbow table) and simply lookup the hash in the table when breaches occur to find the password. By salting, every provider who stores credentials has different hashes for the same inputs which makes the approach far less attractive at a large scale.
Re:Twitch is hacked, and its source code leaked by thaumasiotes on Wednesday October 06, 2021 @06:13PM (#28779152)
> If they are the same everywhere, you can precompute a huge database of hashes (called a rainbow table) and simply lookup the hash in the table when breaches occur to find the password.

You can do this anyway. But the space requirements of a rainbow table are so large that including an account's username in the password would make a rainbow table completely unfeasible.

Re:Twitch is hacked, and its source code leaked by thaumasiotes on Wednesday October 06, 2021 @06:16PM (#28779177)
It doesn't matter at all if one person's hashed password is identical across two of that person's accounts on two different websites. The identical hash will instantly let an attacker (with access to both hashes) know that this person shares the same password across two accounts. But that is of no value; the attacker is going to start by assuming that it's true anyway.

Salts are there to ensure that two accounts on the same website which have identical passwords nevertheless have different password hashes.

Re:Twitch is hacked, and its source code leaked by bduerst on Wednesday October 06, 2021 @02:23PM (#28776429)
In a perfect world, no, but lazily someone could skip salting and/or use common hashing functions. IIRC this was a problem at Sony not too long ago.
Re:Twitch is hacked, and its source code leaked by axpy906 on Wednesday October 06, 2021 @02:16PM (#28776329)
Pretty much this. If they gain one email/username password combination - they can use it elsewhere.
Re:Twitch is hacked, and its source code leaked by growt on Wednesday October 06, 2021 @03:06PM (#28776966)
If they are properly hashed and salted, they can not.
Re:Twitch is hacked, and its source code leaked by xorcist on Wednesday October 06, 2021 @03:27PM (#28777222)
The point here is that once you brute force the plaintext password, the same password might be used elsewhere.
Re:Twitch is hacked, and its source code leaked by mercurywells on Wednesday October 06, 2021 @04:54PM (#28778290)
What if you did something like hash(plaintext_pw+"twitchsalt") <browser> ---> <server> hash(browser_hash + db_salt)
Re:Twitch is hacked, and its source code leaked by growt on Wednesday October 06, 2021 @05:30PM (#28778717)
If I understand this right, the problem is "twitchsalt" has to be known so that you can generate the same hash for future logins. So it's just one iteration of hashing more for a brute force attempt (modern hashing algorithms already use multiple iterations of hashing to make brute forcing harder)
Re:Twitch is hacked, and its source code leaked by ocdtrekkie on Wednesday October 06, 2021 @05:25PM (#28778648)
Well, bear in mind, the hacker also has the exact code Twitch uses to salt it's hashes.
Re:Twitch is hacked, and its source code leaked by xorcist on Saturday October 09, 2021 @11:51AM (#28810888)
The browser_hash is now the password.
Re:Twitch is hacked, and its source code leaked by thaumasiotes on Wednesday October 06, 2021 @06:11PM (#28779133)
Password salting has nothing to do with password reuse.

Imagine two people have accounts on each of two websites:

             eBay           YouTube
   
   Alice     sunlight       bobrules
   
   Bob       bobrules       bobrules
A password reuse attack dumps the YouTube database, cracks Bob's password, and then accesses Bob's eBay account. The fix for this is that Bob should use different passwords on his different accounts. Hashing helps by making step 2 ("crack Bob's password") more difficult. Salting does not affect this attack in any way. Note that the attacker didn't bother to dump the eBay database.

The attack that salting protects against dumps the YouTube database, cracks Bob's password, and then accesses Alice's YouTube account.

Re:Twitch is hacked, and its source code leaked by growt on Thursday October 07, 2021 @03:36AM (#28783317)
"Salting does not affect this attack in any way." Yes it does. If you habe unsalted passwords you can just use a rainbow table to look passwords up.
Re:Twitch is hacked, and its source code leaked by thaumasiotes on Thursday October 07, 2021 @04:20AM (#28783545)
And that is not affected by salting. You can use a rainbow table to look passwords up whether or not those passwords are salted. There is zero conceptual connection between the two ideas.

Now, realistically, you can't use a rainbow table on passwords of any noticeable length, and a salt may push the password over the edge of that threshold. If that's really what you want... enforce a minimum password length.

Re:Twitch is hacked, and its source code leaked by growt on Thursday October 07, 2021 @05:06AM (#28783892)
"Use of a key derivation that employs a salt makes this attack infeasible." https://en.wikipedia.org/wiki/Rainbow_table

"Salts defend against attacks that use precomputed tables (e.g. rainbow tables)" https://en.wikipedia.org/wiki/Salt_(cryptography)

Re:Twitch is hacked, and its source code leaked by tyingq on Thursday October 07, 2021 @05:29PM (#28792329)
Salts do nothing for people with predictable passwords though. The salt is in the dump, so I can hash known plaintext with the algorithm and the dumped data.

Even if I can only hash a million a day, if your password is one of the top million most popular, and I have a good list, I'll have your password in a day. And if you re-used it...

Salts do make naïve brute-force, all-possible-strings approaches useless, yes.

Re:Twitch is hacked, and its source code leaked by growt on Friday October 08, 2021 @03:29AM (#28796629)
Yes, but nothing will make predictable passwords safe (at least when you have the hash). Enforcing password guidelines helps a bit.
Re:Twitch is hacked, and its source code leaked by skeeks on Wednesday October 06, 2021 @03:11PM (#28777030)
I would be very deeply concerned if Twitch, a multi-billion dollar company owned by Amazon, does not properly hash and salt the passwords of its users.
Re:Twitch is hacked, and its source code leaked by isbvhodnvemrwvn on Wednesday October 06, 2021 @03:43PM (#28777441)
You don't brute force it, you find the password for accounts with the same e-mail in leaks from other sites and try only those.
Re:Twitch is hacked, and its source code leaked by tyingq on Wednesday October 06, 2021 @05:42PM (#28778867)
You can still run those "top billion popular password" lists against properly salted/hashed passwords.