Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
CSS in img tags?
Is there some reason for permitting arbitrary CSS in img tags? I can certainly see that it's useful within the context of a particular post, but the ability to place images anywhere on the page (over the sidebar, over top of other people's posts, etc) just using CSS strikes me as a bizarre choice, and one that would discourage the adoption of Vanilla by any but the smallest forums, given the difficulty of policing this behavior in a community of any size. Is there somewhere that this "functionality" can be disabled?
My apologies if this has been addressed elsewhere—I wasn't able to find any posts that related directly to my concern.
My apologies if this has been addressed elsewhere—I wasn't able to find any posts that related directly to my concern.
0
This discussion has been closed.
Comments
Using CSS, it's possible to place an image anywhere on the page. In addition to placing images over other people's posts, you can:
- Disable an entire thread by posting an image with its position set as "fixed" and its height and width at 100%.
- Replace individual navigation buttons anywhere on the page with links to sites of your choosing by nesting absolutely-positioned images in link tags.
- Replace an entire sidebar with an absolutely-positioned screen shot of itself, and use an image map defined from within your post to redirect all of the links to arbitrary URLs.
Surely someone else has seen this abused on a Vanilla forum already?EDIT: The behavior is reproducible here. As I understand it, you're also using HTML Formatter.
So am I correct in assuming that this behavior is introduced by HTML Formatter, rather than being present in Vanilla out of the box? I'm sorry, I'm not very familiar with the ins and outs of the platform. It's not just img tags either, it's divs and such as well, but you're presumably already aware of that. I'm just curious as to why fixed and absolute positioning via CSS are permitted at all in this context.