Welcome to Dream.In.Code
Getting PHP Help is Easy!

Join 132,463 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 1,390 people online right now. Registration is fast and FREE... Join Now!




Sha-1 Vulns

 
Reply to this topicStart new topic

Sha-1 Vulns, Why should we care?

cyberscribe
post 16 Feb, 2005 - 07:19 PM
Post #1


humble.genius

Group Icon
Joined: 5 May, 2002
Posts: 1,062



Thanked 2 times

Dream Kudos: 154
My Contributions


Bruce Scheiner repoprts that a reputable team in China appears to have found significant collision problems with the SHA-1 algorithm. Of course, this is just as I revised my old article on PHP Cryptography to include a footnote on the MD5 section that SHA-1 is now the preferred hashing algorithm for security purposes. Such is life.

The truth is that while collisions may be bad news for verifying the absolute pristine uniqueness of data via a signature, many of the ways that SHA-1 and even MD5 are used in the PHP world are unlikely to be seriously affected by these vulnerabilities. So SHA-1 is not bullet proof. Does that really mean that someone shy of a postgraduate student in mathematics is going to be able to devise a different set of data that produces the same hash - let alone a different set of data that actually does something malicious in the context of the running program? Give me some statistics on that likelihood, and my sense is that the server housing the code is much more likely to be struck by lightning instead.

And then, what about using SHA-1 and MD5 signatures in combination, like many sites do to verify the veracity of downloads? How likely is it that someone will sneak in a malicious binary whose hashes collide with both signatures? How much more likely is it that the data that satisfies both hashes (if it exists) is simply garbage that won't execute?

I could be wrong or crazy here, but I think it is very important to put security alerts in context. Saying SHA-1 is "broken" doesn't help programmers decide what steps, if any, they need to take with existing applications that use SHA-1. I'm sure it is a valid statement in mathematics and cryptography -- but what should we coders do with the information? Too soon to tell, I'm afraid -- the paper is not out yet.

http://www.robertpeake.com/archives/37-Hashing-Hashed.html
User is offlineProfile CardPM

Go to the top of the page

Amadeus
post 19 Feb, 2005 - 08:43 AM
Post #2


g++ -o drink whiskey.cpp

Group Icon
Joined: 12 Jul, 2002
Posts: 12,173



Thanked 33 times

Dream Kudos: 25
My Contributions


Updates from Scheiner's blog
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/22/08 01:28PM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month