🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #62419

Re: xBin (Power-Post 2003 - requesting input from authorities..)

#62419
From: Rene
Date: Mon, 23 Dec 2002 23:13
94 lines
6110 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
> [Rene]:
> >
> >   X-No-Archive: yes
>
> please turn it off, it really puts a hamper on my style when I can't
> quote.

Sorry, it was defaulted to on in the webinterface here... should be off
from now on unless I made a mistake.

> anyway, consider that a file on Usenet often is a gigabyte in size,
> and that each part seldom is larger than 500 kB.  that means 2000
> parts.  the hash of each part is 160 bytes.  if all hashes are

Nope, an SHA-1 hash is 160bits long, according to
http://www.itl.nist.gov/fipspubs/fip180-1.htm , that's 20 bytes. Still it
is much, I agree. However, you do need to transfer these hashes anyway.
Using a hash tree does not reduce the number of hashes, it increases those
(because I leave out all the nodes within the tree, I only use the root
node and the leave nodes)

> included in all articles, you add 320 kB to each part, which clearly

But there is no need to add them all over and over again. That's the beauty
of the hash'es one-way function. You post under the file hash, this is the
single most important identifier. Then for example, send as the "0" part
all the block-hashes, once only. Everyone can now validate this post. If
those block-hashes all add up to the file-hash, then you know you've got
them all right. And if you have the file hash and all the block-hashes,
then you're set. You have all the meta information you'll ever need to get.
(note that with that information, you CAN build up the full hash-tree if
you like - I but can't see what you will gain by that)

More yet, since this information probably should be forced to be in the
first message posted, it becomes very hard to manipulate and attack it.
Since it is the first post. How do you intercept that when you don't know
when its going to be posted ? And once its out on the net, everyone has all
the information they need to validate all following posts.

So unless I'm blatantly overlooking something here (which is well possible,
the binary news aspect is quite new for me), this just reduced the problem
to ensure the first post gets through fine. If it doesn't, you can resend
it as much as you want. An attacker can do whatever he likes to create
bogus files: As long as he doesn't break the hash algorithm, his injected
bogus hash-map is easily detectable, since his hashes hashed itself don't
reproduce the file hash, under which the article is being posted. Injecting
wrong parts won't do it either, they are protected by the block-hashes and
are therefor easily detectable. (Though still need to be downloaded before
they can be verified, unless a server does this by itself and discards
non-matching parts)

> is unworkable.  the tree approach, on the other hand, only needs 10-20
> hashes in each file.  now, you may be advocating sending the hashes

I basically only need one hash per *block*. That's even less.

> out-of-band.  I'm a bit concerned about adding a single point of
> failure to the system.  what happens if that hash list is missing from
> your server?

No I don't advocate transmission of the hashes out of band. The file hash
*additionaly* yes, but I don't actually advocate that, its just a thing
that will invariably happen, because it is so damn convenient. They will
get indexed somewhere outside news (on a webserver most likely). However,
discussing the issue of presenting an URL-ized form of the file (which
actually does not need to be invented, because there already is a working
URL-scheme to select a post) is a bit skipping ahead. First priority should
be to make file posting possible using hashes to protect them against
attacks, then to see for easy and convenience methods getting them.

> the every other article attack was well spotted.  I think it suffices
> that part 3 includes the hash of part 4 and vice versa to solve it,
> though.

Yes that would solve it. But it adds yet another hash to every part. As I
said, when you have all the leave-hashes, you can reconstruct the file hash
AND you can ensure that all parts are going to be what they should be. You
really have all you need, once you have the file hash and the hashes on the
leave of tree. There is no need to have the hashes at the branches (inner
nodes). And if you want you can reconstruct even these, since you already
have all the leaves, just add the pairs toghether until you reach the root.

Just to be more precise, the "l" hash in the ASCII picture is a different
one than the one I would be constructing. The "l" hash would really need
the calculation of the tree to get. My version simply takes all the leaves
in order and creates the "root" or file-hash out of that. No pairings,
simply feed them into the hash algorithm, one after another and get the
resulting hash.

-- 
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service              New Rate! $9.95/Month 50GB
Technical Details
Message-ID: <20021223181329.108$LI@newsreader.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news.stealth.net!news.stealth.net!newshosting.com!news-xfer1.atl.newshosting.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
References: <cdda0v4h6t52ov7abf1j0qkpo843itf4se@4ax.com> <cfka0vsbjdlbdmtv2gg8qnehok033qh5f1@4ax.com> <20021223041127.986$6M_-_@newsreader.com> <1rfzsoaacf.fsf@vingodur.ifi.uio.no> <20021223150103.132$Bb@newsreader.com> <1rd6ns9y06.fsf@tolf.ifi.uio.no>

Show Full Headers
Complete Article Headers
Message-ID: <20021223181329.108$LI@newsreader.com>
Subject: Re: xBin (Power-Post 2003 - requesting input from authorities..)
Date: Mon, 23 Dec 2002 23:13:29 +0000
From: Rene <invalid@email.addr>
References: <cdda0v4h6t52ov7abf1j0qkpo843itf4se@4ax.com> <cfka0vsbjdlbdmtv2gg8qnehok033qh5f1@4ax.com> <20021223041127.986$6M_-_@newsreader.com> <1rfzsoaacf.fsf@vingodur.ifi.uio.no> <20021223150103.132$Bb@newsreader.com> <1rd6ns9y06.fsf@tolf.ifi.uio.no>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news.stealth.net!news.stealth.net!newshosting.com!news-xfer1.atl.newshosting.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com Subscriber
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com .8Jw78l31=DrijpDsa=Al7MOwUz6Rx+8wpY=.zb2haN3y-XW0
Lines: 93