topics that matter; ideas worth sharing

share a tip, submit a link, add something new

An SSL Vulnerability for the Masses

August 20, 2002, 12:00 AM —  ITworld — 

Those of you following the news have probably heard about a recent SSL
authentication bug [1] in Internet Explorer discovered by Mike Benham.
This would be an excellent time to laugh at yet another Windows bug if
it weren't for the fact that this same bug is found in Konqueror, the
KDE browser. To understand the bug, let's take a look at how a browser
correctly authenticates a Web server.

The Web server has a public and private key installed that it uses for
encryption and authentication. When the browser connects, the Web server
presents it's public key. Certificate Authority -- an overpaid entity
such as VeriSign that says, "Yes, this key belongs to this site" --
signs this public key. (For more details about what SSL does and does
not protect, even when implemented properly, see [2].)

The browser has a hard-coded list of acceptable Certificate Authorities.
It will check the CA signature that is part of the server's certificate
and verify that it is signed by one of these trusted CAs. If it is not,
either the connection is dropped or you are assaulted with a series of
warning dialogs.

Some site certificates are not signed directly by a CA key, but by
intermediary CAs as part of a certificate chain. For example if you have
a trusted Certificate Authority, "Foo Security, Inc.", and that CA has
signed an Intermediate Certificate Authority for "Bar None Security",
then Bar is allowed to sign server certificates such as www.example.com.
This certificate chain would look something like this:

Certificate Type Trust Level
www.example.com: server cert Signed by Bar None Security
Bar None Security: Intermediate CA Signed by Foo Security, Inc
Foo Security, Inc: Root CA Implicit trust - installed in
browser

The problem with IE and Konqueror is that they simply verified that cert
Foo signed cert Bar, which signed www.example.com. They did not verify
that Bar was an Intermediate Certificate Authority. What does this mean?
If I had a valid certificate for some domain, say www.my_domain.com, I
can use it to sign any server certificate I want. For example:

www.big_bank.net: server cert Signed by www.my_domain.com
www.my_domain.com: server cert Signed by Foo Security, Inc
Foo Security, Inc: Root CA Implicit trust - installed in
browser

So, what to do? Well Konqueror had a fix available in an hour and a
half. If you're using the CVS version of KDE, recompile Konqueror and
you'll be all set. The fix is part of KDE 3.0.3, which is being released
pretty soon. Most Linux distributions either have or are preparing
updated packages.

If you're using IE then you have a longer wait in front of you.
Microsoft says that the bug is in the OS, not in IE. The certificate
checking code is not part of the CryptoAPI, a cryptography library used
by several other Microsoft programs, so the bug only affects IE. Why the
code isn't in the CrytoAPI, I can't imagine. And why the broken code -
which is in the OS, not in IE -- would only affect IE, I'll leave to
your imagination. But expect to wait a while. Microsoft doesn't see
broken SSL as a pressing security problem.

To read more about this vulnerability, see Benham's original BugTraq
post [1]. He also provides a proof-of-concept tool, sslsniff [3] that
can transparently perform man-in-the-middle attacks on SSL sessions.
This tool differs from the webmitm [4] tool that is part of Dug Song's
dsniff package, which uses a randomly generated SSL certificate and thus
sets off many warning dialog boxes on most browsers.

NOTES:

[1] http://www.thoughtcrime.org/ie.html
[2] http://www.hackinglinuxexposed.com/articles/20020423.html
[3] http://www.thoughtcrime.org/ie-ssl-chain.txt
[4] http://www.monkey.org/~dugsong/dsniff/

» posted by ITworld staff

ITworld

I like it!
Post a comment
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
Resources
White Paper

Symantec Backup Exec 12 and Backup Exec System Recovery 8 deliver industry leading Windows data protection and system recovery. Download this whitepaper to find out the top reasons to upgrade and how to get continuous data protection and complete system recovery.

Webcast

Data and system loss — from a hard drive failure, malicious attack, natural disaster, or simple human error — can happen anytime. Don’t leave your business vulnerable. Make sure you have a secure recovery strategy in place. Symantec's latest backup and system recovery technology can efficiently restore critical applications, individual emails and documents and even restore your entire system in minutes in the event of a loss.

White Paper

Businesses face a growing challenge to ensure that the IT environment is properly protected. Backup Exec 12 integrates with other applications in the Symantec family of products, to complement your current data protection strategy, keep your data securely backed up and make it recoverable when you need it most.

Free stuff
Featured Sponsor

Get a broad understanding of important regulations and how you can make sure your site is in adherence.





Learn how VeriSign SGC-enabled SSL Certificates can help improve site security and customer confidence in the free white paper, "How to Offer the Strongest SSL Encryption." In this paper you will learn the differences between weak and strong encryption and what they mean for your site's performance.

Get VeriSign's free white paper: "The Latest Advancements in SSL Technology" and learn about the benefits of strong SSL encryption, Extended Validation (EV) SSL and security trust marks and what these SSL offerings can do for your site.

Now with Extended Validation (EV) SSL available from VeriSign, you can show your customers that they can trust your site. Learn about EV SSL benefits in this free VeriSign white paper.

More Resources