News for hackers. Stuff that matters.
Re:CSS in GitHub Readmes by eyelidlessness on Tuesday December 08, 2020 @06:46PM (#25353246)
Where they can execute JS, they can do so in the same security context as the containing document. So, yeah, they can be used in situ for any privacy or security intrusion that a script tag can.
Re:CSS in GitHub Readmes by felixfbecker on Wednesday December 09, 2020 @06:50AM (#25357649)
This is not entirely correct. An SVG file embedded in an <iframe> or <object> is a document itself, and if cross-origin, can not access the outer document. However, if not in a sandboxed iframe, it can still do things like trigger alert prompts or navigation.
Re:CSS in GitHub Readmes by eyelidlessness on Wednesday December 09, 2020 @09:42AM (#25358920)
Sorry, this is right. I should have said it’s just as capable or limited in SVG as a bare script tag in the same place.