News for hackers. Stuff that matters.
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.