|
|||||||||||
|
RE: Preventing cross site scripting
From: Michael Howard <mikehow(at)microsoft.com>
Date: Fri Jun 20 2003 - 00:19:34 EDT
Cheers, Michael
-----Original Message-----
Create a list of unacceptable tags in an array (eg applet, embed), loop
through the array and generate a regexpr based on the array, something
of the form:
Do the same for any possible closing tags ie: </(applet)|(embed)> and replace all instances with "". BTW the RegExpr may be wrong, I'm not all that hot on RegExprs, but you get the idea.
regards
> understand the best way is to only allow acceptable information, in
> as input and strip out all nasty stuff? Does anyone have suggestions
This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:07:52 EDT |
||||||||||
|
|||||||||||