Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-15-2005, 10:06 PM
|
#1
|
Member
Registered: Jun 2005
Posts: 542
Rep:
|
MD5 Collision Source Code Released
|
|
|
11-20-2005, 11:53 PM
|
#2
|
Senior Member
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549
Rep:
|
According to what I've read it doesn't, in practice, make it any easier or faster to reverse (ie. crack) password hashes such as are used in Linux's /etc/shadow. Still it'd be good to see distros getting away from it as a default ASAP and moving to something like SHA-256.
|
|
|
11-21-2005, 01:22 AM
|
#3
|
Senior Member
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545
Rep:
|
Quote:
According to what I've read it doesn't, in practice, make it any easier or faster to reverse (ie. crack) password hashes
|
You still can't reverse a hash, that remains impossible. All this does is generate a string that will generate the same hash as another string, at least that's my understanding.
|
|
|
11-21-2005, 04:51 AM
|
#4
|
Senior Member
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549
Rep:
|
Its not impossible - it only takes a few days or hours with a modern computer to reverse an MD5 hash, and that was regardless of the recent collision discoveries. You'd hope with SHA-256 or something like that it'd be at least impractical to reverse it - ie. it'd take years or centuries or more.
Quote:
All this does is generate a string that will generate the same hash as another string, at least that's my understanding.
|
Yeah that's the impression I got as well. It's a real danger because it means that you can generate, for example, a trojaned ISO file that has the same MD5 sum as the real one. 
|
|
|
11-21-2005, 05:11 PM
|
#5
|
Member
Registered: Jun 2005
Posts: 542
Original Poster
Rep:
|
(the slashdot post has very misleading information)
What the algorithm does is not reverse a hash, not even (still) finding M2 such that H(M1) = X = H(M2), but finding both M1 and M2, the so-called birthday attack. A hash is theoretically secure if the birthday attack is approached by brute-force, but now there's an algorithm to do so.
I still don't know how much it affects shadow hashes. Salts only protects us from rainbow tables (that is, a collection of hashes of known passwords). Fortunately, recent distros have crypt-blowfish. You may configure it with /etc/login.conf. Just add / change the line to: ":passwd_format=blf:\"
Last edited by primo; 11-21-2005 at 06:49 PM.
|
|
|
11-21-2005, 06:10 PM
|
#6
|
Senior Member
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549
Rep:
|
Quote:
You may configure it with /etc/login.conf. Just add / change the line to: " asswd_format=blf:\"
|
What distro is that on? I've just had a look on both Mandriva2006 and Centos4 and couldn't see anything like that. I think the blowfish stuff needs to be setup and some packages have it built in for it to work. Suse offers the option of blowfish passwords doesn't it?
|
|
|
11-21-2005, 06:52 PM
|
#7
|
Member
Registered: Jun 2005
Posts: 542
Original Poster
Rep:
|
Try with PAM in /etc/pam.d/system-auth and maybe /etc/libuser.conf
|
|
|
11-23-2005, 08:46 AM
|
#8
|
Member
Registered: Oct 2004
Location: Romania
Distribution: Ubuntu server, FreeBsd
Posts: 474
Rep:
|
Have you tried the C program for that published md5 weakness? Could you found out a md5 collision?
I couldn’t .... and I let it working for 2 days on a P3 1Gz processor...
|
|
|
All times are GMT -5. The time now is 02:50 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|