Products

Solutions

Resources

Partners

Community

About

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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Preventing javascript in the Module TitlePreventing javascript in the Module Title
Previous
 
Next
New Post
10/30/2008 8:25 AM
 

I have noticed that when I add a text/html module to a page, I am allowed to enter javascript into the "Module Title:" box, and this code will be executed when the page loads.

e.g. try entering  "<script> malicious script')</script>" as the module title and the alert box will pop up when the page is loaded.

I would like to disable the possibility of entering script into the Module title field, does anyone know a way that I could do that?

Cheers

Steve

 

 
New Post
10/30/2008 8:52 AM
 

I am not sure there is a way - but I can't think why I would want this - the people who are changing mod titles wanted to they could do a lot more damage without using XSS attacks - there may actualy be a case where you want to use Jscript in a title (I use links in titles a lot) - do you not trust your module admins? (if they can edit the title they can insert script into the body/footers/text directly anyway?)


Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
New Post
10/30/2008 10:04 AM
 

Rodney,

It's not a huge problem, and we do generally trust people who we give editor rights not to do anything foolish.

But consider the situation where an admin has some 'finger trouble' and accidentally gives edit rights to 'registered users'  for that module rather than the proper editors group. I can prevent script from being entered into the RTE directly by configuration settings (we use Telerik RadEditor for our RTE) and the only other place they would be able to enter stuff is in the module title.

I cant think of any good reason why people should be able to enter scripts into the module title, so I'd just like to prevent the possibility of some nasty XSS attack by limiting input into that box to just plain text.

 

 
New Post
10/30/2008 5:13 PM
 

as Rodney points out it's long standing functionality that's used by a lot of people so we can't simply add an InputFilter to it as we would with any public input fields - please record an enhancement request at the public forum @ support.dotnetnuke.com so we can consider adding an optional solution in a future release.

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Preventing javascript in the Module TitlePreventing javascript in the Module Title


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