Podcast
Root Causes 223: CT Log-Enabled Attacks on WordPress Sites
Hosted by
Jason Soroko
Fellow
Original broadcast date
May 13, 2022
Attackers are using CT logs to identify brand new WordPress sites and install malware before upcoming security measures are in place. This attack is novel in how it exploits Certificate Transparency information to identify likely targets. In this episode we explain what is happening and why it's noteworthy.
Podcast transcript
Lightly edited for flow and brevity.
TCTim CallanThis is new to me. I’d say an exploit that has a new angle that I’ve ever heard of before, and the gist of it is WordPress sites with newly issued certificates are being exploited before the certificates are installed. What seems to happen is that this information is being gotten in a very timely fashion from Certificate Transparency Logs, CT logs, and then from there, the bad guys are using the time gap between when the certificate is issued and when it’s installed to go in to the non-SSL site, which I suppose it matters for some reason, and get their, I think it’s their malware on there. Am I getting that right, Jay?
So, let’s think about that for a moment. The bad guys have this – are taking advantage of this unintended consequence of CT logs which is basically, they’re getting information publicly, just like everybody else does, about brand new certificates. It may not absolutely mean that it’s a brand new site. It may not mean but they’re taking the 80/20 Rule, probably saying it probably is. I would say here the fact that WordPress comes up so much in this topic is probably because there might be a bad practice people are doing, and this was mentioned in an article that we were looking at, and it makes a lot of sense. The fact that you really don’t want to be exposing a WordPress site that’s been just set up and not locked down and secured and then expose that to the public internet. So in other words for those of you who know how to build a simple website, the analogy here is think of the equivalent of your index.html file, which directs you to – here is the website I want you to look at whenever somebody does browse to you. You probably want to direct that somewhere else direct it to a, we’re getting ready page or something rather than the site itself because of the fact that a WordPress site in its infancy probably isn’t I guess the right way of saying it is, it is probably vulnerable until it has been made not vulnerable by some work. And so the certificate is part of that.
TCTim CallanOne of the questions I had was, is it that the absence of the certificate itself exposes this vulnerability, or is it that the absence of the certificate suggests that this is, as you say, an infant site that is not yet - doesn't have all of the other safeguards in place either and so, the two are correlative, New certificate is correlative to a site that I can penetrate. I’m suspecting it’s the second, but - -
TCTim CallanBecause other than that, it’s a little funny, like, why does the presence of an SSL certificate matter to whether or not you can install your malware? There are a couple interesting things here. One is, one possibly why so much discussion is around WordPress is just because it’s so insanely popular. We had conversation not too long ago in an earlier podcast about how when a SaaS application gets big enough, it itself becomes a legitimate environment to hatch customized attacks. And if that’s the case, WordPress absolutely makes the list. So, that could have to do with it as well, I would think.
TCTim CallanWordPress will tend to skew toward smaller businesses in a very big way, and therefore, you might say, well less value in those targets overall, but in this case these guys are using it to create a Botnet for DDoS attacks. So, lots of small sites are great for that. Work really well.
TCTim CallanSure. So, the other angle that I found so interesting about this, of course, and you already hinted at this, is the CT angle in all of this. Like, Certificate Transparency was created for express purposes to do specific things that are valuable and worthwhile, and it does those things. And yet, somebody has come up with this other way to use Certificate Transparency that is very much to the detriment of the security of the internet. You mentioned unintended consequences. I think this is a perfect illustration of that sort of thing in action.
TCTim CallanSure, but there’s probably, like in this case, it’s probably automated. Surely this is automated. It picks it up from the CT log, an automated attack goes out because it has to be very timely, and it’s got to work. Whatever happens to happen with that certificate, and at that point, it just a percentage game. You say, ok, well, as long as there is non-trivial percentage of these sites, these target sites, that are going to be victimized that my attack will get through on, then it’s worth my while to run this automated attack and get through when I get through especially if part of what you're doing is you're then using them to continue the automated attack. And so, in that regard, that’s another reason maybe why WordPress makes good sense. It is open-source, it is inexpensive, it’s used by small business – these are all of the things that are going to correlate with holes in security or security that hasn’t been implemented in as timely of a fashion. Again, if you're doing this kind of thing, you're playing the odds and you don’t need everyone to work, you just need enough of them to work, so correlative signals are very good, and new SSL Certificate is definitely a signal.
TCTim CallanThat’s really what that service is for. That’s a designated service that’s designed to deal with exactly this kind of situation and as you said, is very effective with WordPress.
The other thing I find interesting about this attack, not just the unintended consequences of it, but the innovation, like, don’t think the bad guys are stupid. These are bad guys that came and came up with the unique angle for a way to use CT logs in order enable and exploit that – the industry didn’t foresee. All the smart guys at the browsers and the CAs and everybody else who has to do with CT logs, and journalists and industry watchers; that community didn’t foresee this. But, somebody who was seeking an exploit did, and that’s also part of the, that’s part of the ground conditions that we’re dealing with.
The other thing I find interesting about this attack, not just the unintended consequences of it, but the innovation, like, don’t think the bad guys are stupid. These are bad guys that came and came up with the unique angle for a way to use CT logs in order enable and exploit that – the industry didn’t foresee. All the smart guys at the browsers and the CAs and everybody else who has to do with CT logs, and journalists and industry watchers; that community didn’t foresee this. But, somebody who was seeking an exploit did, and that’s also part of the, that’s part of the ground conditions that we’re dealing with.
TCTim CallanI’m thinking of another similar thing to that. This isn’t about CT logs in particular. Well it is. It’s not about this attack in particular, but one of the things that we see is GDPR, of course, contains, one of the provisos it contains is the right to be forgotten. Which is, you can go to somebody who is using your data and say, erase my data, and you can’t erase data from CT logs. You cannot. It’s not editable. It would break the log, and so, certainly there are cases where people who probably don’t understand the nuances of GDPR fully come and say – erase my certificate information from these CT logs or again, we operate crt.sh. They come to us and say don’t report it in crt.sh. And we have to say, I’m sorry, that’s just not how the computer technology works. And, fortunately, the GDPR rules allow for that. But you got a public who doesn’t quite understand that necessarily who is coming and demanding to be “forgotten” from what is essentially an unforgettable or an unforgetting log.
TCTim CallanCT logs certainly, I’m a big believer. I think they’ve been very healthy for the industry, but it’s interesting how somebody has found an exploit and has taken what is a very good thing and found a way under specific circumstances to weaponize it.