🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #218400

Re: does it make any difference

#218400
From: Nomen Nescio
Date: Tue, 31 Jul 2007 04:00
76 lines
3341 bytes
Anonymous Sender <anonymous@remailer.metacolo.com> wrote:

> That would be true if the message ID cache were actually stored for an
> entire month as the spec misleads you to believing. I think the default
> is something more on the order of 5 days, at which time message
> absolutely can be replayed.

Will you kids ever do your homework?

IDEXP  Mixmaster keeps a log of packet IDs to prevent replay attacks.  
       IDEXP specifies after which period of time old IDs are expired. 
       Default: 7d, minimum: 5d.  If set to 0, no log is kept.

rem.c
  idbuf.time = now - IDEXP;
  fseek(f,0,SEEK_SET);
  fwrite(&idbuf,1,sizeof(idlog_t),f);

First record in IDLOG stores oldest possible timestamp to be checked 
against ID cache at time of last expire.

rem2.c
  now = time(NULL);

  if ((f = mix_openfile(IDLOG, "rb+")) != NULL) {
    fread(&idbuf,1,sizeof(idlog_t),f);
    old = idbuf.time;

Put in old here.

  if (now - old < 5 * SECONDSPERDAY)    /* never reject messages less than */
    old = now - 5 * SECONDSPERDAY;  /* 5 days old (== minimum IDEXP) */

  if (timestamp > 0 && timestamp <= old) {
    errlog(LOG, "Ignoring old message.\n");
    ret = 0;
    goto end;
  }
 
Message with timestamps older than IDEXP get rejected to prevent replay 
attacks with packets expired from IDLOG. Unless you manage to manipulate 
the encrypted timestamp without destroying the encrypted headers.

  i = lockfile(IDLOG);
  while (fread(&idbuf, 1, sizeof(idlog_t), f) == sizeof(idlog_t)) {
    if (!memcmp(idbuf.id, id->data, sizeof(idbuf.id))) {
      char idstr[33];
      id_encode(id->data, idstr);
      errlog(LOG, "Ignoring redundant message: %s.\n", idstr);
      ret = 0;
      goto end;
    }
  }

All other messages checked against replay cache.

I'm sure there is some obscure way around these checks. It is just not as 
easy as you think and very likely not to produce any useful results.

  if (timestamp > now) {
    errlog(LOG, "Ignoring message with future timestamp.\n");
    ret = -1;
    goto end;
  }
 
And this just for show. timestamp rounded to start of day. Btw, I haven't 
looked deeper but couldn't this cause message loss across timezones on the 
date boundary?

chain2.c
  timestamp = time(NULL) / SECONDSPERDAY - rnd_number(4);
 
Mixmaster fudges timestamps backwards by 0 to 3 days when sending, so it 
shouldn't happen too often. It's just one of many points where remailed 
messages can disappear on their way.
Technical Details
Message-ID: <0df96327fec3c47b59e703394ac8611b@dizum.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!volia.net!news2.volia.net!feed-A.news.volia.net!nntp.ukr.net!news.ett.com.ua!news2.arglkargh.de!news.dizum.com!sewer-output!mail2news
References: <b1c677dc5b53a75dcbc6c316a7cc6e51@remailer.metacolo.com>

Show Full Headers
Complete Article Headers
Message-ID: <0df96327fec3c47b59e703394ac8611b@dizum.com>
Subject: Re: does it make any difference
Date: Tue, 31 Jul 2007 04:00:09 +0000
From: Nomen Nescio <nobody@dizum.com>
References: <b1c677dc5b53a75dcbc6c316a7cc6e51@remailer.metacolo.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!volia.net!news2.volia.net!feed-A.news.volia.net!nntp.ukr.net!news.ett.com.ua!news2.arglkargh.de!news.dizum.com!sewer-output!mail2news
Newsgroups: alt.privacy.anon-server
Mail-To-News-Contact: abuse@dizum.com
Organization: mail2news@dizum.com
Lines: 75