News for hackers. Stuff that matters.
Re:API Shouldn't Redirect HTTP to HTTPS by foobiekr on Wednesday May 29, 2024 @02:19AM (#40509034)
The bigger issue is that a malicious interceptor could inject javascript. The site may not use javascript, but the users almost certainly have it turned on, and accessing a non-https site means that any man in the middle can inject malicious javascript.

HTTPS is about protecting the client.

Re:API Shouldn't Redirect HTTP to HTTPS by Thorrez on Wednesday May 29, 2024 @03:07AM (#40509287)
E.g. China's great firewall sometimes inserts malicious Javascript that causes the client to launch a DDoS attack against Github or other sites China doesn't like.

https://en.wikipedia.org/wiki/Great_Cannon