5 ms·
No expert, but even example.com isn't totally safe, right? According to the RFC (https://tools.ietf.org/html/rfc6761 https://tools.ietf.org/html/rfc6761), while
by aidos 6y ago
No expert, but even example.com isn't totally safe, right? According to the RFC (https://tools.ietf.org/html/rfc6761 https://tools.ietf.org/html/rfc6761), while these domains are reserved, nothing should treat them specially, so there's nothing to stop people having them routed somewhere else at the DNS level.
- gruez 6y agoAFAIK the domain is controlled by the IANA, so it's probably not too big of a security risk. If you really want to be paranoid you can set the site to be 0.0.0.0 or attacker.invalid.
- jefftk 6y agoattacker.invalid is good. So are <anything>.invalid, <anything>.test, or <anything>.example. They're all reserved and don't route.
- voxic11 6y agoMaybe on your system, but there is nothing in the standards which forbids them from being routable.
- gruez 6y agoBut by default they won't be routable. I guess you can shoot yourself in the foot and have entries in your /etc/hosts point to your attacker's site, but that's kind of hacking yourself.
- deleted 6y ago[deleted]
- morelisp 6y agoThe standard forbids (well, "should nots", which is the best you get most of the time) .invalid. from routing. It's supposed to be filtered at the nameserver API level and everything after that (cached DNS, authoritative DNS, registrar, etc.)
- marcan_42 6y ago0.0.0.0 is localhost, which is a great way to allow other software running on your computer to take the data and send it elsewhere. It's not a great IP address to use for "invalid". Yes, 0.0.0.0 really resolves to 127.0.0.1 on Linux at least. Try it.
- oefrha 6y agoNot saying 0.0.0.0 should be used in this case, but if you have data sniffing software listening on port 80 or 443 without your knowledge (or really any port at all, but especially a privileged port), you probably have much bigger things to worry about than some ad hoc PoC sending data there.
- gramakri 6y agoOr use .local
- cat199 6y ago.local is a bit problematic since there are RFC's explicitly stating this should only be resolved by multicast DNS which has its own security issues and also fallback lookup is somewhat undefined.
- LinuxBender 6y agoI agree. In my opinion, it would be useful if every browser and API client did something special with that domain. To the best of my knowledge, this is not the case. AFAIK I could easily plug that domain into my unbound servers which my SSL MITM proxy utilize and route traffic to it. If the client is not aware of a special domain, then you are dependent on the infrastructure to behave in a predictable manor. Attackers can alter that behavior.