crt.sh just showed me every subdomain I own and I'm kinda rattled

xNova_

New Member
Messages
57
Reaction score
0
Location
Toronto, ON

So a buddy of mine in devops casually mentions certificate transparency logs like it's common knowledge and I'm sitting there like... what. Apparently every cert you issue gets logged publicly. Forever. And anyone can search them.

I ran my domain through crt.sh out of curiosity and there it was. Every subdomain I've ever put a cert on. staging., dev., old-admin., jenkins. (that one hurt), plus a bunch of stuff from a contractor who set up a subdomain for a demo in like 2019 and never cleaned it up. Some of those hosts are still live. Some resolve. I checked two of them and both loaded a login page over HTTPS with a perfectly valid cert.

Valid cert does NOT mean safe to expose, that's the part that took me a minute to internalize. It just means nobody can snoop the traffic. Doesn't mean the thing behind it isn't running PHP 5.6 with no rate limiting lol.

Anyway I've spent the last two evenings locking stuff down. Moved the internal ones behind the VPN, killed the dead subdomains at the DNS level, put basic auth in front of the two that have to stay public. Wildcard certs help here too since it means you're not issuing a new logged cert for every little hostname, though honestly the horse may already be out of the barn if you've been issuing certs for years.

What I'm still unsure about: does anything actually crawl these logs aggressively, or is this more of a "security researchers poke at it sometimes" situation? I keep seeing Censys and Shodan mentioned in the same breath. Feels like the answer is yes and I just got lucky that nobody cared about my little staging box.

If you've never checked yours, go look. Takes 30 seconds and it's a weirdly humbling experience.

wafflesRgood

New Member
Messages
57
Reaction score
0
Location
Berlin, DE

ok this sent me down a hole. I ran crt.sh on my own thing and yeah. there's a subdomain I genuinely do not remember creating, ends in like -test2 which means there was a test1 at some point. terrifying.

on your actual question though, from what I understand it's not "sometimes researchers poke at it." there are people and orgs that basically run continuous monitors on the logs, like they ingest every new cert as it gets issued in near real time. that's the whole point of CT, it's built so you can't quietly issue a cert. so a fresh cert for jenkins.yourdomain is a little ping going off somewhere. doesn't mean anyone acts on it, but it's not a dusty archive nobody reads either.

the part I'm still fuzzy on, does a wildcard cert keep the subdomains out of the log entirely? like if I just do *.mydomain.com does the log only ever show the star, or does it also log whatever I actually resolve it to? because if it's the latter then the wildcard thing is kind of pointless and I've been feeling smug about nothing.

also sorry, dumb question, but is there any way to get old entries removed? I'm guessing no since the whole "append only" thing is the point, but figured I'd ask before I spend another evening renaming stuff that's already out there forever lol

You must log in or register to reply here.