Re:Why Is This Website Port Scanning Me?
by souterrain on Wednesday May 20, 2020 @10:44AM
(#23247423)
CORS is not in the hands of the user. I don’t want a CORS policy authorizing access to my intranet or localhost.
[ Parent
| on HN ]
Re:Why Is This Website Port Scanning Me?
by kevingadd on Wednesday May 20, 2020 @03:27PM
(#23250725)
CORS is set by the target, so localhost CORS policy is directly in the hands of the user. intranet CORS policy is set by whoever operates that intranet service
Re:Why Is This Website Port Scanning Me?
by souterrain on Wednesday May 20, 2020 @04:08PM
(#23251176)
You’re right; a bit of a brain fail there for me.
Still, doesn’t mitigate attacks against non-HTTP speakers.
Re:Why Is This Website Port Scanning Me?
by johncolanduoni on Wednesday May 20, 2020 @04:31PM
(#23251419)
It does in the sense that you won’t be able to control the websockets payload, so the target server generally won’t respond. The problem here is that the information leak is happening prior to any data being sent over TCP, so the fact that the server will drop the connection as invalid doesn’t help.
If the user decides to run a service on their intranet or localhost with a wide open CORS policy, isn't that their choice?
Forgoing CORS and making all inter domain requests user opt-in would make the web experience a lot worse, IMO. Making all intranet or localhost requests user opt-in seems less disruptive.
Re:Why Is This Website Port Scanning Me?
by souterrain on Wednesday May 20, 2020 @11:38AM
(#23248162)
However, TCP sockets can't publish CORS policies.
In the case of scanning, a CORS denial can still reveal information about the user's internal network, as a CORS denial is a different result than a network timeout or a TCP RST.