by diggan · 2y ago · 0 comments
It seems they're saying if you have a service listening to localhost (private), Chrome is supposed to not resolve 0.0.0.0 (public) to localhost, yet it currently does so.
So seems to me they're solving a security bug. But if I got this right, it's surprising how it got like that in the first place, doesn't make sense in any scenario I can think of to resolve 0.0.0.0 to localhost? Why would a browser try to resolve 0.0.0.0 to anything in the first place?
$ ping 0.0.0.0
PING 0.0.0.0 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.028 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.056 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.105 ms
...
$ nc 0.0.0.0 22
SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.10
...>>develop their tools / libraries according to whatever they feel it is the cool kids currently do?<<
versus:
>>adhere to the letter of the spec maliciously instead of understanding current practice.<<