[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Adding support for LZIP to dpkg, using that instead of xz, archive wide



* Philipp Kern <pkern@debian.org>, 2015-08-06, 21:31:
The purpose of adding garbage could be to make a modified tarball match the signature.
Which is why we also supply the length.

I thought the idea was to create a smaller malicious tarball, then append "garbage" until the size and the hash match.

But let's go back to reality:

If the decompressor ignores trailing garbage, then it's slightly easier to perform chosen-prefix collision attack for tarballs[0]. You don't have to worry about compressor's CRCs or where to hide collision blocks from the sight of an attentive code reviewer.


[0] https://lists.debian.org/20140913162408.GA6840@jwilk.net

--
Jakub Wilk


Reply to: