News for hackers. Stuff that matters.
Re:Nike.com's robots.txt by dijit on Friday February 11, 2022 @07:38AM (#30300707)
While I'm in general not a fan of wildcard certificates, yours doesn't work for the bare domain: https://i.imgur.com/uKVK5xd.png

I was hitting it plaintext first, so a simple redirect to some subdomain instead of a bare redirect to https would probably work fine.

Re:Nike.com's robots.txt by marginalia_nu on Friday February 11, 2022 @07:48AM (#30300794)
Hmm, curious behavior. I'm not getting that in any of the browsers I can run. Maybe some safari-specific interpretation?

I don't trust letsencrypt and I don't want to give them or anyone else a list of which subdomains I use.

Re:Nike.com's robots.txt by jffry on Friday February 11, 2022 @08:12AM (#30301015)
There may be some type of caching problem. When I visit https://marginalia.nu directly, I'm served with this cert, which does not include the apex domain: https://crt.sh/?id=6046506678

When I visit https://search.marginalia.nu I'm served with this different cert, which does include both wildcard and apex: https://crt.sh/?id=6125359537

Re:Nike.com's robots.txt by input_sh on Friday February 11, 2022 @08:09AM (#30300987)
It's simple, your cert points to *.domain.tld, domain.tld doesn't have a subdomain, <anything>.domain.tld does. You should expand it to include both domain.tld and *.domain.tld.
Re:Nike.com's robots.txt by jffry on Friday February 11, 2022 @08:13AM (#30301034)
It seems like a bad cert is being served at the redirect; the LE cert at https://search.marginalia.nu DOES have both the wildcard and apex domain

See https://news.ycombinator.com/item?id=30301015

Re:Nike.com's robots.txt by MonaroVXR on Friday February 11, 2022 @07:15PM (#30308657)
> .domain.tld

Oof, I'm not sure if I would do that. Since "" stands for all sub domains.

Re:Nike.com's robots.txt by timvdalen on Friday February 11, 2022 @07:55AM (#30300868)
I can at least reproduce it in Chrome, for what it's worth. Perhaps you have the redirect to www cached?
Re:Nike.com's robots.txt by marginalia_nu on Friday February 11, 2022 @07:57AM (#30300887)
On an Apple or another OS?
Re:Nike.com's robots.txt by seszett on Friday February 11, 2022 @08:11AM (#30301006)
I can reproduce it even just with curl on Linux.

The certificate is only for "*.marginalia.nu", which simply doesn't cover "marginalia.nu". It should give the same error on any platform and browser, unless their SSL implementation is broken.

Some browsers try to be smart and insert www automatically though.

Re:Nike.com's robots.txt by Ronsenshi on Friday February 11, 2022 @07:57AM (#30300886)
I would recommend getting certificate which includes root domain and wildcard subdomains to cover all bases.
Re:Nike.com's robots.txt by jffry on Friday February 11, 2022 @08:08AM (#30300977)
The cert I am seeing [1] does include both the wildcard subdomain AND the apex domain

[1] https://crt.sh/?id=6125359537

Re:Nike.com's robots.txt by seszett on Friday February 11, 2022 @08:15AM (#30301046)
That's not the certificate I get served though (this one is from 5 february, the one served is from 25 january) do you actually get this certificate on https://marginalia.nu?
Re:Nike.com's robots.txt by jffry on Friday February 11, 2022 @08:19AM (#30301096)
I misunderstood what URL we were talking about. What I am seeing:

https://marginalia.nu = https://crt.sh/?id=6046506678 (includes wildcard but NOT apex)

https://search.marginalia.nu = https://crt.sh/?id=6125359537 (includes both wildcard and apex)

Re:Nike.com's robots.txt by marginalia_nu on Friday February 11, 2022 @08:26AM (#30301178)
Ah, I see what's happening. search.marginalia.nu goes through cloudflare which does its creepy MITM thing and re-encrypts on its end; the others do not.
Re:Nike.com's robots.txt by wizzwizz4 on Friday February 11, 2022 @08:41AM (#30301339)
Why does marginalia.nu use Cloudflare? Have you been hit by DDOSs? I can't think how a search engine would benefit from Cloudflare caching things.
Re:Nike.com's robots.txt by marginalia_nu on Friday February 11, 2022 @08:43AM (#30301363)
Yeah, It's 100% about bot mitigation. I got hit pretty bad by some botnet a while back, saw 10-15 searches/second. Can't have nice things on the Internet I guess.

Don't really understand their motive either. Maybe they thought I was cloud hosted or used some expensive API to do searches and were attempting to rack up big bills or something.

Re:Nike.com's robots.txt by wizzwizz4 on Friday February 11, 2022 @08:47AM (#30301415)
:-|

I wish I had a good solution to this. Cloudflare to mitigate DDOS attacks has somewhat of a “baby with the bathwater” vibe (considering how much of a pain it is if you can't pass the CAPTCHA, or if you're on Tor), but I can't think of an alternative.

Re:Nike.com's robots.txt by marginalia_nu on Friday February 11, 2022 @08:50AM (#30301439)
:-| indeed.

I've considered having a naked endpoint with a rate limiter that, when it hits some ceiling (dunno, sustained load of 2 RPS or so), offers the alternatives of going through an unlimited cloudflared domain, or waiting until the bots give up. But that might be annoying too.

Re:Nike.com's robots.txt by wizzwizz4 on Friday February 11, 2022 @09:08AM (#30301631)
You could try to push forward the frontier of accessible CAPTCHAs. You just need some tasks that basically all humans can do, but barely and bots can, that don't rely on vision, hearing, emotional response or cultural knowledge. Should be easy, right?