Reasons never to allow HTML
This was written in response to various queries regarding the use of HTML, most recently in this thread.
----------------- In general, one is probably fine allowing bbcodes, although I do not know if bbcodes like IMG and URL are safe. (See below.) While vB provides the capability to allow HTML, one should never use it. It opens your board to attack. Use bbcodes. If you need to emulate an HTML tag, write a new bbcode. The problem with allowing the injection of HTML is a complicated one. There is no 100% safe method to allow HTML and feel secure. Some of the issues and interactions are: 1. The obviously dangerous tags like SCRIPT and APPLET are not the only danger. Any injection of a URL can be dangerous. Any tag that allows for a URL (e.g., a, img, frame, ...) can be used for cross-site scripting and cookie stealing, which can allow someone to hack into your board. 2. Hackers can use various tricks that would result in a tag getting through the filter imposed by the PHP checker. Possible examples: a) <sc\0ript> becomes <script> b) <scr<embed>ipt> becomes <embed> or <script> 3. Then there is the issue of malicious tag attributes and events such as onclick and onmouseup. -------- Potentially dangerous tags that accept URL's: A, APPLET, AREA, BASE, BGSOUND, BODY, EMBED, FORM, FRAME, IFRAME, ILAYER, IMG, ISINDEX, INPUT, LAYER, LINK, OBJECT, SCRIPT, SOUND, TABLE, TD, TH, TR |
I'll move this over to modifications hints and tips - I think we need a rename of that forum :)
|
Handy Hints 4 Board Admins?
|
good hints
HTML is magic. |
Or you can just censor certain html tags and be a little safer:
Code:
<style </style <iframe </iframe <link </link <basefont </basefont <base </base <th </th <tfoot </tfoot <tbody </tbody <thead </thead <body </body <meta </meta <script </script <html </html <plaintext </plaintext <xmp </xmp <object <noframes <noembed <noscript <nojava onload onMouseover <fieldset :absolute style="position "position absolute; <caption onMouseOut view-source |
Quote:
|
i have an even better reason /;
do not alow <img /> tags!! <HTML> <BODY> <IMG SRC="./bsod.gif" width="9999999"height="9999999" /> </BODY> </HTML> INSTANT DOOM!! muahahahahahaha (it chrashes the page ;) |
Quote:
|
and theres always my instant doom img tag :)
the downside is, you gota upload your own pic /; |
And when enabling HTML only for Admins, would that be safe, beside the risk that someone gets Admin access?
|
Do they have to register an account and write something in the HTML-enabled section in order to exploit security vulnerabilities, or is it enough to just enable HTML in the first place in order to open up the forum for vulnerabilities?
|
Quote:
|
Quote:
|
Quote:
Whatever HTML code he puts in a post, becomes that on the forum. If he posts the code that makes a table, it becomes a table in his post. If he posts the raw HTML code for embedding a YouTube video, it becomes an embedded YouTube video in his posts. So the danger comes from the person, and what he's choosing to post. If he wants to post malicious code, he has fee access to do so. That's why BBCode is more secure. BBCode only turns into the HTML you decided it will turn into. NOTE: Don't confuse this with the [HTML][/HTML] BBCode tags. This has nothing to do with what they're talking about above. This just displays code in such a way that it stays formatted. No matter what anyone puts here, it will just display text with the spacing preserved and color coding added. HTML Code:
<table> |
Wow a 9 year old thread revived?
|
All times are GMT. The time now is 02:35 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|