🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #64000

Re: Sets and xBin

#64000
From: Curt Welch
Date: Wed, 12 Feb 2003 00:14
67 lines
5168 bytes
Thomas <zak@spam.invalid> wrote:
> Curt Welch wrote:
>
> > And maybe there are other ways to protect set files from that type of
> > abuse.
>
> What about this:
>
> 1 - the set file contains the (xbin) hashes of the set files.
> 2 - each posted file has a This-file-was-posted-as-part-of-sets: header
> somewhere.
>
> The poster would calculate all the hashes for the files, build the set
> file, hash the set file, and add the set file hash to each file.
>
> This makes it easier to find out which set file is valid: get all the
> headers for the files mentioned in the set file and see if they match.
>
> The download tool would grab IDs from the set file, retrieve some of the
> messages or message headers, and verify is they match up.

The problems happen if two different people want to post a "set" which
includes some common files.  They can post it of course, but them you have
two sets of the same file in the group at the same time (a waste), and the
download tool has to go around checking all possible articles to see if any
match the "set" they are trying to download.

> This makes set files that get created later (i.e. someone wants to post a
> set file describing all the images with a blue background) suspect. But
> that need not be a problem; the majority of the set files is easily
> verified.

I think that the download software can probably solve the security problem
by offering a "get headers" function which you can use before downloading
the entire set.  The feature will show you the headers from the articles
before you decide to download them all so you can verify that the "set" is
made up of the type of things you expect it to be made up of.

> It would be very hard to generate a fake set file that has the same hash
> as an existing one. It may be worth considering to hash only a limited
> amount of data in the set file, so it can be expanded somehow and still
> be correct (i.e. hash only title and file IDs, of leave an 'extra
> comments' part that is not hashed).

Well, what we had talked about was doing nothing special with the set
files, the hash would be the standard xBin hash for the file.  That makes
things very simple.

If you wanted to define a unique hash for the "set" which would always
identify the files in the set, and would always be the same for the same
set of files, you could do that, but I don't see much point to it.  You
could do it by only hashing the xBin-IDs of the files, and to deal with the
order problem, you could specify that they are sorted by their xBin-ID
before being hashed.  That would make the same set of files always produce
the same "set hash".  But I don't see much point in doing that.  If the set
file is different because it's got different comments, or a different
order, then it is different even if it includes the same files so it should
have a unique ID.

The download software would be smart enough to understand that all the
files are the same in two sets and good downlaod software would show you
that somehow.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Technical Details
Message-ID: <20030211191402.270$Yg@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!feed1.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
References: <u7391vole7cci3qlobpvq0u79dqkiuoufm@news.iplweb.org> <3o9b1vglqbf4sm72efks2ivgd7u5tqn7mr@news.iplweb.org> <1041671876.599031@ok-corral.gunslinger.net> <11ud1v47mk49997bgnnnun1d57mi52f0pk@news.iplweb.org> <20030104113637.385$sm@newsreader.com> <6hqq1vk3dc5i0lbk65r761hr3jetalt9ap@news.iplweb.org> <20030115124728.470$XM@newsreader.com> <59369.i13205@archiver.winews.net> <20030119214844.592$sv@newsreader.com> <GJLW9.736995$vi4.98872@post-02.news.easynews.com> <20030131000233.119$Yb@newsreader.com> <310120031404147067%planb@newsreaders.com> <1rwuklt8nb.fsf@vingodur.ifi.uio.no> <310120031724340041%planb@newsreaders.com> <20030131225424.637$3Q@newsreader.com> <040220031332260231%planb@newsreaders.com> <20030204164005.475$Zo@newsreader.com> <040220031848592526%planb@newsreaders.com> <1rptq7o74q.fsf@vingodur.ifi.uio.no> <20030204214512.691$R9@newsreader.com> <050220031439037161%planb@newsreaders.com> <20030207154032.161$0G@newsreader.com> <I_31a.2131$481.11406@amstwist00>

Show Full Headers
Complete Article Headers
Message-ID: <20030211191402.270$Yg@newsreader.com>
Subject: Re: Sets and xBin
Date: Wed, 12 Feb 2003 00:14:02 +0000
From: curt@kcwc.com (Curt Welch)
References: <u7391vole7cci3qlobpvq0u79dqkiuoufm@news.iplweb.org> <3o9b1vglqbf4sm72efks2ivgd7u5tqn7mr@news.iplweb.org> <1041671876.599031@ok-corral.gunslinger.net> <11ud1v47mk49997bgnnnun1d57mi52f0pk@news.iplweb.org> <20030104113637.385$sm@newsreader.com> <6hqq1vk3dc5i0lbk65r761hr3jetalt9ap@news.iplweb.org> <20030115124728.470$XM@newsreader.com> <59369.i13205@archiver.winews.net> <20030119214844.592$sv@newsreader.com> <GJLW9.736995$vi4.98872@post-02.news.easynews.com> <20030131000233.119$Yb@newsreader.com> <310120031404147067%planb@newsreaders.com> <1rwuklt8nb.fsf@vingodur.ifi.uio.no> <310120031724340041%planb@newsreaders.com> <20030131225424.637$3Q@newsreader.com> <040220031332260231%planb@newsreaders.com> <20030204164005.475$Zo@newsreader.com> <040220031848592526%planb@newsreaders.com> <1rptq7o74q.fsf@vingodur.ifi.uio.no> <20030204214512.691$R9@newsreader.com> <050220031439037161%planb@newsreaders.com> <20030207154032.161$0G@newsreader.com> <I_31a.2131$481.11406@amstwist00>
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!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 izikh71DZvd+0fghagxKUqq0VstpDc0dmZY4BC9T.XJl94
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: 66