News for hackers. Stuff that matters.
Re:Can Snowden be targeted using the Adobe breach? by judofyr on Saturday November 02, 2013 @07:28AM (#6658876)
This is a common misconception, but a "global salt" isn't actually a salt. Not sure what a "basic salt" is though.

> A new salt is randomly generated for each password. In a typical setting, the salt and the password are concatenated and processed with a cryptographic hash function, and the resulting output (but not the original password) is stored with the salt in a database.

http://en.wikipedia.org/wiki/Salt_%28cryptography%29

Re:Can Snowden be targeted using the Adobe breach? by aw3c2 on Saturday November 02, 2013 @07:34AM (#6658886)
Ah, I did not know that. And I wrote some password hashing with a global salt myself. So I stand by my comment with "one laughing and one crying eye". I thought salts were mostly against precomputed rainbow tables for specific hash functions, but of course if my hashes are valuable enough, a global salt makes cracking them easier than if I used a random/unique one per hash.
Re:Can Snowden be targeted using the Adobe breach? by sillysaurus2 on Saturday November 02, 2013 @08:11AM (#6658955)
This is why programmers should stop trying to write their own password systems.
Re:Can Snowden be targeted using the Adobe breach? by amenod on Saturday November 02, 2013 @09:38AM (#6659131)
To be exact, programmers should stop using their own password systems (unless - well, let's not go there :).

Writing them is actually an excellent exercise, and humbling one too. Especially if you show your code to some skilled hacker / security expert.

Re:Can Snowden be targeted using the Adobe breach? by jtheory on Sunday November 03, 2013 @10:54AM (#6663555)
From what I understand rainbow tables are not really used anymore -- they were useful when it took longer to calculate hashes, but nowadays you just need a decent graphics card to calculate a few billion hashes (MD5 or SHA1) PER SECOND.

Per-hash salts don't really slow that down at all, unfortunately.

Short-version: don't use the hash algorithms that are designed to be fast for protecting sensitive data; use something solid with a work factor instead.

Re:Can Snowden be targeted using the Adobe breach? by jwilliams on Saturday November 02, 2013 @07:55AM (#6658926)
Pepper is the more common term I've seen for a global salt - although I've never seen it implemented independently of a salt.
Re:Can Snowden be targeted using the Adobe breach? by oliwary on Saturday November 02, 2013 @09:25AM (#6659105)
Isn't there value in having a long global salt to make bruteforcing harder in case the database but not the server code is compromised, though?
Re:Can Snowden be targeted using the Adobe breach? by judofyr on Saturday November 02, 2013 @09:31AM (#6659118)
Think about it like this: Using a SHA256 + global salt is nothing different from using SHA256 with a different set of constants/initial values.
Re:Can Snowden be targeted using the Adobe breach? by oliwary on Saturday November 02, 2013 @12:36PM (#6659708)
True, but if the global salt is secret, it'll at least make it slightly harder for the attacker to figure out the password.

For example, if the password is "a" and an unique salt is available in the database, it'll be trivial to brute force. If the password function is something like this, however: sha256("longsalt" + password + salt) the attacker will first have to figure out longsalt which can be slow if it's long.

Or am I completely mistaken?

Re:Can Snowden be targeted using the Adobe breach? by pmjordan on Saturday November 02, 2013 @03:30PM (#6660390)
If you can steal the password hash database, stealing the shared "salt" is usually going to be trivial. Second, lots of hash functions are vulnerable to length extension attacks, so even if extracting the shared secret directly is hard, you can probably exploit the system to see what an empty password hashes to and then use that as a basis for brute-forcing the rest.

In other words: there is a reason why security experts and cryptographers recommend the password storage mechanisms they do.

Re:Can Snowden be targeted using the Adobe breach? by oliwary on Saturday November 02, 2013 @05:45PM (#6660953)
I see, that makes sense. Thanks for explaining!
Re:Can Snowden be targeted using the Adobe breach? by Buge on Saturday November 02, 2013 @03:28PM (#6660378)
But if hackers can break in and steal your database, they'll probably also be able to steal the global salt.
Re:Can Snowden be targeted using the Adobe breach? by sorenbs on Saturday November 02, 2013 @03:49PM (#6660468)
The recent MongoHQ breach is a counter example.