Article View: alt.privacy.anon-server
Article #18646Re: How to defeat "man in the middle" attack
From: Mr. Tines
Date: Tue, 15 May 2001 20:53
Date: Tue, 15 May 2001 20:53
40 lines
3135 bytes
3135 bytes
In article <q472gtspvp9dknsg00hiju7vcqdnvd4bsv@4ax.com>, Ralph Hilton
<aon.912202928@aon.at> writes
>The only workable method I know of is to create a key using a DH key
>exchange methodology.
>
>Basically you choose a very large prime number and a small prime as a root.
>
>You pick a random large number and put the root to the power of that number
>modulus the large prime.
>
>You send the prime, the root and the result to your friend. He picks a
>similar random number and sends you back his result.
>
>If you put his result to the power of your random number and he puts your
>result to the power of his random number then you'll both have a number
>which can be used as a key to conventionally encrypt your other keys.
>
>Given a large enough prime then it should be secure.
>
>I don't know of an available implementation but I could send demo code in
>Pascal which works for smaller numbers. It would need rewriting with large
>integer math implemented.
Alas, DH is perfectly trivial to man-in-the-middle. Alice publishes her
key, P,g,g^X mod P where X is the private key. Mallory replaces the
message with P,g,g^Z and forwards it to Bob, who responds with g^Y. Now
Bob and Mallory have g^(YZ), and Mallory sends g^Z on to Alice, who now
share g^(XZ) and Mallory can eavesdrop on everything.
You need to have some form of initial shared secret (to generate keys
from) or a trusted third party (X.509 certificates) or parties (PGP web
of trust) to whom Alice and Bob can separately resort to affirm that the
key received does belong to who it says. You can't bootstrap trust from
nothing, alas
-- PGPfingerprint: BC01 5527 B493 7C9B 3C54 D1B7 248C 08BC --
_______ {pegwit v8 public key =581cbf05be9899262ab4bb6a08470}
/_ __(_)__ ___ ___ {69c10bcfbca894a5bf8d208d001b829d4d0}
/ / / / _ \/ -_|_-< http://www.ravnaandtines.com/
/_/ /_/_//_/\__/___/@ravnaandtines.com PGP key on page
Technical Details
Message-ID:
<932JbEAwcZA7EwBj@windsong.demon.co.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.mbox.zip!archiver1.sj.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!dispose.news.demon.net!news.demon.co.uk!demon!windsong.demon.co.uk!tinesReferences:
<20010514195708.3059.qmail@nym.alias.net> <q472gtspvp9dknsg00hiju7vcqdnvd4bsv@4ax.com>Show Full Headers
Complete Article Headers
Message-ID: <932JbEAwcZA7EwBj@windsong.demon.co.uk> Subject: Re: How to defeat "man in the middle" attack Date: Tue, 15 May 2001 21:53:04 +0100 From: "Mr. Tines" <tines@ravnaandtines.com> References: <20010514195708.3059.qmail@nym.alias.net> <q472gtspvp9dknsg00hiju7vcqdnvd4bsv@4ax.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.mbox.zip!archiver1.sj.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!dispose.news.demon.net!news.demon.co.uk!demon!windsong.demon.co.uk!tines Newsgroups: alt.privacy.anon-server,alt.privacy,alt.security.pgp Organization: Ravna and Tines NNTP-Posting-Host: windsong.demon.co.uk X-NNTP-Posting-Host: windsong.demon.co.uk:158.152.107.88 X-Trace: news.demon.co.uk 990127130 nnrp-08:3493 NO-IDENT windsong.demon.co.uk:158.152.107.88 X-Complaints-To: abuse@demon.net MIME-Version: 1.0 X-Newsreader: Turnpike Integrated Version 4.02 S <CxmxPSz8mvhnCZARL+cc57yPrb> Lines: 40