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 ForumsBlogBlogURGENT! Javascript injection brakes the public viewURGENT! Javascript injection brakes the public view
Previous
 
Next
New Post
7/28/2008 10:50 PM
 

Hi all, I have a critical issue with blog module!

My site allows registered users to post comments, and moderation is disabled.

When someone posted such comment:

<script>

 
New Post
7/29/2008 2:37 AM
 

Hi ch3nyong,

the module team has been discussing long time about this weakness. This issue has been taken into account during the development of version 03.05.00, and script injection has been disabled along with most HTML tags. Version 03.05.00 has already been submitted to the release tracker, so you will not have to wait long to see this enhancement in action. 

In the meanwhile I suggest you to use moderation even on registered users to avoid malicious injections. I also remind you that you can easily check which registered user added the malicious script and eventually block him.

Best regards,
Dario Rossa

 
New Post
7/29/2008 9:12 AM
 

Hi Dario Rossa,

I appreciate alot on your response, and thank you for the indept explanation!

However, I still find it not tolerable when it comes to this kind of simple injection.

I have been an PHP guy until recently when I was assigned to work on a .NET CMS, and DNN was selected based on a few strengths.

Now that the site is in its final week before it goes live, and we are failed on the security due to this minor issue.

What we need is simply a javascript validation checking (e.g. halt submission if <script> tag is found, or sth similar) before postback is done.

Do you have any idea on how we can have quick fix on this?

Thank you!!

 
New Post
7/29/2008 11:30 AM
 

Hi ch3nyong,

you're right, this weakness to malicious script injection should had been taken into account earlier. However the next version will include a powerful filter to avoid any issues. To fix it in the current version you will need to open the actual module project, modify it and recompile. A good place to put the filter would be just before the comment is added to the database. I would suggest you to filter out also the HTML tags other than <img>, <b>, <u>, etc. because I experimented that also these ones can break up the page layout.

Best regards,
Dario Rossa

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsBlogBlogURGENT! Javascript injection brakes the public viewURGENT! Javascript injection brakes the public view


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