![]() |
|
Article Options |
Reasons never to allow HTML
by
![]() 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 The following members like this post: CarpCharacin
Last edited by CarCdr; 10 Aug 2004 at 13:31.. |
Views: 7931
|
Comments |
#2
|
||||
|
||||
I'll move this over to modifications hints and tips - I think we need a rename of that forum
![]()
__________________
Dean Clatworthy - Web Developer/Designer No members have liked this post.
|
#3
|
||||
|
||||
Handy Hints 4 Board Admins?
__________________
Natcher00 ... is the Admin @ MobileForces.org - Official Community for a cult Vehicle based FPS - the only place for support! ... also he's Penfold to Dark_Wizard's Danger Mouse in development of vBWar http://www.mobileforces.org/sig.jpg {DaniWeb: Learn HOW-TO mod_rewrite your vB board} No members have liked this post.
|
#4
|
||||
|
||||
good hints
HTML is magic. No members have liked this post.
|
#5
|
||||
|
||||
Or you can just censor certain html tags and be a little safer:
:ermm: No members have liked this post.
|
#6
|
||||
|
||||
Originally Posted by Gutspiller
Censor is really easy to get around
![]()
__________________
Looking for ImpEx?
No members have liked this post.
|
#7
|
|||
|
|||
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 ![]() No members have liked this post.
|
#8
|
||||
|
||||
Originally Posted by Gutspiller
there are still so many more possibilities to use vicious javascript and code
__________________
My Site:Animation Talk My Hacks:Vb3 Affiliate Version 1:vB Affiliates v.2:vB Journal 1.0.0:Quick Attachment Approval System: UnBannable Ips:Text Message on PM:Selected Files Not Closed:New Thread/Post Image Verification for Guests: vB Stocks 1.0.0 This means this hack won an award. No members have liked this post.
|
#9
|
|||
|
|||
and theres always my instant doom img tag
![]() the downside is, you gota upload your own pic /; No members have liked this post.
|
#10
|
|||
|
|||
And when enabling HTML only for Admins, would that be safe, beside the risk that someone gets Admin access?
No members have liked this post.
|
#11
|
||||
|
||||
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?
__________________
“Human beings are animals: very unusual animals, to be sure, but nevertheless animals. In origin, we are not fallen angels, but apes arisen.” — Michael H. Hart UADisplay for the nerds among us who care about browser wars! ![]() No members have liked this post.
|
#12
|
||||
|
||||
The risk is someone using the HTML on your forum. So whatever usergroup has the ability, is where the risk lies.
__________________
No members have liked this post.
|
#13
|
||||
|
||||
Do they have to post with special HTML tags or is it enough that someone posts something like <sup> in order to enable HTML to become a vulnerability risk?
__________________
“Human beings are animals: very unusual animals, to be sure, but nevertheless animals. In origin, we are not fallen angels, but apes arisen.” — Michael H. Hart UADisplay for the nerds among us who care about browser wars! ![]() No members have liked this post.
|
#14
|
||||
|
||||
Originally Posted by EliasAlucard
The danger doesn't come from the HTML just existing in a post. The danger comes from the person posting using raw HTML code. ![]()
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.
__________________
No members have liked this post.
|
#15
|
|||
|
|||
Wow a 9 year old thread revived?
No members have liked this post.
|
![]() |
«
Previous Article
|
Next Article
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Article Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 04:27.