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 33. HTTPS Sucks; Let’s Kill It!

It’s almost impossible to deploy SSL (and its successor, TLS) in a way that leaves everybody actually secure. SSL is great at providing a false sense of security, and not too much else. But, HTTPS (which is a variation of the HTTP protocol that enforces the use of SSL) is even worse, because it is impossible to protect everybody with it.

First, let’s look at applications built using SSL. With most APIs, you can connect easily, with very little code, but the connection isn’t validated. You just connect, and you have no idea who you’re talking to. The server has even less idea. Usually you do some sort of login jig after that, but there’s no guarantee that someone isn’t sitting in the middle.

Well, maybe you’re a smarter developer than that, and you do certificate checking. It’s rare, but it does happen. Or maybe you’re using an API that does some certificate checking. There are still a million ways to get shot in the foot. Many apps check to see that a server certificate is actually signed, but don’t validate anything else about the certificate. Many apps check all the data in the certificate but allow self-signed certificates—hey, the bad guy can self-sign a certificate. Many apps give you the option to trust or even revert to no encryption if something fails, and people never expect that the worst will happen to them.

The makers of HTTPS were smarter than that. The HTTPS protocol specifies the validation that has to happen, and it is all the ...

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