Advertisement

[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

07/03/2003 at 10:37PM PDT, ID: 20668376
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

5.8

Stripping out html tags / Security

Asked by bradderick in ColdFusion Application Server

Tags: html, coldfusion, tags, out, stripping

Hi All,

I am currently building an auction website in coldfusion.

The user can input various things like location, title etc for their auction. One of the things that I am having a bit of trouble with, security-wise, is the BODY text.

So when they add their classified they have a textarea that they can type their body text into.

Now, having done a little bit of expermintation pasting different stuff in there, it seems that HTML is accepted as basically it just pastes the whole field (it is a TEXT type field in MSSQL server) straight into the final 'auction-detail' page that the user views.

There are several problems here as far as security goes, like I think i need to strip out certain tags. For example, if one puts in a <body bgcolor="black"> tag then the entire page has a black background and the text up the top cannot be read.

I was thinking their may be security flaws there as far as javascript goes as well. I imagine they could probably NOT pass coldfusion tags in as these would go in after the server has run through tags. Am i incorrect here? Could they put in CF tags and compromise security?

So, what is the best way to strip out the dangerous tags and what are the tags in question, while still allowing the user to pretty up their auction text a little?

On the other hand, i have been toying with the idea of making several buttons along the side of the textarea, [background colour], [text colour], [bold] [italics] etc etc and then just implementing these if the person selects text in the text area and clicks the button. This would be in some kind of language, just created for this purpose that would allow this stuff in the translation process to be turned into usable html.

Help and code would be great. Thanks for your time!

Cheers,
BradView the Solution FREE for 7 Days
[+][-]07/04/03 02:30 AM, ID: 8855334

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/04/03 05:18 AM, ID: 8856036

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/04/03 08:51 AM, ID: 8857264

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/07/03 10:50 AM, ID: 8870988

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: ColdFusion Application Server
Tags: html, coldfusion, tags, out, stripping
Sign Up Now!
Solution Provided By: crosenblum
Participating Experts: 5
Solution Grade: A
 
 
[+][-]07/07/03 12:35 PM, ID: 8871737

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/07/03 05:46 PM, ID: 8873500

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07/07/03 09:01 PM, ID: 8874153

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07/07/03 09:06 PM, ID: 8874178

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/07/03 09:14 PM, ID: 8874214

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07/07/03 09:41 PM, ID: 8874336

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/07/03 10:06 PM, ID: 8874461

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07/08/03 06:26 AM, ID: 8876846

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/08/03 06:36 AM, ID: 8876942

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/12/03 08:17 PM, ID: 8910907

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07/13/03 12:02 AM, ID: 8911294

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/13/03 06:30 AM, ID: 8912043

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07/13/03 08:34 AM, ID: 8912282

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/13/03 05:34 PM, ID: 8913800

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20090114-EE-VQP-51