๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #60986

Re: [FNTP] 'in-completeness'

#60986
From: Curt Welch
Date: Fri, 04 Oct 2002 02:06
89 lines
6511 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
> [Claus F๏ฟฝrber]:
> >
> >   Curt Welch <curt@kcwc.com> schrieb/wrote:
> >   > So the type of defense you talk about isn't going to help.  They
> >   > can post their clone after they have seen your "answer" in the
> >   > next post.
> >
> >   You can just double-link the messages: The n-th post carries the
> >   answer to the (n-1)th and vice-versa.  A scheme similar to that of
> >   cancel locks proposed on Usefor (but a more general one) can be
> >   used.
>
> the "answer" to part N-1 and N+1 must be a hash of their content.
> anything else will allow the attacker to keep the answers and replace
> the content.  assumption: we trust part 1.  it is therefore part 1
> which must contain the information allowing us to trust part 2.  (and
> so on by recursion.)
>
> with such a hash in place (put it in a random header, it's acceptable
> to use HEAD to choose the right candidate), the idea of using
> overlapping parts is unnecessary.

Ah, but we want to be able to trust reposts even if they have nothing to do
with the orginal post.  You don't want a security system that prevents that
from working.  If you must tie pieces together one by one based on the part
size used in the orginal post, how do make use of reposts done with
different part sizes?

What you want is for the user to point at a single file segment and ask the
download tool to find all the missing pieces.  The point of the large file
hash is to allow the download tool to collect reposts even when done a
month later in a different group.  And, even if the first article the user
points to turns out to be a forged and corrupted clone of the real file,
you want the download tool to be able to figure that out and reconstruct
the real thing in spite of the "noise".  What it does trust from the first
bogus article is the hash.  The download tools "job" is to reconstruct the
file that matches that hash.

There must be some clever way to make this work.  If there are lots of
"fakes" posted, I don't think there is anyway to avoid having to download a
lot of the fake articles, but once you have them all downloaded, you want
the job of reconstructing this jig-saw puzzle to be resonable.

One thing I was thinking about was trying to find a hash function that
would allow you to calculate the file hash if you had hash values for each
segment, without having to make a pass over all the raw data.

A hash which is a simple byte sum works like that.  If you have the hash of
contiguous segments, then the file hash is simply the sum of the segment
hashes. A function that was easy to calculate like that would make it much
easier to try combinations of different segments to find out which ones,
when combined, ended up creating the correct full-file hash.

The problem with a simple sum of course is that it's completely trivial to
generate fake data which produces the correct sum.  So it offers no
protection against forged data.  Is there some way to get the security of a
strong hash but yet still have a way to calculate the file hash from the
segment hashes so you can mix-and-match various segments quickly without
having to recalculate an entire file hash over the file?

What if you did something like calculate a real hash of fixed sized blockes
from the file (say 1024 bytes?), then define the file hash to be simply
the sum, or XOR of all the block hash values?

If all segments posted in this new system were required to be split on
these 1K block boundries, then every article posted could have it's "hash"
value included in the header (i.e. the sum of the hash of each of the
blocks in that segment).

A download tool could download all the segments it thought were valid, and
recalculate the hash for that segment to make sure it was valid.  Then, to
try and mix and match segments, it's just a matter of adding up segment
hash values to see which combination of segments proudced the correct file
hash.  If the segement hash was in the header, the download tool could do
the mix and match test before downloading.  And if the segment hash in the
header didn't match the data, then that would be detected when the article
was downloaded.

Maybe something like this would give enough security from fake data but
also make the job of sorting though real and fake articles fast enough to
be practical?  If so, all you could gain by posting fake articles is to
make people waste time downloading them - they wouldn't prevent you from
getting the real data.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Technical Details
Message-ID: <20021003220607.229$1n@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!news.uchicago.edu!yellow.newsread.com!netaxs.com!newsread.com!grr!feed1.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
References: <58068.n92202@archiver.winews.net> <20020924011222.716$tx@newsreader.com> <3147e.o92204@archiver.winews.net> <20020924234811.264$g2@newsreader.com> <15518.p9220c@archiver.winews.net> <20020926003453.621$EG@newsreader.com> <38427.r92204@archiver.winews.net> <1rofajcuom.fsf@vingodur.ifi.uio.no> <20020928124251.046$Da@newsreader.com> <39167.u92203@archiver.winews.net> <slrnapgpct.qiq.andrew+nonews@trinity.supernews.net> <3113g.u92200@archiver.winews.net> <slrnaph54l.qiq.andrew+nonews@trinity.supernews.net> <43236.1a2205@archiver.winews.net> <20021001093905.267$sh@newsreader.com> <30416.2a2200@archiver.winews.net> <20021002113832.345$xh@newsreader.com> <anf7os$me7$1@bob.news.rcn.net> <20021002223806.641$Bd@newsreader.com> <8Y9ochx3cDC@3247.org> <1rbs6behtt.fsf@atta.ifi.uio.no>

Show Full Headers
Complete Article Headers
Message-ID: <20021003220607.229$1n@newsreader.com>
Subject: Re: [FNTP] 'in-completeness'
Date: Fri, 04 Oct 2002 02:06:07 +0000
From: curt@kcwc.com (Curt Welch)
References: <58068.n92202@archiver.winews.net> <20020924011222.716$tx@newsreader.com> <3147e.o92204@archiver.winews.net> <20020924234811.264$g2@newsreader.com> <15518.p9220c@archiver.winews.net> <20020926003453.621$EG@newsreader.com> <38427.r92204@archiver.winews.net> <1rofajcuom.fsf@vingodur.ifi.uio.no> <20020928124251.046$Da@newsreader.com> <39167.u92203@archiver.winews.net> <slrnapgpct.qiq.andrew+nonews@trinity.supernews.net> <3113g.u92200@archiver.winews.net> <slrnaph54l.qiq.andrew+nonews@trinity.supernews.net> <43236.1a2205@archiver.winews.net> <20021001093905.267$sh@newsreader.com> <30416.2a2200@archiver.winews.net> <20021002113832.345$xh@newsreader.com> <anf7os$me7$1@bob.news.rcn.net> <20021002223806.641$Bd@newsreader.com> <8Y9ochx3cDC@3247.org> <1rbs6behtt.fsf@atta.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!news.uchicago.edu!yellow.newsread.com!netaxs.com!newsread.com!grr!feed1.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com ijcw@XkA4/FNKhdLriKnoQJgV2/cwHnrGaLiFWMDYMfJiM
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
  %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 88