Hash collision security issue (now public)
Hello all, A paper (well, presentation) has been published highlighting security problems with the hashing algorithm (exploiting collisions) in many programming languages Python included: http://events.ccc.de/congress/2011/Fahrplan/attachments/2007_28C3_Effective_... Although it's a security issue I'm posting it here because it is now public and seems important. The issue they report can cause (for example) handling an http post to consume horrible amounts of cpu. For Python the figures they quoted: reasonable-sized attack strings only for 32 bits Plone has max. POST size of 1 MB 7 minutes of CPU usage for a 1 MB request ~20 kbits/s → keep one Core Duo core busy This was apparently reported to the security list, but hasn't been responded to beyond an acknowledgement on November 24th (the original report didn't make it onto the security list because it was held in a moderation queue). The same vulnerability was reported against various languages and web frameworks, and is already fixed in some of them. Their recommended fix is to randomize the hash function. All the best, Michael -- http://www.voidspace.org.uk/ May you do good and not evil May you find forgiveness for yourself and forgive others May you share freely, never taking more than you give. -- the sqlite blessing http://www.sqlite.org/different.html
participants (43)
-
Alex Gaynor
-
Alexey Borzenkov
-
Anders J. Munch
-
Andrew Bennetts
-
Antoine Pitrou
-
Armin Ronacher
-
Barry Warsaw
-
Benjamin Peterson
-
Bill Janssen
-
Brian Curtin
-
Christian Heimes
-
David Malcolm
-
Eric Snow
-
Ethan Furman
-
Fred Drake
-
Georg Brandl
-
geremy condra
-
Glenn Linderman
-
Guido van Rossum
-
Hynek Schlawack
-
Jeffrey Yasskin
-
Jesse Noller
-
M.-A. Lemburg
-
Maciej Fijalkowski
-
Mark Shannon
-
martin@v.loewis.de
-
Michael Foord
-
Ned Batchelder
-
Nick Coghlan
-
Paul McMillan
-
Paul Moore
-
PJ Eby
-
Raymond Hettinger
-
Serhiy Storchaka
-
Stefan Behnel
-
Stephen J. Turnbull
-
Steven D'Aprano
-
Terry Reedy
-
Tim Delaney
-
Toshio Kuratomi
-
Tres Seaver
-
Victor Stinner
-
Victor Stinner