note 88179 deleted from function.strip-tags by aharvey
| From: | aharvey@php.net | Date: | Thu, 20 Sep 2012 12:06:42 +0000 |
| Subject: | note 88179 deleted from function.strip-tags by aharvey | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-190914@lists.php.net to get a copy of this message | ||
Note Submitter: tleblan at pricegrabber dot com
----
I think it is worth mentioning that if some tags are allowed using the second parameter, this
function does not allow to strip attributes within the allowed tags and hence should not be used
against XSS vulnerabilities.
One can still execute javascript by 2 means:
- by inserting attributes that typically accept javascript
>> onClick="alert('XSS');"
- by using styles
>> style="width:expression(alert('XSS'));" (works on IE7 and probably
>> other versions)