Skip to Content
The Myths of Security
book

The Myths of Security

by John Viega
June 2009
Beginner
260 pages
5h 40m
English
O'Reilly Media, Inc.
Content preview from The Myths of Security

Chapter 32. An Attack on PKI

About three years ago, I was having breakfast with a friend of mine who was talking about a particular appliance product that claimed to be capable of transparently/silently intercepting all SSL/TLS traffic so that it could be inspected. He was asking me how this might be done.

In the SSL/TLS protocol, the client is supposed to validate the server. The server presents a certificate that is digitally signed, possibly with multiple signatures. The client is supposed to look at all the signatures and try to trace the lineage back to a trusted source so it knows all the endorsements on the certificate have been validated. To this day, many applications don’t do this check at all, and just ignore the server certificate. Or they do insufficient validation of the certificate (for instance, looking to see that VeriSign has endorsed it, but not looking to see if it is the expected vendor’s certificate).

Well, you can certainly do it if all the clients are set up to use SSL/TLS through a proxy server. Or, you could install a root certificate on all your clients and lie to them about who they’re talking to. Or, you could just replace the valid certificate with one of your own, and most applications won’t notice (though web browsers will generally prompt users with a security warning the first time they see the certificate). The appliance in question was probably taking one of these approaches. But it struck me that there was another, more devious way.

The trick is ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Security Policies and Implementation Issues, 3rd Edition

Security Policies and Implementation Issues, 3rd Edition

Robert Johnson, Chuck Easttom
A Leader's Guide to Cybersecurity

A Leader's Guide to Cybersecurity

Thomas J. Parenty, Jack J. Domet
The Human Factor in AI-Based Decision-Making

The Human Factor in AI-Based Decision-Making

Philip Meissner, Christoph Keding

Publisher Resources

ISBN: 9780596803957Errata Page