News for hackers. Stuff that matters.
Re:It’s time to kill the web app by Pxtl on Saturday September 23, 2017 @04:45PM (#15321608)
But the problem is that the server is deciding for the user. If they want to show me sketchy ad content, they can go fetch it and send it to me as part of my request to them. Don't tell me to go get it myself.

If an ad server is malicious, let it be the web server that has to deal with them, not me.

Re:It’s time to kill the web app by clarry on Saturday September 23, 2017 @06:02PM (#15322015)
So suppose they go and fetch these malicious ads and forward them to you. Now you get that malware directly from the first party. The malware has all the same-origin access as the first-party application, and you can't trivially block it with things like uMatrix.

That's what I call server deciding for the user. And now you're in real trouble with security.

Re:It’s time to kill the web app by Pxtl on Saturday September 23, 2017 @06:09PM (#15322046)
Yes, but then the malware can also compromise the server, since it now has js access to all the users and can Masquerade as them when they see the ad - even as admins. Keys to the kingdom. This is a feature, not a bug - it means the user and the server are now in the same boat, and the server will have some friggin diligence about whose code they run.

Also, means the server has to pay for the damned bandwidth.

Re:It’s time to kill the web app by NMDaniel on Saturday September 23, 2017 @07:21PM (#15322316)
That's not how it works, the server wouldn't execute JS that is meant for a browser client, it would just serve it like any other static file.

What you're suggesting will actually hamper security, because scripts served from your domain have less limitations(see https://en.wikipedia.org/wiki/Same-origin_policy , https://en.wikipedia.org/wiki/Content_Security_Policy and other mechanisms)

Re:It’s time to kill the web app by leeoniya on Saturday September 23, 2017 @07:28PM (#15322348)
the implication of same-origin would affect all requests made from the client. you can serve malicious js from the server all day long but it would be restricted to only talking back to that same server.