▲ | michaelmior 2 days ago | |||||||||||||||||||||||||||||||||||||||||||||||||
> I think the real failure here (besides the unlimited field in the SSO) is Google allowing user content under a subdomain of their main domain (and there might be others, like Drive). IIRC, this is the main reason GitHub moved Pages to github.io | ||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | michaelt 2 days ago | parent [-] | |||||||||||||||||||||||||||||||||||||||||||||||||
The other reason is: If a user figures out a way to upload javascript and have it work, you don't want them to steal other users' login cookies. This is why your gmail attachments should show up on googleusercontent.com instead of google.com Many years ago, some naive websites would let users upload images, but wouldn't validate their content; and some browsers would ignore file content type headers if they had a better guess. So an attacker could rename a .html to a .jpg, upload it as your user profile image, then direct people to www.example.com/avatars/eviluser.jpg and they'd get a HTML page and run its javascript. That's why, to this day, you sometimes see websites sending the header "X-Content-Type-Options: nosniff" which tells Internet Explorer 8 not to guess the content type. | ||||||||||||||||||||||||||||||||||||||||||||||||||
|