Re:Megafail
by homedog on Wednesday January 23, 2013 @12:33AM
(#5101587)
Basically, they use CBC-MAC to verify the integrity of their script sources. This is pretty bad because a MAC is not resistant to collisions, and given the original key, it's trivial to generate alternate data that gives the same output. A better approach would be an HMAC, using something like SHA1. Doing so makes it much more difficult to perform this type of attack.
[ Parent
| on HN ]
Wait, what? An HMAC is a MAC -- just one that happens to be constructed from a hash function in a particular way.
This is just nitpicking. I did not say HMACs were not MACs anywhere in my comment.