Solving the expiring. X.509 root CA certificate-mageddon, partly at least

栏目: IT技术 · 发布时间: 4年前

内容简介:Thanks to the Internet, even non-technical users are now exposed to Public Key Infrastructure (PKI), for secure and authenticated communications and code signing.However, there are problems brewing with PKI — largely because it’s getting old and neglected.

Thanks to the Internet, even non-technical users are now exposed to Public Key Infrastructure (PKI), for secure and authenticated communications and code signing.

However, there are problems brewing with PKI — largely because it’s getting old and neglected.

The X.509 public key certificate standard that is commonly used to secure protocols like Transport Layer Security (TLS) is ancient (at least by the pace of Internet development).

It was issued in 1988 by the International Telecommunications Union as part of its X.500 series of computer directory standards, and was adapted by the Internet Engineering Task Force for Internet use in 1995-96 and updated over the coming decades.

This is stuff that’s been around for a long time, and it tends to just work. After all, most of the implementation heavy lifting has been done for users.

But this ease of use is a double-edged sword. Few people bother to check under the hood unless it’s absolutely necessary, like when thingsgo wrong.  

Clock ticking on certificates

Self-confessed BBC hacker in residence Scott Helme is one of those who have delved deep into Internet PKI, and he has sounded the alarm about Root Certificate Authorities (CAs) reaching their end of life for the past couple of years.

Root CA self-signed certificates are embedded in software and hardware and Scott noted that there are some very old ones out there that have existed for 20 to 25 years.

They have started to expire, like the AddTrust External CA Root, which reached its end of life on 30 May 2020 (UTC).

The expiry of the old AddTrust Root CA certificate caused service outages for streaming content services and payments processors that used it.

Even though the issuer of the root certificate had given a reasonable amount of warning , some well-known corners of the Internet missed it and didn’t upgrade their software.

Why did that happen? Well, partly because nothing like it has taken place before so the issue hasn’t received enough attention.

“I feel like everyone has built stuff on top of Internet PKI and, for the most part, it ‘just works’. These root certs are among the first expiring and the first time we’ve seen this issue on the web,” Scott said.

It’s not so much that people parked the problem, even though two decades ago 2020 must have seemed such a long time away and the issue could be dealt with there and then.

“To be honest, my guess is that they didn’t even think that much about it,” Scott said.

As the AddTrust legacy root certificate expiry shows, this is not a problem that can be ignored. Worse, when certificate expiry strikes, it could cause breakage for scores of users with no apparent reason as to why their devices no longer work.

As of writing, a large number of Samsung Blu-Ray players around the world are stuck in a reboot loop .

Although customers are still waiting for the official word on the issue, the suspicion is that the problem is caused by an expired certificate that stops the device firmware from booting properly, possibly because of strict digital rights management requirements that require verification and signing before full start-up of the players.

As Scott points out, there are hundreds of ageing Root CAs out there, many more when you include the intermediates. Over the next few years, more will expire.

How do we deal with this then?

On the face of it, the fix for the problem is simple. The Root CA certificates need to be updated.

The reality, as Let’s Encrypt found out last year, is that not every device continues to receive updates. Even if they do, upgrades aren’t always installed.

We’re not talking about really old gear either; Scott mentioned devices that are two to eight-years-old missing out on updates.

Finding the certs that are about to expire is possible in some cases but not all.

“Yes and no, it depends on which part of the connection you control,” Scott said.

“If you’re a vendor making a software product that is the client and connects to another service then, yes, you can make sure the certs in your product are good,” he added.

“If you run a server and clients are connecting to you, like in my post the BBC are the Server (iPlayer API) and the TV is the client, there is no way for them to look into the client like that.

“In that scenario it’d be the responsibility of the TV manufacturer to keep their product up to date,” Scott said.

What’s best practice here then?

“There probably isn’t one; this isn’t an issue we’ve experienced before because the web isn’t old enough. It’d involve looking at your infrastructure and highlighting anywhere you depend on the Internet PKI.

“From there you’d need to work through all of the certificates you depend on,” Scott said.

For anyone who depends on certificates for secure communications, like most of us do these days, taking the time to look at your current validation chain and really understand it is key.

“Could you build an alternative path if needed and might you need to at some point in the future?” Scott asked.

If the answer is yes, have a read of Scott’s suggestions on how to do it.

There are always more ways to skin a cat

If by now you’ve come down with a headache and the realization that countless expiring Root CA certificates will be a recurring problem, especially for retail-oriented devices, you’re not alone.

Maybe there’s a different approach that doesn’t result in a long slog of monitoring expiry dates?

Cryptographer Peter Gutmann, who among other things wrote a developer’s style guide for X.509 , put it succinctly: 

“Assuming that the entire world is the web is the problem.”

“PKI is built around the assumption that everything is the web, with zero consideration paid to any other use,” Peter said.

“Wishing you could magically teleport updates into every piece of IoT and whatnot on the planet and then the problem is solved is a manifestation of this wrong thinking,” Peter added.

Peter’s fix is an easy one:

“For embedded and SCADA devices, alongside anything on an RFC 1918 LAN, the only appropriate expiry date for a certificate is never.”

Likewise, in some situations it’s worth noting what Peter said above, which is that not the entire world is the web.

A recent security scare involving Security Assertion Markup Language (SAML), used for authentication on Palo Alto Networks devices running PAN-OS, had the United States Cyber Command tell users to patch the vulnerability double-quick.

Please patch all devices affected by CVE-2020-2021 immediately, especially if SAML is in use. Foreign APTs will likely attempt exploit soon. We appreciate @PaloAltoNtwks ’ proactive response to this vulnerability.

https://t.co/WwJdil5X0F
— USCYBERCOM Cybersecurity Alert (@CNMF_CyberAlert) June 29, 2020

Although the critical vulnerability is easy to exploit, it wasn’t so easy to figure out why the SAML implementation was wrong.

Microsoft identity architect, Ryan Newington, explained why:

[Thread] We discovered the Palo Alto SAML vulnerability (CVE-2020-2012). There’s lots of confusion about the role of the ‘Disable cert validation’ check box in this issue. TLDR; Having this turned off is standard, expected, and not bad practice. Patch your PA, and leave this off.

— Ryan Newington [MVP]  (@RyanLNewington) June 30, 2020

Sometimes, overdoing things can be just as bad as not doing enough.

Juha is a technology writer and journalist, based in New Zealand. He is a contracted contributor to the APNIC Blog .

Rate this article

The views expressed by the authors of this blog are their own and do not necessarily reflect the views of APNIC. Please note aCode of Conduct applies to this blog.


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

数学与泛型编程

数学与泛型编程

[美]亚历山大 A. 斯捷潘诺夫(Alexander A. Stepanov)、[美]丹尼尔 E. 罗斯(Daniel E. Rose) / 爱飞翔 / 机械工业出版社 / 2017-8 / 79

这是一本内容丰富而又通俗易懂的书籍,由优秀的软件设计师 Alexander A. Stepanov 与其同事 Daniel E. Rose 所撰写。作者在书中解释泛型编程的原则及其所依据的抽象数学概念,以帮助你写出简洁而强大的代码。 只要你对编程相当熟悉,并且擅长逻辑思考,那么就可以顺利阅读本书。Stepanov 与 Rose 会清晰地讲解相关的抽象代数及数论知识。他们首先解释数学家想要解决......一起来看看 《数学与泛型编程》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

在线进制转换器
在线进制转换器

各进制数互转换器

URL 编码/解码
URL 编码/解码

URL 编码/解码