posts - 64, comments - 387, trackbacks - 4

Easily Injecting HTML into RadEditor

This is a demonstration on how easily client side content can be injected at runtime. One does not have to architect posts or recreate content and repost. The easiest way to do this that I know of is with a firefox plugin called Chickenfoot, http://groups.csail.mit.edu/uid/chickenfoot/install.html. With it you can script navigation, user interaction, changes to DOM, etc.

On to the demo at hand. For this I have taken an instance of RadEditor, a WYSIWYG html editor and disabled almost everything. So if the client side restrictions were 'strong' the user wouldn't be able to do anything but insert plain text into the region on the page. The screenshot below shows the initial setup.

For a real quick demonstration, enter 'placeholder', or any placeholder into the region. Now write the script with chickenfoot to replace it with your html. Such as :

Running this results in the following:

Now granted, this is nothing impressive; we have modified the content within our browser, who cares? Well, that depends on the who programmed the site. If they are assuming the control is taking care of injection they might be in for a surprise. The lesson? Always validate server side for any input imaginable, anything can be posted… and it just got easier to pull off.

And in case it hasn't come to mind, you could very easily inject a full screen div to hijack the page the html is shown on. I doubt someone would go through the trouble for some bolding tags.

 

 

Print | posted on Saturday, May 17, 2008 8:13 PM | Filed Under [ Web Programming ]

Feedback

Gravatar

# re: Easily Injecting HTML into RadEditor


http://www.telerik.com/community/forums/thread/b311D-bdmmtg.aspx
5/19/2008 2:32 PM | .
Gravatar

# tb

tb
5/19/2008 3:27 PM | Pingback/TrackBack
Gravatar

# LED Bike Lights

I really feel strongly about it and love learning more on that topic. If achievable, as you gain competence, would you
mind updating your blog with more information? It is highly helpful for me.
12/14/2011 11:56 PM | LED Bike Lights
Gravatar

# Gay Porn

Your words are really awakening, I am really touched with this you are just outstanding and seriously no one has power to
say anything wrong about this post.
12/15/2011 12:32 AM | Gay Porn
Gravatar

# cheap truck insurance

Wow, cool to see that website, thanks for the link! And thanks for being informative and interesting. You always inspire
me.
12/15/2011 1:03 AM | cheap truck insurance
Gravatar

# IT Insurance Quotes

I really enjoyed the post so I used my Digg account to digg it - should assist you.thanks a lot for giving such a good information.
12/15/2011 1:12 AM | IT Insurance Quotes
Gravatar

# catering melbourne

Great information help me a lot knowing that you have shared this information here freely.
12/15/2011 1:38 AM | catering melbourne
Gravatar

# Free Links Directory

Makis Free Link Directory
1/20/2012 1:18 AM | Free Links Directory
Gravatar

# re: Easily Injecting HTML into RadEditor

I am so happy that it works something on the Internet and your article really helped me. You might assume that you would recommend gave.Perhaps appeared well.
2/3/2012 12:51 AM | SEO Company

Post Comment

Title  
Name  
Email
Url
Comment   
Please add 6 and 6 and type the answer here:

Powered by:
Powered By Subtext Powered By ASP.NET