Re: SSL & Man In the Middle Attack

From: Barry Margolin (barmar@genuity.net)
Date: 01/15/03


From: Barry Margolin <barmar@genuity.net>
Date: Wed, 15 Jan 2003 15:21:07 GMT

In article <c52a4e65.0301142124.486964d4@posting.google.com>,
JoshB <metrix007@yahoo.com> wrote:
>Anne & Lynn Wheeler <lynn@garlic.com> wrote in message
>news:<8yxpfewt.fsf@earthlink.net>...
>> "NEWS.DFN.CIS" <anyone@nowhere.com> writes:
>> > Hi, I'm a newbie
>> >
>> > I was wondering if SSL was still vulnerable to man in the middle attack?
>> >
>> > E.g., if some one is sitting between me and an trusted server, and
>> > intercepts our handshake during initiation of our secure conversation, isn't
>> > it possible for the middle man to intercept all messages from server to me
>> > (but not from me to server)?
>>
>> server sends client a signed message along with a digital certificate.
>> the client validates the digital certificate (i.e. it is for the
>> server that i think i'm talking to) and then validates the signed
>> message using the public key in the digital certificate (i.e. the
>> server has to be the one described in the digital certificate or
>> otherwise the signed message wouldn't verify).
>
>mitm couldnt fake a digital certificate? mitm could get a copy and
>then send it back to client? or just sniff it and client gets it
>anyway

If it sends the server's real certificate, it will contain the server's
public key. The client will encrypt its response with that public key, but
the MITM won't be able to decrypt it, because that requires knowing the
server's private key.

If the MITM sends a fake certificate, it won't be properly signed by the
CA, so the client should reject it.

This is the whole point of digital certificates -- if you trust the CA,
then they are unforgeable.

-- 
Barry Margolin, barmar@genuity.net
Genuity, Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.


Relevant Pages

  • Re: Can SSL sessions be compromised?
    ... etc) attachments using webmail during these SSL sessions. ... who the client thinks the server is ... ... part of this has to do with the fundamental digital certificate and PKI ...
    (comp.security.misc)
  • Re: [OT] Mal wieder was auf Telepolis
    ... Eingriff in die TCP-Session. ... Client baut TCP-Session auf. ... MITM bestätigt mit Absenderfake von Server. ... Client glaubt, er habe TCP zu Server, in Wirklichkeit hat er TCP zum ...
    (de.org.ccc)
  • Re: [OT] Mal wieder was auf Telepolis
    ... Client baut TCP-Session auf. ... MITM bestätigt mit Absenderfake von Server. ... Client glaubt, er habe TCP zu Server, in Wirklichkeit hat er TCP zum ... Verbindung zu Server auf. ...
    (de.org.ccc)
  • Re: [OT] Mal wieder was auf Telepolis
    ... Eingriff in die TCP-Session. ... Client baut TCP-Session auf. ... MITM bestätigt mit Absenderfake von Server. ... Client glaubt, er habe TCP zu Server, in Wirklichkeit hat er TCP zum ...
    (de.org.ccc)
  • Re: [OT] Mal wieder was auf Telepolis
    ... Client baut TCP-Session auf. ... MITM bestätigt mit Absenderfake von Server. ... Client glaubt, er habe TCP zu Server, in Wirklichkeit hat er TCP zum ...
    (de.org.ccc)