What about javascript code on a harmfull website that does requests to localhost?
It used to be possible to easily scan what sites are running locally, even if js code was from a public website. [0]
It used to be possible to easily scan what sites are running locally, even if js code was from a public website. [0]
If you're talking about using that exploit to allow access to the victim's machine from the internet: that won't work because listening interface for the x11 server is localhost, not the LAN interface.