Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumRestricting HTML that can be postedRestricting HTML that can be posted
Previous
 
Next
New Post
1/8/2009 11:44 AM
 

Hi,

Is there a way to restrict what HTML can be posted?  Right now it seems our users can post anything they want, including JavaScript, Flash objects, etc.  It's getting out of hand and there's obvious security vulnerabilities with this ability.

DotNetNuke.Modules.Forum.dll is v4.4.3.40705, and we're on DNN 4.8.4.

  -Josh

 
New Post
1/8/2009 1:16 PM
 

Here's what you really want -- unfortunately it's only for PHP-based systems:  http://htmlpurifier.org/

Unless you want to add code to FckEditor yourself, your best bet is to find a plug-in to do the job.  I'm not aware of one matching your request (doesn't mean it's not out there, though).  Here's the list of freebie plugins: http://sourceforge.net/tracker/?group_id=75348&atid=737639|FCKeditor's
...and info on installing plugins:  http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Customization/Plug-ins

Finally, here are all of the current config options for the editor:
http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options

-mamlin


esmamlin atxgeek.me
 
New Post
1/8/2009 1:33 PM
 

I forgot to mention another option:  Treat all input as untrusted and place your security measures on the display side rather than (or, better yet, in addition to) the input side.

Here's one free product (requires programming to use in DNN!) that takes this approach in the ASP.Net realm:  http://www.brettle.com/neathtml

And a sister product to improve file upload process (no security enhancements here, though):  http://www.brettle.com/neatupload

 


esmamlin atxgeek.me
 
New Post
1/8/2009 1:34 PM
 

Well, restricting what FCKeditor allows them to enter would be good, but what I was really hoping to do was configure the forum software to filter the input that it accepts.  That way the filtering is done on the server (and possibly also on the client), as opposed to be on the client only.  If it's only done on the client, a clever user could always figure out a way to submit whatever HTML he wanted and bypass our security.

  -Josh

 
New Post
1/8/2009 1:36 PM
 

Joshua Beall wrote
 

Well, restricting what FCKeditor allows them to enter would be good, but what I was really hoping to do was configure the forum software to filter the input that it accepts.  That way the filtering is done on the server (and possibly also on the client), as opposed to be on the client only.  If it's only done on the client, a clever user could always figure out a way to submit whatever HTML he wanted and bypass our security.

  -Josh

I agree -- See my second post, just before your reply...


esmamlin atxgeek.me
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumRestricting HTML that can be postedRestricting HTML that can be posted


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out