Jump to content

object tag: security of allowing users to post it


simonrs

Recommended Posts

Hi guys,

I'm using tinyMCE to power a blogging site I'm working on. The area of the site is sports so I'd very much like to allow users to post youtube videos and the like into their blog posts.

 

This as I'm sure you know will involve allowing them to post content with the object and param tags. I know object tags can also be used to embed, for instance, java applets.

 

Are there any security concerns I should be aware of in allowing users to do this? For instance, could they put a java applet in which will steal sessions of other users? I'm thinking it's dangerous obviously to allow users to post script tags for this reason and wondering if any of these problems apply to object tags.

 

Thanks in advance for any help anyone can offer.

Link to comment
Share on other sites

You're safer creating a bb-tag style replacement method that allows the user to use bb tags (like the quote tags or code tags on this site), filling in the unique code for the video, then have your backend replace the bb tags with the object tags, filling in the unique video code in the correct spot.

 

So if the user puts in (for example):

[youtube]xviewq232893[/youtube]

 

It will replace this with:

<obect blah blah blah something="xviewq232893">

 

(I'm sure that you can see I didn't actually look up the real youtube code, this was just to give the idea).

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.