This seems like a silly solution, considering we are in the middle of IPv6 transition, where local networks use public addresses.
A proposal to restrict sites from accessing a users’ local network
81–90 of 392 posts
Re: A proposal to restrict sites from accessing a users’ local network
#82Earlier quoted context omitted.
problem is: without allowing it webUIs like synology won't work, since they require your browser to connect to the local network... as it is, it's not great
This proposal is for websites outside your network contacting inside your network. I assume local IPs will still work.
Re: A proposal to restrict sites from accessing a users’ local network
#83This seems like a silly solution, considering we are in the middle of IPv6 transition, where local networks use public addresses.
(And then corporate/enterprise managed Chrome installs could have specific subnets added to the allow list)
Re: A proposal to restrict sites from accessing a users’ local network
#84Re: A proposal to restrict sites from accessing a users’ local network
#85This has the potential to break rclone's oauth mechanism as it relies on setting the redirect URL to localhost so when the oauth is done rclone (which is running on your computer) gets called. I guess if the permissions dialog is sensibly worded then the user will allow it. I think this is probably a sensible proposal but I'm sure it will break stuff people are relying on.
As noted in another comment this doesn't work unless the server responding provides proper CORS headers allowing the content to be loaded by the browser in that context: so for any request to work the server is either wide open (cors: *) or are cooperating with the requesting code (cors: website.co). The changes prevent communication without user authorization.
Re: A proposal to restrict sites from accessing a users’ local network
#86I like this on the first glance. The idea of a random website probing arbitrary local IPs (or any IPs for that matter) with HTTP requests is insane. I wouldn't care if it breaks some enterprise apps or integrations - enterprises could reenable this "feature" via management tools, normal users could configure it themselves, just show a popup "this website wants to control local devices - allow/deny".
This is a misunderstanding. Local network devices are protected from random websites by CORS, and have been for many years. It's not perfect, but it's generally quite effective. The issue is that CORS gates access only on the consent of the target server. It must return headers that opt into receiving requests from the website. This proposal aims to tighten that, so that even if the website and the network device bot…
Re: A proposal to restrict sites from accessing a users’ local network
#87Do note that since the removal of NPAPI plugins years ago, locally-installed software that intends to be used by one or more public websites has to run an HTTP server on localhost. It would be really annoying if this use case was made into an unreasonable hassle or killed entirely. (Alternatively, browser developers could've offered a real alternative, but it's a bit late for that now.)
Re: A proposal to restrict sites from accessing a users’ local network
#88I propose restricting android apps, not websites.
If you rely on users having to click "yes", then you're just making phones harder to use because everyone still using Facebook or Instagram will just click whatever buttons make the app work.
On the other hand, I have yet to come up with a good reason why arbitrary websites need to set up direct connections to devices within the local network.
There's the IPv6 argument against the proposed measures, which requires work to determine if an address is local or global, but that's also much more difficult to enumerate than the IPv4 space that some websites try to scan. That doesn't mean IPv4 address shouldn't be protected at all, either. Even with an IPv6-shaped hole, blocking local networks (both IPv4 and local IPv6) by default makes sense for websites originating from outside.
IE did something very similar to this decades ago. They also had a system for displaying details about websites' privacy policies and data sharing. It's almost disheartening to see we're trying to come up with solutions to these problems again.
Re: A proposal to restrict sites from accessing a users’ local network
#89What is so hard in blocking apps on android from listening on random ports without permission?
Listening on a specific port is one of the most basic things software can possibly do. What's next, blocking apps from reading files?
Plus, this is also about blocking your phone's browser from accessing your printer, your router, or that docker container you're running without a password.
Re: A proposal to restrict sites from accessing a users’ local network
#90Earlier quoted context omitted.
This needs more detail to make it clear what you are wishing for that will not happen. It seems like you're thinking of a specific application, or at least use-case. Can you elaborate? Once you're launching an application, it seems like the application can negotiate with the external site directly if it wants.
#1 use case would be a password manager. It would be best if the browser plugin part can ping say, the 1password native app, which runs locally on your pc, and say "Yo I need a password for google.com" - then the native app springs into action, prompts for biometrics, locates the password or offers the user to choose, then returns it directly to the browser for filling. Sure you can make a fully cloud-reliant PW mana…