Hacker News new | ask | show | jobs
by dawnerd 2716 days ago
I was thinking if an image is injected, it'd be injected by a script loaded from the plugin thus trusted.
1 comments

It’s a logical thought but that isn’t how it works.

A script doesn’t really inject an image, it injects an image tag which contains a reference to the image. As the image gets loaded there is no check who created the tag.