How to tell a fake SSL certificate from a real one

How to tell a fake SSL certificate from a real one

Secure Home | Search | About
 General Computer Security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content add this group's latest topics to your Google content
Subject Author Date
How to tell a fake SSL certificate from a real one Joan Battaglia 10-27-2007
Posted by Joan Battaglia on October 27, 2007, 5:45 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
What does a forged SSL situation look like to the user logging into email?
Do you have an example?

I read with interest all the help kindly provided by the likes of helpful
folks like VanguardLH & mark carter & others - which basically concluded
Tor compromised mail login passwords under both circumstances
- http (the Tor gets your mail password in the clear)
- https (the Tor _could_ impersonate the "certificate")

So, I ask ... how can I tell if a certificate is impersonated by a rogue
Tor? I routinely say yes to all certificate requests because I never
understood them. Now I will take the time to read them.

But, what does a fake SSL situation look like?

For example, I just initiated a connection to my legimate router:
https://192.168.1.1
And it said (as it always does):
"Security Error: Domain Name Mismatch"
It went on:
"You have attempted to establish a connection with 192.168.1.1.
However, the security certificate presented belongs to Linksys.
It is possible, though unlikely, that someone may be trying to
intercept your communications with this web site.
It gave the recommendation:
"If you suspect the certificate shown does not belong to
192.168.1.1, please cancel the connection and notify the
site administrator?

Obviously this whole situation is a false alarm.

Does anyone have an example of a situation we can go to in order to see
what a "real" SSL forgery looks like to the user as they try to log into
their email web site?

Posted by on October 27, 2007, 6:48 pm
If you were  Registered and logged in, you could reply and use other advanced thread options

You maybe should read about assymetrical encryption, it's all about
SSL, in wikipedia. Also, you can see it "live", by loging into an SSL
server like gmail by using OpenSSL (or even Lynx)

OpenSSL will allow you to log into gmail throught an SSL telnet
session. POP 3 protocol commands work as usual.

Asymetrical encryption : Gmail sends you a huge random number, from
which you PC compute de public key and return it to google (for
encryption) and the private key which you use to decrypt datas send by
gmail. The public key can be used for encryption. and the privat key
is not send; So it should be secure ;) almost

L


Posted by DevilsPGD on October 27, 2007, 8:30 pm
If you were  Registered and logged in, you could reply and use other advanced thread options

>So, I ask ... how can I tell if a certificate is impersonated by a rogue
>Tor? I routinely say yes to all certificate requests because I never
>understood them. Now I will take the time to read them.

Good plan. In general, any error at all in a SSL certificate and you
should be suspicious.

You can pull the fingerprint and compare it against the fingerprint of
that same SSL certificate provided via another method (like from a
different internet connection, and not passing through Tor), and then
once you've confirmed the error, safely proceed, but otherwise, by
ignoring SSL errors you are all but not using SSL at all.

(Well, in practice you're raising the bar to snoop on your traffic from
just sniffing to man-in-the-middle attacks. Tor is ideal for
man-in-the-middle attacks since you're intentionally passing your
traffic through several more hosts)

>But, what does a fake SSL situation look like?
>
>For example, I just initiated a connection to my legimate router:
> https://192.168.1.1
>And it said (as it always does):
> "Security Error: Domain Name Mismatch"
>It went on:
> "You have attempted to establish a connection with 192.168.1.1.
> However, the security certificate presented belongs to Linksys.
> It is possible, though unlikely, that someone may be trying to
> intercept your communications with this web site.
>It gave the recommendation:
> "If you suspect the certificate shown does not belong to
> 192.168.1.1, please cancel the connection and notify the
> site administrator?

The example above is a perfect case of a forgery -- Your router has an
invalid certificate, and the SSL layer is offering virtually no
protection against anything other then casual snooping.

A more common forgery case would be a valid URL, valid not-expired
timestamp, but a certificate which was not signed by a trusted authority
(And is otherwise 100% valid and complete)

--
You can get more with a kind word and a 2x4 than just a kind word.

Posted by Anonymous on October 28, 2007, 6:52 am
If you were  Registered and logged in, you could reply and use other advanced thread options
DevilsPGD wrote:

>
> >So, I ask ... how can I tell if a certificate is impersonated by a rogue
> >Tor? I routinely say yes to all certificate requests because I never
> >understood them. Now I will take the time to read them.
>
> Good plan. In general, any error at all in a SSL certificate and you
> should be suspicious.
>
> You can pull the fingerprint and compare it against the fingerprint of
> that same SSL certificate provided via another method (like from a
> different internet connection, and not passing through Tor), and then
> once you've confirmed the error, safely proceed, but otherwise, by
> ignoring SSL errors you are all but not using SSL at all.

Agreed. The whole problem boils down to users not paying attention to
the warnings in front of their faces, or not using secure methods at
all.

