11 ms·
The backstory on this, if you don't follow web security at all, is that building public web pages to trick browsers into talking to private networks (or your lo
by tptacek 5y ago
The backstory on this, if you don't follow web security at all, is that building public web pages to trick browsers into talking to private networks (or your loopback interface) is a surprisingly pernicious attack vector. The modern countermeasure for this is to require devices parked on private networks to opt-in to the ability mix public Internet requests with private network accesses, using CORS, which is what this is about.
You should probably be mostly thrilled about this development.
- api 5y agoThis is why one of my security mantras has become: if it is not secure enough to connect to the open Internet, it is not secure at all. That doesn't necessarily mean you connect it to the open Internet, but it means you don't leave everything inside wide open because "oh there's a firewall." It also means buggy vulnerable IoT (Internet of Targets) stuff has to be dealt with. Firewalls are almost security theater. They're just a basic precautionary thing. Same goes for virtual and zero trust networks. Systems must be secure, period.
- cmaggiulli 5y agoSo would this be like creating a public webpage called “help troubleshoot my router”, and having that webpage serve up malicious JavaScript which attempts to attack my routers local web server?
- deleted 5y ago[deleted]
- Ajedi32 5y agoBeen following this for a while; I'm really surprised it's taken so long for browsers to begin to address this problem. It's kinda crazy that random websites can just send any HTTP request they want to your private network or local PC with no restrictions; that's a pretty huge attack surface to expose to the public internet. Even this measure by Chrome is extremely limited, as it sounds like they're only blocking insecure (HTTP) sites from making requests to your private network. HTTPS sites are unaffected (for now).
- apostacy 5y agoThis is infuriating. Google is once again severely hampering openness and accessibility in the name of security. The web is more than just the big CDNs. It is not all about your business model. If I can not use your browser to open a socket to a routable host and render the data, then it is not a web browser anymore. But I don't think Chrome has been one for awhile. Google's logical conclusion is to only allow you to connect to a whitelist of sites that they have control over. For that matter, domain names themselves are obsolete, we should just have AOL-style keywords like 'amazon' and 'facebook'. Only a poweruser weirdo would want to have their own website. Users could also be tricked into adding their own self signed certificates, or having their own private DNS. It would not at all surprise me if that is banned soon as well. I can't count the number of things that this would break, especial VPN accessible intranets. Having users register with some outside service for getting a private network SSL certificate is a no go. That is like saying that a platform is open because submitting to their app store is free. If I have to rely on an outside authority then it is no longer federated, and it is no longer the web. Which is fundamentally what they want. > It's kinda crazy that random websites can just send any HTTP request they want to your private network or local PC with no restrictions; that's a pretty huge attack surface to expose to the public internet. I don't think there will be any restrictions on what advertising and tracking CDNs a webpage can make requests to, so long as they have their certificates in order and are not on a private network. I'm sure that when I go to log into my bank it will still happily connect to 12+ different analytics services. I do think it would be nice to expose more control to the user for namespaces of what is allowed to be fetched from what context, but that might hamper advertising and content consumption.
- tzs 5y agoI'd be a lot more likely to be thrilled by it if the browsers had a persistent per page or per site setting to disable these kind of things. It gets annoying when a page I write loaded onto my table on my LAN's WiFi cannot talk to devices I own on my LAN just because I loaded the page from my server that is on the public Internet. PS: > The modern countermeasure for this is to require devices parked on private networks to opt-in to the ability mix public Internet requests with private network accesses, using CORS, which is what this is about I predict that most IoT devices won't have a way to configure this. If the manufacturer intended it to be controllable from some web app from their site, they will opt-in to control from everyone. If the manufacturer only wants it controlled from their mobile app, they will explicitly opt-out of web control if that is possible.
- tptacek 5y agoJust to be clear: the people working on PNA thought about how likely it was for IOT devices to support this, and the default behavior for most devices is expected to be fail-closed.
- jaimex2 5y agoI fell asleep halfway reading. yay security.
- dang 5y agoCould you please stop posting unsubstantive comments? You've been doing a lot of that, unfortunately, and it's not what this site is for. https://news.ycombinator.com/newsguidelines.html https://news.ycombinator.com/newsguidelines.html
- peeters 5y agoI think the concern is for even clicking a link, which to my knowledge typically hasn't fallen under implicit CORS concerns. The browser will automatically assume that unless a private origin server (i.e. one within a private address space) explicitly allows requests from a public source, then the navigation should be prevented. It's always a challenge in browser design, but basically this is just another case of killing valid use cases because some servers don't follow the spec (i.e. GETs with side effects).
- londons_explore 5y ago> killing valid use cases because some servers don't follow the spec There are probably 25 IoT devices in my home, and more than half of them have a magic GET request with side effects. For example, just by clicking this link, my lights turn on http://lighting.londons_explorer/cm?POWER%20ON http://lighting.londons_explorer/cm?POWER%20ON A malicious web page could redirect me to that URL and force my lights on with no input from me. I bet some of the devices allow firmware updates with the same method.
- rStar 5y agothat’s your home. i don’t choose to buy bs iot devices(i mean do you have kids? if you do this is borderline neglect, all their(your hypothetical children) stuff is all over the internet most likely), so this problem doesn’t affect me in the same way.
- tommek4077 5y agoAnd because you use crap hardware, everyone else has to change his totally legitimate network setup?
- lillecarl 5y agoI don't think it's because of this one person, but rather the masses that has crap hardware and software installed everywhere. It's a global problem, not everyone is capable of securing their own network.
- cookiengineer 5y agoFinally CSRF attack scenarios on outdated router firmwares can be prevented. CORS was basically ineffective in a lot of ways because it only works - by design - with newer servers that send those headers and with newer browsers that actually respect the headers and not simply ignore them. It was also ineffective for older servers from pre-CORS ages. The never break the web mentality didn't work out for this scenario. Looking forward to this! Finally the LOIC and routersploit web implementations are ineffective. Now drop support for ftp in the web browser and we are good to go. (̶F̶i̶r̶e̶f̶o̶x̶ ̶c̶a̶n̶ ̶s̶t̶i̶l̶l̶ ̶b̶e̶ ̶a̶b̶u̶s̶e̶d̶ ̶t̶o̶ ̶D̶D̶o̶S̶ ̶v̶i̶a̶ ̶f̶t̶p̶ ̶u̶r̶l̶s̶)̶ edit: correction: I was wrong: Firefox finally phased out ftp support this year in July.
- yjftsjthsd-h 5y ago> Firefox can still be abused to DDoS via ftp urls How? They dropped FTP support a few versions ago (https://blog.mozilla.org/addons/2021/04/15/built-in-ftp-implementation-to-be-removed-in-firefox-90/ https://blog.mozilla.org/addons/2021/04/15/built-in-ftp-impl...).
- daveevad 5y agoCorrect me if I'm wrong but the browser still sends the request. The browser checks for the response's CORS headers to see if the response can be used but there's potentially an attack vector even when the response is ignored.
- funcDropShadow 5y ago> The never break the web mentality Would you pass on that memo to the Chrome developers, please?
- shakna 5y ago> Firefox can still be abused to DDoS via ftp urls Firefox deprecated FTP in 2015, and required it be manually re-enabled since April last year (FF88), and completely removed it in July (FF90), this year.
- cookiengineer 5y ago
- saasaccount2 5y agothis seems very useful.