🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #61137

Re: [FNTP] 'in-completeness'

#61137
From: Kjetil Torgrim Homme
Date: Mon, 07 Oct 2002 09:18
71 lines
5098 bytes
[Curt Welch]:
>
>   What if they post a fake 4 which has valid data (so it does match
>   the hash from real 3), but then a fake hash for segment 5?  Then
>   they post a fake 5 with fake data that matches the hash in their
>   fake 4.

you're evil.

>   My hash system allows the fakes to blocked at post time without
>   scanning the entire set (which won't happen at first, but could be
>   added if the system became a standard).

good point.  they can post fakes where the segment hash is correct,
but those fakes can be spotted by downloading just the headers.

>   > it could work for our purposes.  I'd put that in a separate
>   > header, and use the "real" hash in the msgid.
>   
>   This "hash of hash" idea is a "real hash". It's just not a
>   straight MD5 or SHA1 hash.  If something like this works to allow
>   us to verify a single article without having access to the rest of
>   the data, why wouldn't we use this as the "real" hash instead of
>   an MD5 or SHA1 hash?

I'm no cryptographer, but I'd be surprised if a simpleminded XOR of
hashes is cryptographically secure (no known way of tampering with the
data without changing the hash).  it is obvious that the cryptographic
properties of the hash algorithm can not be _improved_ by such an
operation, but it is not clear that it will detract either.

I would err on the safe side, and use a proper MD5 for the whole file
as a final check.  (the binary assembly program needs to handle the
case where there are more than one candidate for a complete file.)

>   To veryify the data, you need a good sized set of data (logically
>   a list of hash values for the rest of the file), included with
>   every post.  But we could make that optional for now and only
>   start including that if the abuse problem became a real issue.
>   But using the correct hash to allow this to be added later should
>   be done now.

we only need the doubly linked list with the segment hashes, I think.
it is cheap to try all possible combinations of fakes and real
articles, especially since you can do the chaining to cut down on the
search space.

I haven't really thought through the issues of refills with a
different segment size, though.

>   The actual binary posts can then be stuck in a sub-newsgroup, like
>   a .b group which no one normally looks at.

since the msgids contain a random element, the download tool would
still need to download headers from that group, XHDR Message-ID
followed by HEAD on each interesting article, I guess.

>   The harder part of the system is creating the hash data that must
>   be included with every post.  But even that is computationally as
>   simple as calculating the hash in the first place, it just
>   requires more memory to save all the hash values from the top of
>   the hash tree (but still only something only in the 50K range even
>   for huge files).

50K?  err, I think I must go back and re-read your hashing scheme.

-- 
Kjetil T.   ==. ,,==. ,,==. ,,==. ,,==. ,,==
           ::://:::://:::://:::://:::://::::
           =='' `=='' `=='' `=='' `=='' `==  http://folding.stanford.edu
Technical Details
Message-ID: <1rn0pq8v5c.fsf@vingodur.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-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.bredband.com!bredband!uio.no!nntp.uio.no!ifi.uio.no!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> <20021003220607.229$1n@newsreader.com> <1r8z1e9pv2.fsf@vingodur.ifi.uio.no> <20021006165224.658$WE@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <1rn0pq8v5c.fsf@vingodur.ifi.uio.no>
Subject: Re: [FNTP] 'in-completeness'
Date: Mon, 07 Oct 2002 09:18:07 +0000
From: Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no>
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> <20021003220607.229$1n@newsreader.com> <1r8z1e9pv2.fsf@vingodur.ifi.uio.no> <20021006165224.658$WE@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-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.bredband.com!bredband!uio.no!nntp.uio.no!ifi.uio.no!not-for-mail
Newsgroups: news.software.nntp
Organization: Dept. of Informatics, Univ. of Oslo, Norway
Lines: 70
NNTP-Posting-Host: vingodur.ifi.uio.no
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: maud.ifi.uio.no 1033982288 27073 129.240.68.200 (7 Oct 2002 09:18:08 GMT)
X-Complaints-To: abuse@ifi.uio.no
NNTP-Posting-Date: 7 Oct 2002 09:18:08 GMT
User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7