News for hackers. Stuff that matters.
Re:A proposal to restrict sites from accessing a users' loca... by zaptheimpaler on Wednesday June 04, 2025 @03:25PM (#44184527)
I'm sure it will require some work, but this is the price of security. The idea that any website I visit can start pinging/exploiting some random unsecured testing web server I have running on localhost:8080 is a massive security risk.
Re:A proposal to restrict sites from accessing a users' loca... by duskwuff on Wednesday June 04, 2025 @03:34PM (#44184629)
Or probing your local network for vulnerable HTTP servers, like insecure routers or web cameras. localhost is just the tip of the iceberg.
Re:A proposal to restrict sites from accessing a users' loca... by donnachangstein on Wednesday June 04, 2025 @03:42PM (#44184705)
Can you define "local network"? Probably not. Most large enterprises own publicly-routable IP space for internal use. Internal doesn't mean 192.168.0.0/24. foo.corp.example.com could resolve to 9.10.11.12 and still be local. What about IPv6? It's a nonsense argument fraught with corner cases.
Re:A proposal to restrict sites from accessing a users' loca... by duskwuff on Wednesday June 04, 2025 @04:01PM (#44184883)
> Can you define "local network"?

Sure - a destination is "local" if your machine has a route to that IP which isn't via a gateway.

If your network is large enough that it consists of multiple routed network segments, and you don't have any ACLs between those segments, then yeah, you won't be fully protected by this browser feature. But you aren't protected right now either, so nothing's getting worse, it's just not getting better for your specific use case.

Re:A proposal to restrict sites from accessing a users' loca... by donnachangstein on Wednesday June 04, 2025 @04:28PM (#44185127)
> Sure - a destination is "local" if your machine has a route to that IP which isn't via a gateway.

Fantastic. Well, Google doesn't agree

The proposal defines it along RFC1918 address space boundaries. The spitballing back and forth in the GitHub issues about which imaginary TLDs they will or won't also consider "local" is absolutely horrifying.

Re:A proposal to restrict sites from accessing a users' loca... by account42 on Thursday June 05, 2025 @06:18AM (#44190181)
Cool so it will protect 99.999% of home networks. Compared to 0% which are protected now. Sounds great!
Re:A proposal to restrict sites from accessing a users' loca... by mystifyingpoi on Wednesday June 04, 2025 @03:48PM (#44184756)
Not to be snarky, but that's a good example of "perfect being the enemy of good". You are totally right that there are corner cases, sure. But that doesn't stop us from tackling the low hanging fruit first. Which is, as you say, localhost and LAN (if present).
Re:A proposal to restrict sites from accessing a users' loca... by eschaton on Wednesday June 04, 2025 @08:53PM (#44187254)
It should not even be able to communicate with the local network at all, it’s a goddamn web page. It should be restricted to just communicate with the server that hosts it and that’s it.
Re:A proposal to restrict sites from accessing a users' loca... by emushack on Wednesday June 04, 2025 @11:13PM (#44188012)
They define it the explainer this was originally based on: (https://github.com/WICG/private-network-access/blob/main/exp...)

Quote: We extend the RFC 1918 concept of private IP addresses to build a model of network privacy.

Concretely, there are 3 kinds of private network requests:

    public -> private
    public -> local
    private -> local
Re:A proposal to restrict sites from accessing a users' loca... by donnachangstein on Wednesday June 04, 2025 @03:32PM (#44184613)
You not knowing how to properly configure or secure a web server to allay your concerns should not become everyone else's problem.

Somehow this hasn't been a 'massive security risk' for the last 35 years but suddenly is in 2025?

Honestly a much bigger problem is sites like Yelp making nearly every link on their mobile site a phony redirect to the App Store. That shit is infuriating and a much bigger real world problem.

Re:A proposal to restrict sites from accessing a users' loca... by hollerith on Wednesday June 04, 2025 @03:39PM (#44184675)
The whole browser is a massive security leak. What genius thought it was a good idea for the web page I visit in the morning to get the weather forecast to be able to run arbitrary code and to communicate with arbitrary network hosts?