> (Well, in practice you're raising the bar to snoop on your traffic from
> just sniffing to man-in-the-middle attacks. Tor is ideal for

MITM attacks have been occurring since long before Tor was ever in use.
Packages like dsniff have been around since the late 90's, including
specifc tools to spoof DNS, and then attack both SSH and SSL/HTTPS
connections. They're part of the reason SSH and SSL have evolved much
of their authenticity checking. My SSH client for example, absolutely
refuses to connect if keys change until the old key is manually removed
and the new one accepted.

Tor makes it a little easier for certain levels of technically inept
attackers to attempt certain attacks, but it in no way changes the
nature of the attack itself. The protocols and specifications will
protect you just the same over a Tor connection as they will a naked
connection.

> man-in-the-middle attacks since you're intentionally passing your
> traffic through several more hosts)
>
> >But, what does a fake SSL situation look like?
> >
> >For example, I just initiated a connection to my legimate router:
> > https://192.168.1.1
> >And it said (as it always does):
> > "Security Error: Domain Name Mismatch"
> >It went on:
> > "You have attempted to establish a connection with 192.168.1.1.
> > However, the security certificate presented belongs to Linksys.
> > It is possible, though unlikely, that someone may be trying to
> > intercept your communications with this web site.
> >It gave the recommendation:
> > "If you suspect the certificate shown does not belong to
> > 192.168.1.1, please cancel the connection and notify the
> > site administrator?
>
> The example above is a perfect case of a forgery -- Your router has an
> invalid certificate, and the SSL layer is offering virtually no
> protection against anything other then casual snooping.

???

The SSL certificate used by your router *must* be registered to the
router manufacturer, not some arbitrary IP address. This is a perfect
case of a valid certificate generating the warnings it's suppose to
generate because it's used in an implementation where it's impossible
to do it any other way and still maintain a secure connection to your
router. Linksys has no way of knowing that what your router's internal
IP address will be.

> A more common forgery case would be a valid URL, valid not-expired
> timestamp, but a certificate which was not signed by a trusted authority
> (And is otherwise 100% valid and complete)

Which also generates warnings and/or errors, and can't be installed or
even accepted by some software.

These types of forgeries are very uncommon though, because they require
that the attacker generate and selectively substitute unsigned
certificates for a whole range of potential targets. And do it in the
hopes that they're going to be the first one to submit the bogus
certificate to a potential victim, who in turn ignores the "unsigned"
warnings.

The chances of success are next to zero. It's a fruitless waste of
resources to generate certs with "Forged" UID's. Just as easy to
generate one, possibly even get it officially certified, and then
substitute that for the targets real certificate in hopes that a user
will miss the "changed" and/or "doesn't match" error.

SSL has been around for quite a while now. It's paid its dues. The
attacks we're talking about here are nowhere as easy to launch as some
people apparently think they are. Under normal circumstances (Tor usage
included) they're impossible to launch. It's only very rare cases of
user negligence or broken software where they'll have any chance at
success.


Posted by DevilsPGD on October 31, 2007, 2:16 am
If you were  Registered and logged in, you could reply and use other advanced thread options

>The SSL certificate used by your router *must* be registered to the
>router manufacturer, not some arbitrary IP address. This is a perfect
>case of a valid certificate generating the warnings it's suppose to
>generate because it's used in an implementation where it's impossible
>to do it any other way and still maintain a secure connection to your
>router. Linksys has no way of knowing that what your router's internal
>IP address will be.

Not at all. A self-signed certificate generated by the router with a
valid hostname would be best, since the user can simply install the
certificate once and never have warnings again.

Linksys simply cannot get a certificate registered for "192.168.0.1"
even if they wanted one.

Another option though, and this would be fairly trivial to implement if
Linksys (and others) were actually serious about security. Purchase a
certificate for "router.linksys.com", on the internet point that IP to
192.168.0.1 (or whatever is the standard for routers that use that
default) and then have the router's DNS server override that mapping and
supply the valid IP.

This would work for all browsers and all networks where the network uses
the router as a DHCP server, and the router passes DNS up to the ISP (as
is the case with most consumer grade routers)

As it is, they distribute a certificate which isn't valid, thereby
adding virtually no security, and worse, training users to ignore
certificate errors.

I consider that a negative in the grand scheme of things.

--
You can get more with a kind word and a 2x4 than just a kind word.

Similar ThreadsPosted
Howto setup a certificate authority and create a signed certificate using openssl on Debian sarge March 16, 2005, 10:39 am
What are the real dangers of shared hosting ? May 8, 2004, 7:25 am
Have real exploits of arithmetic overflows happened? February 13, 2007, 12:45 pm
Re: It's a fake terrorist scare, folks August 24, 2006, 6:05 pm
Re: It's a fake terrorist scare, folks August 15, 2006, 2:24 am
Re: It's a fake terrorist scare, folks August 16, 2006, 2:14 am
Re: It's a fake terrorist scare, folks August 18, 2006, 2:22 am
Re: It's a fake terrorist scare, folks August 18, 2006, 2:25 am
Re: It's a fake terrorist scare, folks August 20, 2006, 7:25 am
Re: It's a fake terrorist scare, folks August 24, 2006, 4:20 pm

The site map in XML format XML site map

Contact Us | Privacy Policy