![]() |
HTML Brain Teaser
I recently enabled HTML in posts on my forum, but only for members of the "Can use HTML" group. (Thanks to this handy hack.)
And one of my users immediately found a little bug. By putting: HTML Code:
<!-- HTML Code:
<!-- comment --> Can you think of a solution to this? (Besides disabling HTML :p) |
a) disable html.
b) only allow members that will not #$%# up your board to use html. c) when b fails, refer to a. |
Quote:
Disabling it is not an option! :p Quote:
Quote:
|
Adding <!-- to the swear censor might work - I haven't tested it.
|
Quote:
|
I am sorry I do not know a 100% fix. And you will run into more problems then just the <!--.
What you need to do is create bb code to allow certain html tags to be used. |
The whole idea of not allowing HTML is to prevent precisely what you have had happen.
There's no way around it. If you allow it, you have to limit it..and that defeats the purpose of allowing it. |
Quote:
Quote:
I have to say... I've seen all the discussion around here and at vb.com over the years about how nobody should ever enable HTML under any circumstance ever ever ever, and it really makes me wonder why Jelsoft hasn't just removed the functionality from vBulletin. But even if they did, I'd find a way to hack it back in. :) |
could you somehow put --> somewhere. that way they would cancel each other out?
|
Quote:
ETA: Well I'll be damned. That seems to work! :D Oops, no it doesn't. :o |
Never, ever, ever allow HTML. There is no such thing as a trusted user, and hell no such a thing as a trusted usergroup. There is absolutely no advantage in HTML that is worth the insanely high security risks. Don't allow it anywhere.
|
Make vB codes for all the HTML you want to allow and make the kiddie scripters use them instead. That should give YOU control and the dynamics you want.
However....Good Luck! |
Quote:
What other specific risks do you have in mind? |
Quote:
Hell, for all you know, they could use the HTML in conjunction with some Javascript to fake a login form that redirects to their site, then they can steal your username and password in plain text. They can redirect to their own site for a request to that page. They can use CSS to restyle everything on the page. The list is seemingly endless. With the exception of tables and more complex multiple argument HTML tags, there is nothing in HTML that can't be safely reproduced in vB code tags. There is a reason that the only bolded text that I've encountered in a setting description in vB is to never enable HTML. |
IMHO they should just go ahead and remove html support all togther. Its a legacy feture really, back in the old days we had to use html because we diden't have bbcode (this is a time way before vB).
There is no reason to turn it on, like other have said, if you enable it you have to limit it which defeats the entire purpose of enabling it. Like filburt1 said, reproduce any html commands you need with bbcode. |
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Don't get me wrong, I'm far from an expert on vBulletin, or HTML and I'm not just trying to mess with you here. It's just that in the last year I've been lurking around here I've yet to read any concrete, specific security threats of enabling HTML. And I'm just not one to strip down the software functionality unnecessarily. If someone tells me to disable a feature of the software I want to know exactly why I should. |
No offense, but don't just quote every sentence I say and dispute it. It annoys the hell out of me when people do that. Remember, nothing personal. :)
I will sum up my statement with the following indisputable fact that any experienced vBulletin administrator or developer will echo: There is no safe way to enable HTML, and the benefits of enabling it are obliterated by the onslaught of security vulnerabilities it introduces. I partially agree with Brad in that it probably shouldn't have been implemented for this exact reason, but I also have my own private opinion on that. |
Quote:
I have seen no proof anywhere that enabling HTML brings an "onslaught of security vulernabilities", and if it does then Jelsoft should release an emergency upgrade that disables the HTML functionality entirely. Since they haven't done that, I'm going to conclude that the risks are exactly what I think they are: Not significantly more than not enabling HTML. People can use IMG and URL vBcodes to trick you into going to a site mimicking yours and then harvest your username and password that way. Does that make the IMG and URL tags an insanely high security risk? Lastly, I started this thread to discuss an issue with HTML coding. Only about two people have actually responded to the question in the opening post while a dozen of you have chimed in to insist that I not enable HTML. If I am allowed to post HTML questions here, I would prefer it if people who don't have an answer for my questions, like yourself, not derail my thread. I know everyone here means well, but I'm not a 12 yr. old n00b. I don't need anyone to hold my hand here. However, if you are telling me that I am not allowed to question whether HTML is really a huge security risk, discuss HTML coding on this forum and/or that you intend to post on every such thread with scaremongering about HTML use, then that's fine. I will stop posting here. Just let me know. But don't expect me to just take your (or anyone's) word on things that you can't actually prove. |
It's listed right in the admin CP that it's dangerous! If you do not wish to accept my numerous examples of what the use of HTML can lead to, I suggest submitting a ticket at vB.com asking what they recommend. You will receive the same answer: do not enable it.
|
Quote:
Crash the users browsers while they browse forums, redirect to whole new websites with ads and popups, steal cookies and allow users to take over said forum, screw up designs, use said stolen info to take over other things like email accounts ect. It has NEVER been wise to do so. and everytime one of the other admins allows html on a forum I run I go turn it off. and then rant and rave to them about how its bad, but they re-enable it, and a week later the forums are crashing because someone put some nifty javascript in their singnature and its crashing everyones browsers. |
Quote:
Other than that your problems going to be a tricky one since alot of things users can do can disrupt the style if nothing else. You'd probably be better settinging up a load of BB code that gives most of the functionality of HTML with out the risk. |
Quote:
|
Quote:
Quote:
Thanks for your input guys, but I think if I have any more questions about tweaking HTML I'll take them somewhere else. You lot are just crazy anti-HTML. ;) :D |
They won't remove the feature because an equal number of people would complain.
Even if HTML could be enabled per usergroup, and even though you can enable it per forum in conjunction with permissions, I still would not do it. Any permission bug could then lead to people posting HTML. We're not "anti-HTML." We recognize the inherit dangers of allowing it anywhere on your forums. The true thread is Javascript, but that is delivered in this case through the HTML used. I enormously overwhelmingly strongly recommend you disable HTML instantly and find an alternate solution to your root problem. |
*recommends to code your own features for posting instead of relying on html*
|
Quote:
Anyone who allows users to use html on a public forum is insane, and asking for trouble. A half decent [malicious] coder could write some code in his sig that could do serious damage to the average persons PC very quickly, or equally redirect people to their own site (which could be hard core porn, or worse) and seriously damage the reputation of your forum. Don't do it. |
Quote:
As an administrator I have to balance the risks - and in this case the biggest risk seems to be the possibility of inadvertently giving HTML rights to a malicious person who is able to do significant damage before I can stop it - against the benefits, such as increased user satisfaction and aesthetic appeal. I appreciate that for everyone here the former easily outweighs the latter, but it's my decision to make and I believe I have all the information I need to make that decision. You call it insane and asking for trouble, I call it trying to provide the most postive and rewarding environment for my users that the technology affords with a reasonable assessment of the involved risks. Hey, they all said I was crazy for not having any moderation too, but here we are a year later doing just fine. To each his own, I guess. :) |
Yes, each to his own. Just don't say we didn't warn you. :)
|
I just vB doesn't enable PHP in posts. :)
|
Quote:
|
Quote:
|
Quote:
|
I think you're missing the point. HTML is a known security vulnerability. No other part of vB is. By your logic, you're 50% secure by disabling HTML and 100% with no connection, when in fact it is more like 99.9% secure without HTML and 100% with no connection.
|
Allowing html leads to javascript, or embeded flash ;). Such things can be powerful scripting tools and can take advanage of your users. With bbcode your server is in control of the code, with html on you depend on the end users machine which is always a bad thing when you are allowing users to pass said code to everyone!
I wish you luck if you have enabled it, cause it won't be long.. |
Have you ever seen The Godfather?
"I keep tryin' to get out, but they keep pullin' me back in!" :D Quote:
Here's a question for you: Is it or is it not true that a malicious person could use the IMG and/or URL vBcodes to trick you into going to a porn or warez site, or any other site where you may encounter malicious code? If yes, then do you believe that allowing the use of the IMG and URL vBcodes is a security risk and that they should never be enabled for any reason? Why or why not? |
Using the built-in tags can only deceive the user at worst. HTML can take over your forums.
Although I did disable the [img] tag at my site for security reasons, mainly for retarded bugs in IE that could attach VBScript to images. |
Quote:
Quote:
Quote:
The time may very well come that I have to disable HTML, make a bunch of strict rules and/or shut the forum down. But until then, I'm going to just keep doing what I think is best for the forum and my users. And at this time that means giving them features and not telling them what they can and cannot talk about. :) Quote:
Quote:
|
Quote:
Don't be naive enough to think your users won't come after you... we had a software company a few years ago and almost got into trouble ourselves. One of our clients' customer's computers got hit with a virus and they tried to blame our software. After many emails back and forth to our duplication company and several onsite visits, I was able to prove that the virus in fact, came from one of their own employees who was bringing infected disks in from home. He had been hacked and didn't even realize he was causing (and re-causing, and re-re-causing, etc...) the problem! If I hadn't overheard a conversation about it being the fifth time their systems had to be cleaned (four before they purchased our software), our software company would've been ruined. I have to agree with the group - raw html is too dangerous! |
tmhall,
actions are sometimes worth more then words.. post your url and a 'test' account |
Enabling HTML for users? That's a bit insane, you know in IE 6 you can crash the browser in 7 characters (a bug with the <style> tag), but ofcourse the main vulnerability is JavaScript, where a script could easily execute to grab the cookie information, and post it through a hidden iframe to another website, or even make you go to your own profile and jack your user settings up, the possibilities are endless when it comes to it really.
If you want users to be given more powerful options, my suggestion is to create bbcodes via the acp. :) - Zero Tolerance |
All times are GMT. The time now is 04:43 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|