🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.privacy.anon-server
4 messages
4 total messages Started by RProcess Fri, 23 Jan 1998 00:00
Reply-Block Vulnerability
#4664
Author: RProcess
Date: Fri, 23 Jan 1998 00:00
81 lines
4695 bytes
There is a reply-block vulnerability which I haven't seen addressed much.  It
affects all reply-blocks except those which use "remix" remailers, and presents
a good reason for doing so.

The problem:
Even with an encrypted reply-block, which uses conventional encryption at every
stage, the reply-block itself is not conventionally encrypted.  (It can't be
because the receiving remailer must decrypt it.)  The encrypted-reply-block
part
of the returning message is always in the clear, and is always the same text,
for a given block.

For example, with a nym account which uses one encrypted-reply-block with three
remailers, with an Encrypt-Key at each remailer as well as the nym-server:

    When the message leaves the nym-server, it is conventionally encrypted, and
    the ERB is prepended to it.  This ERB is the same for every message sent.
    (It is a static PGP message created when the reply-block is constructed,
and
    does not change.)  This is then mailed to the first remailer in the chain.
    
    This remailer decrypts the ERB, which (ideally) instructs it to conv
encrypt
    with another Encrypt-Key, and remail it.  It conv encrypts the message,
    prepends the once-decrypted ERB, and mails it.  Once again, this
    once-decrypted ERB is always the same for every message sent through this
    chain, and is always the same one emerging from this remailer, a static PGP
    message, and is in the clear.
    
    The next remailer does the same, and the next, each prepending a decrypted
    ERB which is always the same for a message leaving that particular remailer
    for this block.
    
    By the time the message is remailed to the user, the ERB has vanished and
    only the "**" line and four-time conventional encrypted message remains.
    
In terms of traffic analysis on reply-blocks, these static ERBs at the top of
each message can be statistically correlated, to determine which ERB contains
which ERB, etc.  This provides a trail from the nym-server to the final
address.

Conventional encryption is used in reply-blocks to avert the situation where
the
same message going into a remailer is the same one coming out.  In this case,
the conventional encryption is not used on the ERB, and the ERB going in is
always the same for the reply-block/account, as is the ERB coming out, at a
given remailer stage.  Simply counting messages will correlate them.

The only current solution to this is to use a remailer which supports "remix",
insuring that the remailer after it shares a mixmaster.  (This causes the
remailer to reformat the message as a mixmaster message between remailers.) 
The
problems with this solution are: 1) There is no way to verify that remix is
occuring, as it is transparent to the user, 2) There are currently only 3?
remailers which support this: Privacy, Cracker, and Squirrel.

Possible Solutions via Modifications to Existing Cypherpunk:

    Include an Anon-Encrypt-To: double-colon header.  This replaces the
Anon-To:
    header, and instructs the remailer to encrypt the message to the recipient
    using the recipient's public-key (ie the key of the next remailer in the
    chain).  If the recipient's address is not on the keyring, the message is
    discarded.  If it is, the remailer adds "::", "Encrypted: PGP" to the
    message and sends it.
    
    The receiving remailer must be modified to accept this type of message in
    that it must parse the message twice.  (Perhaps this is already done?)  In
    other words, parsing it once will trigger a decrypt at the Encrypted: PGP
    command.  Parsing it the second time will decrypt the ERB's Encrypted: PGP
    line.  The message will then be mailed.
    
Or:

    Create a "recpunk" remailer which encrypts all messages between remailers.
    

Both these solutions have the same vulnerability, but only if the attacker has
access to the messages _inside_ all the remailers, not just between them. (Same
as remix.)
Re: Reply-Block Vulnerability
#4669
Author: TC
Date: Sat, 24 Jan 1998 00:00
63 lines
3729 bytes
In article <19980123172012.22700.qmail@nym.alias.net>, RProcess says...
<restated as follows>

If someone wanted to break down a nym reply block that is using 
conventional encryption of the message and was able to watch the 
messages going out of a remailer then he could use the Encrypted Reply 
Block (ERB) as a tag to follow a given message to the next remailer. If 
he could do this for every remailer along the way then he can track a 
message back to its reply block destination.

The reason he can't follow the conventional encrypted part is that it 
will always be changing because it is getting encrypted every time 
something is sent through it. But the ERB never changes as long as you 
are using the same ERB. You can use multiple reply blocks but even then 
it is just a matter of sending more messages through to show the 
pattern.

RProcess suggests that the whole message be encrypted with the next 
remailers public key each time it is sent off to the next remailer. This 
way the messages will never be identical so the attacker doesn't have 
anything to follow.

First of all please let me know if I have misstated anything. This is 
simply my understanding of your description of the Reply-Block 
Vulnerability.

Second wouldn't it be almost as easy to do an analysis of the size of 
the message being sent. I could be all wet here but doesn't the same 
size input data for PGP produce nearly the same size output data if 
encrypted with the same keys/passphrases (note signing by the nymserver 
appears to add some variability). I have only done some preliminary 
tests but this appears to be nearly so if not always.
 
Granted following size is not as easy as identical ERBs but there is 
probably enough diversity in the size of messages going through a 
remailer that the approach may work.

The nym servers have a +fixedsize command which pads or splits a message 
to a given size. I wonder though wouldn't that make it easier unless 
everyone used this option? The attacker just needs to send more through 
the reply block than the baseline of users using +fixedsize to get a 
signal. Also this only addresses the first hop of the reply block.

