News for hackers. Stuff that matters.
Re:fatcache - Memcache on SSD by pornel on Monday February 11, 2013 @05:12PM (#5203669)
> False positives from SHA-1 hash collisions are detected after object retrieval from the disk by comparison with the requested key

Is that check really necessary?

To have 1 in a trillion chance of having accidental SHA-1 collision they'd have to store 1.7*10^18 keys, and mere key index of that would require 54000 petabytes of RAM.

Re:fatcache - Memcache on SSD by gus_massa on Monday February 11, 2013 @06:41PM (#5204188)
Comparing the sha-1 is much faster than reading the ssd, so it's almost free.

Accidental sha-1 collision is probably not a problem, but in a few years [1] it will be possible to crate sha-1 collisions and use that as an attack. It looks difficult, but supposes that with the correct string an attacker can retrieve the cached information of another user, for example sha1("joedoe:creditcard")=sha1("atacker:hc!?!=u?ee&f%g#jo").

I don't know if they are using randomization, because the collision can be used (in a few years) as a DOS atack [2]

[1] http://www.schneier.com/blog/archives/2012/10/when_will_we_s...

[2] http://www.gossamer-threads.com/lists/python/dev/959026

Re:fatcache - Memcache on SSD by speakr on Monday February 11, 2013 @07:12PM (#5204344)
Your example describes a preimage attack on SHA-1, not a collision attack. Even with a working collision attack you are probably still far away from taking "some.other.input" and creating a sha1("some.other.input") = sha1("johndoe:creditcard").

For instance MD5 collisions are really easy to create but for preimage attacks on MD5 there is still no better approach than just doing brute force.

Re:fatcache - Memcache on SSD by shin_lao on Tuesday February 12, 2013 @08:27AM (#5206605)
Smells like a bad idea, I agree. You have more chances to have a hardware error or system error that will cause your branch to be incorrectly executed than having an accidental SHA-1 collision. And if you're worried about SHA-1 collisions, use SHA-2 or even SHA-3.
Re:fatcache - Memcache on SSD by politician on Monday February 11, 2013 @06:31PM (#5204138)
What are the odds of creating an intentional SHA-1 collision in a chosen plaintext situation?
Re:fatcache - Memcache on SSD by Tuna-Fish on Tuesday February 12, 2013 @04:29AM (#5205936)
Still hasn't been done.
Re:fatcache - Memcache on SSD by gcr on Monday February 11, 2013 @06:30PM (#5204132)
Oversights now will ensure that we can't use this system when we have the capability of storing that many petabytes in RAM.

By then, maybe the founders of this system won't even be alive.