Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > lucky.openbsd.tech

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-22-2008, 12:40 PM
Marc Espie
 
Posts: n/a
Default Re: Question related to the Hash-Algorithms used for the Ports

On Fri, Aug 25, 2006 at 09:31:59PM +0200, Dries Schellekens wrote:
> Marc Bevand wrote:
>
> >| Finding a collision for both MD5 and SHA-1 at the same time is
> >| completely improbable.
> >
> >Finding a collision for SHA-1 was also deemed completely improbable ten
> >years ago. However nowadays the attack seems very probable.
> >
> >My point is, finding a collision for both MD5 and SHA-1 will eventually
> >get accomplished some day. If it was really considered improbable, then
> >I suggest cryptographers stop researching secure hashing algorithms and
> >start using the hash function H(x) = MD5(x) . SHA1(x), where '.' is the
> >concatenation operator.

>
> The performance of this hash function will be poor.
>
> All this is irrelevant for the application we are looking at, namely
> OpenBSD ports. As kjell pointed out, you need to perform a second
> preimage attack and not a collision attack. Please read
> http://www.ecrypt.eu.org/documents/S...H_STMT-1.1.pdf to
> clearly understand the difference.
>
> All the attacks that have been found so far are collision attacks, not
> second preimage attacks. Therefore, these attacks mainly have
> implications on digital signatures.
>
> If an attacker succeeds in finding a second preimage for a certain hash
> value (of a tarball you want to download), he will also need to
> construct a corrupted compressed tarball with the second preimage. Not
> so simple either.


Actually, collision attacks are slightly relevant in some scenarios.

Just think about it. The known collision attacks for SHA1 rely on being
able to set about 1024 bytes of contiguous data arbitrarily.

If you assume the person distributing the software is the bad guy, there
usually is enough room in any distfile for padding with random stuff.
(heck, just include a catalog for a translation to basque or zulu).

Then the attacker can distribute a clean file for a while, then silently
replace it with the modified file, and you won't notice.

But there are actual reasons why this scenario is not of much relevance.
The most important being collaborative: a lot of projects use the same
distfile with distinct hashes. So, in effect, you have to break all hashes
at the same time to not be noticed...

The infrastructure in the ports tree was designed to counter this problem:
we provide all three hashes, rmd160, sha1, md5...

Just set your preferred cipher randomly. Each time you build a package, you're
running one of these checks. If you notice anything suspicious tell us.
If you have several build machines, set them to distinct ciphers.

Do you really think actual problems will survive this kind of checking ?


Personally, I'm much more worried about gnu shit.
Loads and loads of generated files.

Who checks configure files ?
Who checks Makefile.in files ?
Who checks bison generated files ?
Who checks libtool templates ?

Some time ago, a minor update to libdvdread resulted in >10000 lines of diff !
2 lines of actual code, the rest was just libtool/autoconf/automake version
updates.

There is a window of opportunity there: someone can replace an archive of
new software before it even gets checksummed.

Adding more checks to distinfo won't close that window.

That's one reason why it's vitally important to make sure source distributors
do their job and update version numbers each time they make an update.
(Helllooo ImageMagick dudes).

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:15 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145