The issue is this: when an SVG image is included via an
<img>
tag, it is standard practice to disable running of JavaScript in that context. However, I noted that you could run a Java applet (and Flash presumably) in this context via the SVG tags such as <html:applet>
.A demo is here: https://cevans-app.appspot.com/static/svgapplet.html
Every attack we came up with is catered for. We discussed some very in-depth attacks (which I don't want to go into just yet) but Opera has some nice tweaks such as respecting
Content-Disposition: attachment
for SVG images referred to via the <img>
tag. The Opera guys even checked that the unusual context of executing due to an <img>
tag gets the domain correct (that of the img resource, not the hosting page). By the time I inquired about this, they had already checked.I continue to be impressed with Opera; the bug was fixed lightning fast even though no severe impact is known. And a few little Opera defensive measures turned out useful. This follows on from Opera being immune to my image theft via SVG attack.
Not many browsers support this advanced feature. Aside from Opera, both Safari and Chrome support this. But they do not render Java applets in SVGs in the
<img>
tag context.If you can think of a scenario where these embedded applets could cause more trouble that I've realized, please leave a comment or mail me :)
No comments:
Post a Comment