News for hackers. Stuff that matters.
Re:Show HN: Print a WiFi Login Card by WanderPanda on Monday July 12, 2021 @07:11AM (#27809107)
> Your WiFi information is never sent to the server.

This makes me think that we could use some flag that identifies purely static websites. Like next to the green https lock there is a sign that this website can not send data to any server

Re:Show HN: Print a WiFi Login Card by Ajedi32 on Monday July 12, 2021 @11:02AM (#27810978)
I think something like that might be feasible in the future with things like web bundles[1] and content security policy[2]. In theory you could have a site loaded as a bundle and a CSP that blocks everything not loaded through the bundle, effectively cutting off all network access.

You'd probably also need some sort of Feature-Policy[3] that prohibits access to any form of persistent storage so sites can't just save data until the next non-CSP-protected page load and transmit it then.

[1]: https://wicg.github.io/webpackage/draft-yasskin-wpack-bundle...

[2]: https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP

[3]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Fe...

Re:Show HN: Print a WiFi Login Card by secureleaf on Monday July 12, 2021 @09:18AM (#27809915)
This a great idea but it would be difficult to implement. Sure, it would be easy to catch (and block) HTTP requests other than OPTIONS and GET.

But even a GET request can be used to send data. Just pack the data you want to send in the query string and voila.

Re:Show HN: Print a WiFi Login Card by pkulak on Monday July 12, 2021 @10:56AM (#27810916)
Just some JS call like "startStatic()". At that point, all network activity is shut down for good, and the page gets a badge.
Re:Show HN: Print a WiFi Login Card by outericky on Monday July 12, 2021 @09:23AM (#27809961)
So don’t allow GET with query params. You want the static moniker? It has to be static. No server interaction after load, and no sending any data during load.
Re:Show HN: Print a WiFi Login Card by city41 on Monday July 12, 2021 @09:25AM (#27809979)
You can still hide the data in "folders". /foo/bar/baz/buz can be totally dynamic on the server.
Re:Show HN: Print a WiFi Login Card by ericfrederich on Monday July 12, 2021 @09:44AM (#27810170)
How about after load, that tab automatically goes completely offline. Users can manually do this in Chrome on a tab by tab basis by using developer console and setting Throttling to "Offline"
Re:Show HN: Print a WiFi Login Card by city41 on Monday July 12, 2021 @09:57AM (#27810321)
That sounds more promising. The site might be able to store data and then send it the next time the page is loaded. I think at the end of the day, a malicious dev could probably find a workaround to most implementations. Might just be better to vet out sites and use reputation to state they are truly offline.
Re:Show HN: Print a WiFi Login Card by ericfrederich on Monday July 12, 2021 @08:14PM (#27816517)
I hear what you're saying, but I also believe this to be a solvable problem
Re:Show HN: Print a WiFi Login Card by richthegeek on Monday July 12, 2021 @09:52AM (#27810253)
Note that the "offline" mode in devtools doesn't kill any websocket connections. It may have other holes i'm not aware of also.
Re:Show HN: Print a WiFi Login Card by codethief on Monday July 12, 2021 @03:23PM (#27813952)
Or in the subdomain, using "DNS exfiltration": https://twitter.com/rsobers/status/1293539543115862016
Re:Show HN: Print a WiFi Login Card by city41 on Tuesday July 13, 2021 @10:12AM (#27821223)
That's an interesting exploit, thanks for sharing.
Re:Show HN: Print a WiFi Login Card by steviedotboston on Monday July 12, 2021 @09:48AM (#27810216)
I wonder if this could be a browser extension
Re:Show HN: Print a WiFi Login Card by abahlo on Monday July 12, 2021 @08:56AM (#27809747)
That would me amazing
Re:Show HN: Print a WiFi Login Card by quickthrower2 on Tuesday July 13, 2021 @02:57AM (#27818250)
What if it didn't send anything to the server. Today. But stored it in local storage. And sends it next week when you come back.
Re:Show HN: Print a WiFi Login Card by runeks on Tuesday July 13, 2021 @04:31AM (#27818714)
Don't allow that. When a site registers as "local", which gives it the "local" badge, do not allow the site to switch back to non-local.

Perhaps the site could be allowed to update itself. But this update function should not have access to any local/client state.