What might solve this is random padding of message size to the next 
remailers Null: header. Maybe even base the padding on the standard 
deviation of size for messages remailed over the last 24hrs(or randomly 
selected historical period). If messages get padded with from (0 to 
x)*SD of junk the size signature should become increasingly difficult to 
follow.

The attacker would then be left with sending messages at the extremes of 
size through in hopes of picking up a signal. The very large files could 
be taken care of by the daily limit as the attacker wouldn't get enough 
shots at it before the nym shuts down. For the very small files put a 
minimum size limit on a message and repad if not over to swamp out the 
signal.

Again this is from my limited understanding of this stuff. I haven't 
done the math to check that we aren't dealing with numbers that are 
greater than the atoms in the universe.

Todd Cutter
Re: Reply-Block Vulnerability
#4672
Author: Johannes Kroeger
Date: Sat, 24 Jan 1998 00:00
46 lines
2588 bytes
On 23 Jan 1998 17:20:12 -0000, RProcess
<Use-Author-Address-Header@[127.1]> wrote:

> The problem:
> Even with an encrypted reply-block, which uses conventional encryption at
> every
> stage, the reply-block itself is not conventionally encrypted.  (It can't be
> because the receiving remailer must decrypt it.)  The encrypted-reply-block
> part
> of the returning message is always in the clear, and is always the same text,
> for a given block.

[...]

> Possible Solutions via Modifications to Existing Cypherpunk:
> 
> Include an Anon-Encrypt-To: double-colon header.  This replaces the
> Anon-To:
> header, and instructs the remailer to encrypt the message to the recipient
> using the recipient's public-key (ie the key of the next remailer in the
> chain).  If the recipient's address is not on the keyring, the message is
> discarded.  If it is, the remailer adds "::", "Encrypted: PGP" to the
> message and sends it.

There is no need to introduce new remailer directives.  Encrypting the outgoing
message for the next remailer and adding an "Encrypted: PGP" header should be
done in the "coerce" output filter (hello Andy ;-).  

> The receiving remailer must be modified to accept this type of message in
> that it must parse the message twice.  (Perhaps this is already done?)  In
> other words, parsing it once will trigger a decrypt at the Encrypted: PGP
> command.  Parsing it the second time will decrypt the ERB's Encrypted: PGP
> line.  The message will then be mailed.

Freedom 2.x and Ghio2 recursively decrypt incoming PGP messages,
but I don't know if the Winsock and Juno remailers accept them.

> Create a "recpunk" remailer which encrypts all messages between remailers.

Perhaps we should call the new option "repgp" (cpunk doesn't enclude
encryption).

-- 
Johannes Kroeger		<hanne@squirrel.owl.de>
Send mail with subject "send pgp-key" to get my PGP key
Re: Reply-Block Vulnerability
#4683
Author: Andy Dustman
Date: Mon, 26 Jan 1998 00:00
58 lines
3557 bytes
On 23 Jan 1998, RProcess wrote:

> The only current solution to this is to use a remailer which supports
> "remix", insuring that the remailer after it shares a mixmaster.  (This
> causes the remailer to reformat the message as a mixmaster message
> between remailers.)  The problems with this solution are: 1) There is no
> way to verify that remix is occuring, as it is transparent to the user,
> 2) There are currently only 3?  remailers which support this: Privacy,
> Cracker, and Squirrel. 
> 
> Possible Solutions via Modifications to Existing Cypherpunk:
> 
>     Include an Anon-Encrypt-To: double-colon header.  This replaces the Anon-To: 
>     header, and instructs the remailer to encrypt the message to the recipient
>     using the recipient's public-key (ie the key of the next remailer in the
>     chain).  If the recipient's address is not on the keyring, the message is
>     discarded.  If it is, the remailer adds "::", "Encrypted: PGP" to the
>     message and sends it.
>     
>     The receiving remailer must be modified to accept this type of message in
>     that it must parse the message twice.  (Perhaps this is already done?)  In
>     other words, parsing it once will trigger a decrypt at the Encrypted: PGP
>     command.  Parsing it the second time will decrypt the ERB's Encrypted: PGP
>     line.  The message will then be mailed.
>     
> Or:
> 
>     Create a "recpunk" remailer which encrypts all messages between remailers.
> 
> Both these solutions have the same vulnerability, but only if the attacker has
> access to the messages _inside_ all the remailers, not just between them. (Same
> as remix.)

Your analysis is basically correct, but still don't address your first
point: They are transparent to the user, so there is no way for the user
to know that the operation is actually performed by the remailer.

"recpunk" or "repgp" (as Hanne suggests) would be fairly easy to
implement; though it is still not quite as good as remix, it is better
than nothing. It could be invoked when:

1) Destination address is a remailer which supports pgp.

2) Message format:
   a) NOT Mixmaster.
   b) plaintext or contains "**".

i.e. Mixmaster messages and ordinary PGP messages (one which do not use
conventionally encrypted blocks) would not be re-encrypted. Plaintext
messages and conventionally encrypted messages would be.  I'll look into
it.

Andy Dustman / Computational Center for Molecular Structure and Design
For a great anti-spam procmail recipe, send me mail with subject "spam".
Append "+spamsucks" to my username to ensure delivery.  KeyID=0xC72F3F1D
Encryption is too important to leave to the government. -- Bruce Schneier
http://www.athens.net/~dustman mailto:andy@neptune.chem.uga.edu   <}+++<
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads