🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Question

#275735
From: Zax
Date: Sun, 30 Aug 2015 09:48
94 lines
5126 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Sun, 30 Aug 2015 06:20:48 +0000 (UTC), Anonymous wrote in
Message-Id: <b1eae5bc118d22b415981ed167ae7c0c@remailer.paranoici.org>:

> On 29 Aug 2015 23:15:07 GMT, elvis-85503@notatla.org.uk wrote:
>
>>> Mixmaster is vulnerable to tagging attacks.  There's lots of padding
>>> that isn't integrity checked.  This provides as attacker with a means to
>>> track a message through hops.
>>>
>>> https://crypto.is/blog/tagging_attack_on_mixmaster
>>
>>In the 2013 enhancement to mixmaster (that also added
>>large RSA keys) I included new integrity protection that
>>defends against a tagging attack - but it can't be
>>done in full without reworking the layered message format.
>
> Thanks.  I found it on your lists and Github -
>
> "The RSA encryption transferred a 3DES key of 24 bytes and otherwise
> contained a lot of free space.  Taking advantage of this space to
> transfer extra data without growing the packets enabled further 
> progress.

There was actually very little space within each (of the 20) header
slots.  Elvis' solution was to use two headers per hop in order to
double to available space, at the cost of reducing the maximum chain
length.

The tagging issue in Mixmaster occurs because each time a message
arrives at a remailer, it strips off the top header (512 or 1024 bytes)
and pads the bottom of the header stack with the same volume of random
garbage so the overall message stays the same size.  It's this garbage
that's vulnerable to tagging.

> When using the larger RSA keys (2048 and up) the symmetric crypto of
> 3DES CBC is augmented by adding AES-256 CFB on top of it.  And three
> parts of the data are covered by HMAC-SHA256 (in the order encrypt 
> then MAC).
Mixmaster < 3.0.2 used CFB mode as it was already built into Mixmaster
(PGP/Type-I uses it).  Later versions use CTR mode which is probably
more secure.  Certainly more tested and widely implemented.

Another advantage of CTR mode is that encrypt and decrypt operations are
identical.  Should we ever get around to adding integrity checking for
header padding, this provides the easiest means to do it.

> - the body which previously had no protection
> - the current header block which had only MD5
> - the next header block to prevent a tagging attack (see footnotes)
> When using 1024-bit RSA these new features are not used so as to keep
> compatibility with older software."
>
> I understand what MAC is, and hashing (HMAC), but what do you mean 
> by "in the order encrypt then MAC"?
It means the hash is generated using the encrypted data.  The
alternative would be to hash the plaintext and then encrypt.  Both
methods serve to integrity check the data but the former is less
expensive as no decrypt is done if the hash doesn't match.

> Nice one in any case :)  Thank you for your support of free speech 
> and resistance to those who would put boots on all our faces.
>
> I also found your protracted discussions on raw code with Zax. 
> Thanks to you both.
Mixmaster takes a lot of discussion.  The code is old, virtually
uncommented and quite difficult to follow.  Add to that the usual
disclaimers about crypto/anonymity being hard.  These are the reasons it
doesn't evolve very much!

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJV4tFuAAoJEC3jHKG+PvqnXYYQALKY02vkKMFQG6IxegfOYfXd
dlWx5bUDIxUJChrBPfVA8VToePcHMR4YXRZBNgFvtSrvt84t+paFjZ4RK4/BDtgN
Y8Byl07DBadLNzOoU7cBROBM8Q/aiamzzGq7jAvu9LQWQ8UG4OGeU160idgccLI0
1PzqzXDYSKQe5HmGTaej5+4Aumgq/7bu4oSbBLqZ6Y3ZALeIt1V6Q7Ck4mJh7qZ9
Xb2HGFLjiKHbdKeVuCJnrwjRB3UiEIVaN2kskNhI7c5I+27ERgBESLc7Cwr6n54H
5hXO89zonsfL5gRBi0XJfZi/1PVaz8kYi1um8qoCX75EjZ8Gg3tavfjBRdlIoFTE
ZV3RnCpArm7WoWmtHmT0KpUuoCF0vItj6h+J7G7MJdzJ75156MnSKvggtJ/ESo8M
gV6isEtH2DfI2qIib8lgyylox400rJxHI+zT/wefV4Drix6wyDUHxGPfHtLCqW5C
D8ojH4C8aFe6/cY39yUyjXbKPeVQjqmVexRgKlxHynQUj4CX0WCr9G6FXXsgMhpA
t1ofn/pmeXK2ME5tjrDcGbyhkFDerHFKOL3ZE++ey3pA9ORnj95m7RFNPYt0fdvP
30jhTSWp7WcJvUhhrwkKJHwZKF2OK3d4DKVJHqylpxpy87B6sqh+uLd6tSp0dJFJ
gwzykiNy6HUZ6RAU3j/1
=vRYA
-----END PGP SIGNATURE-----

-- 
pub   1024D/228761E7 2003-06-04 Steven Crook <steve@mixmin.net>
      Key fingerprint = 1CD9 95E1 E9CE 80D6 C885  B7EB B471 80D5 2287 61E7
sub  4096R/BE3EFAA7  created: 2014-11-14  expires: 2016-11-13  usage: S
Technical Details
Message-ID: <slrnmu5kbf.g2o.admin@snorky.mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!news.usenet.farm!..!..!not-for-mail
References: <slrnmu4f7r.9c4.elvis-85503@notatla.org.uk> <b1eae5bc118d22b415981ed167ae7c0c@remailer.paranoici.org>

Show Full Headers
Complete Article Headers
Message-ID: <slrnmu5kbf.g2o.admin@snorky.mixmin.net>
Subject: Re: Question
Date: Sun, 30 Aug 2015 09:48:31 +0000
From: Zax <admin@mixmin.net>
References: <slrnmu4f7r.9c4.elvis-85503@notatla.org.uk> <b1eae5bc118d22b415981ed167ae7c0c@remailer.paranoici.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!news.usenet.farm!..!..!not-for-mail
Newsgroups: alt.privacy.anon-server
Organization: Mixmin
Injection-Date: Sun, 30 Aug 2015 09:48:31 +0000 (UTC)
Injection-Info: news.mixmin.net; posting-host="b3d35a7ea93243cd2837e0450058617a56b6aceb";
User-Agent: slrn/pre1.0.3-4 (Linux)
Lines: 93