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 ForumsForumForumEmbed Object ProblemEmbed Object Problem
Previous
 
Next
New Post
9/12/2009 11:51 AM
 

We figured that was the case after looking at the Source code for a bit. We'll explore other options.


Thank you,

Doug
 
New Post
10/2/2009 12:08 PM
 

This is a pretty bad restriction in the days of youtube.

Can you point me to the general section of code to make the change?

 
New Post
10/4/2009 3:03 PM
 

Let's just be clear, this restriction is a core security filter, not my doing. If you remove this, you are opening your forum up to XSS, so you will have to write your own class and replace the core method.

The filter is applied via PostConnector.vb. I have done some changes locally (so my code may be somewhat off from release) but on my machine this is done in a function called ProcessPostBody (may have been in PostToDatabase in that version).


Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
New Post
10/5/2009 9:06 AM
 

Crispy wrote
 

Let's just be clear, this restriction is a core security filter, not my doing. If you remove this, you are opening your forum up to XSS, so you will have to write your own class and replace the core method.

The filter is applied via PostConnector.vb. I have done some changes locally (so my code may be somewhat off from release) but on my machine this is done in a function called ProcessPostBody (may have been in PostToDatabase in that version).

Thanks, I understand your point.  I don't intend to remove the filter entirely.  Was just thinking of allowing flash to get through.

Another idea here.  How about coming up with a square bracket substituion.  During save turn this

<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/nTeevHnWmNQ&hl=en&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/nTeevHnWmNQ&hl=en&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>

into

[object width="425" height="344"][param name="movie" value="http://www.youtube.com/v/nTeevHnWmNQ&hl=en&fs=1&"][/param][param name="allowFullScreen" value="true"][/param][param name="allowscriptaccess" value="always"][/param][embed src="http://www.youtube.com/v/nTeevHnWmNQ&hl=en&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"][/embed][/object]

There would be a check to ensure type="application/x-shockwave-flash" and that there were no unexpected attributes or tags.

During display the software would reverse the substitution and again check the result for unsupported tags and attributes.

 
New Post
10/26/2009 5:56 PM
 

Running into this issue as well, as i noticed it's a core security filter, but i hope u guys can make a workaround since this is something users want.
Btw, the "Preview" works fine so if it's hacker script injection or something they can still do it with the Preview don't they? It's still a postback to the server.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumEmbed Object ProblemEmbed Object Problem


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