Malicious TAGS

A

adyda

Hy to all,

I've developed a website using ASP (interdev)
I've created a "forum" using an HTML area (http://www.htmlarea.com/) as
message board to have a word like formatting tool, but now I need to cleanup
the posted data from any script or other possible malicious tags (f.e:
<script>,<object>,<iframe>)

Now, I'm developing a procedure to do this, but I need to know which tags I
need to remove from incoming data to be sure that no malicious code can be
uploaded into my website

Can anybody help me with a list of all "risk" TAGS?

thanks in advance

Adriano
 
D

David Dorward

adyda said:
Now, I'm developing a procedure to do this, but I need to know which tags
I need to remove from incoming data to be sure that no malicious code can
be uploaded into my website

You would be better off working from the other direction. Decide what tags
(and what attributes on those tags) that you want to *allow* and drop
everything else. Aside from anything else, its proof against any future
extensions (official or (more likely) otherwise) to HTML that may be
introduced.
 
A

adyda

David Dorward said:
You would be better off working from the other direction. Decide what tags
(and what attributes on those tags) that you want to *allow* and drop
everything else. Aside from anything else, its proof against any future
extensions (official or (more likely) otherwise) to HTML that may be
introduced.

Yes, this maybe a best solution, but so probablythere are several more tags
and attributes that I need to enable...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,052
Latest member
LucyCarper

Latest Threads

Top