mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hank Leininger <hlein@progressive-comp.com>
To: Ville Herva <vherva@niksula.hut.fi>
Cc: "Jörn Engel" <joern@wohnheim.fh-wedel.de>, linux-kernel@vger.kernel.org
Subject: Re: Deprecating .gz format on kernel.org
Date: Fri, 21 Mar 2003 02:26:53 -0500 (EST)	[thread overview]
Message-ID: <010303210206190.23184-100000@timmy.spinoli.org> (raw)
In-Reply-To: <20030321062635.GJ159052@niksula.cs.hut.fi>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 21 Mar 2003, Ville Herva wrote:

> On Thu, Mar 20, 2003 at 06:14:53PM -0500, you [Hank Leininger] wrote:
> >
> > Right, but if the uncompressed file is what's signed, then you must
> > waste either CPU uncompressing twice (once to verify, once to untar) or
> > waste disk (to store the uncompressed file, then verify, then untar).
>
> bzip2 -d < foo.tar.bz2 | tee >(md5sum) | tar xf
> or
> bzip2 -d < foo.tar.bz2 | tee >(gpg --verify foo.tar.bz2.sig) | tar xf

Yup, but (besides the tar tpyo you corrected later) this still isn't
safe.

1) gpg --verify won't be able to complete until it's seen all the unpacked
   tar file.

2) During that time tar -xf - will be unpacking and writing.

3) If the signature is bad, too late you've already unpacked it:
   -At best you need to blow away what you just unpacked.
   -Worse, it may have just (over)written real files in pwd other than
     the ones you think it should have.
   -Worst, if the tarfile is maliciously crafted to exploit tar (..'ing
     archive, symlink-following archive, or bad data which overflows
     tar), who-knows-what damage is already done.  This might sound
     far-fetched, except that it already happens.

...But it sounds like the whole discussion is dead anyway.  It would be
at least slightly less off-topic on security-audit, perhaps we should
move it there (http://lsap.org/mail.html).  Or to alt.tinfoil.hat.

Hank Leininger <hlein@progressive-comp.com>
E407 AEF4 761E D39C D401  D4F4 22F8 EF11 861A A6F1
-----BEGIN PGP SIGNATURE-----

iD8DBQE+er6+IvjvEYYapvERAqVKAJ9Z2sJ6pcib2+la0NqKYCeanuZwHwCdHEwt
9dSMcChXaa2G9sihxav6t0M=
=aCPQ
-----END PGP SIGNATURE-----


  parent reply	other threads:[~2003-03-21  7:14 UTC|newest]

Thread overview: 65+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-20 21:54 Hank Leininger
2003-03-20 22:13 ` Jörn Engel
2003-03-20 23:14   ` Hank Leininger
2003-03-20 23:34     ` Jörn Engel
2003-03-21  6:26     ` Ville Herva
2003-03-21  6:38       ` Ville Herva
2003-03-21  7:26       ` Hank Leininger [this message]
2003-03-20 23:50 ` H. Peter Anvin
     [not found] <200303211124.h2LBO6mU011361@sunrise.pg.gda.pl>
2003-03-21 11:28 ` Andrzej Krzysztofowicz
2003-03-21 15:39   ` Alan Cox
2003-03-21 19:43     ` H. Peter Anvin
     [not found] <20030320165007$503c@gated-at.bofh.it>
     [not found] ` <20030320180014$0e31@gated-at.bofh.it>
     [not found]   ` <20030320182006$46bf@gated-at.bofh.it>
2003-03-20 18:44     ` Pascal Schmidt
2003-03-20 19:52       ` Pavel Machek
2003-03-23 23:30         ` Krzysztof Halasa
  -- strict thread matches above, loose matches on Subject: below --
2003-03-19 20:19 H. Peter Anvin
2003-03-19 20:39 ` wind
2003-03-19 20:46 ` Martin J. Bligh
2003-03-19 20:57 ` Mr. James W. Laferriere
2003-03-19 21:12 ` Tigran Aivazian
2003-03-19 21:42   ` Arjan van de Ven
2003-03-19 21:55     ` Arnaldo Carvalho de Melo
2003-03-19 22:06       ` Kurt Garloff
2003-03-19 23:46         ` Eric Sandall
2003-03-20  8:27           ` Thierry Vignaud
2003-03-20  8:40             ` Dagfinn Ilmari Mannsåker
2003-03-20 15:37               ` Jon Portnoy
2003-03-20  0:21   ` Jamie Lokier
2003-03-20 17:53     ` Eric Sandall
2003-03-20 17:39       ` Jamie Lokier
2003-03-20 18:31         ` Eric Sandall
2003-03-20 21:14         ` Jörn Engel
2003-03-25 15:59           ` Bill Davidsen
2003-03-26 12:57             ` Jörn Engel
2003-03-20 14:03   ` Juan Quintela
2003-03-19 21:39 ` Sam Ravnborg
2003-03-20 22:17   ` LA Walsh
2003-03-21  0:09     ` Eric Sandall
2003-03-21  4:42       ` Vlad@geekizoid.com
2003-03-21  7:24         ` Eric Sandall
2003-03-19 22:22 ` H. Peter Anvin
2003-03-20  3:56   ` Martin J. Bligh
2003-03-20  4:18     ` H. Peter Anvin
2003-03-19 22:44 ` DervishD
2003-03-20  0:02 ` David S. Miller
2003-03-20  9:55 ` John Bradford
2003-03-20 13:10   ` John Jasen
2003-03-20 13:49     ` Richard B. Johnson
2003-03-20 10:03 ` Erik Hensema
2003-03-20 16:32 ` Jan-Benedict Glaw
2003-03-20 16:42   ` Mike Dresser
2003-03-20 17:51     ` Eli Carter
2003-03-20 18:04       ` Thomas Duffy
2003-03-25 16:04         ` Bill Davidsen
2003-03-25 16:25           ` Jan-Benedict Glaw
2003-03-25 16:34           ` Stephen Frost
2003-03-20 18:10       ` Jan-Benedict Glaw
2003-03-24  2:12       ` Miles Bader
2003-03-24  2:24         ` Miles Bader
2003-03-24  2:40         ` nick
2003-03-24 11:33       ` Jan-Benedict Glaw
2003-03-20 17:23   ` Randy.Dunlap
2003-03-20 18:12     ` Jan-Benedict Glaw
2003-03-20 17:48   ` Tomas Szepe
2003-03-20 17:57     ` Dana Lacoste
2003-03-20 18:24       ` Tomas Szepe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=010303210206190.23184-100000@timmy.spinoli.org \
    --to=hlein@progressive-comp.com \
    --cc=joern@wohnheim.fh-wedel.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=vherva@niksula.hut.fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®