Re: JavaScript Injection ???
| From: | Shawn McKenzie | Date: | Mon, 18 Apr 2011 20:10:33 +0000 |
| Subject: | Re: JavaScript Injection ??? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-312448@lists.php.net to get a copy of this message | ||
On 04/18/2011 12:06 PM, tedd wrote:
> Hi gang:
>
> Quite some time ago I had a demo that showed Javascript injection. It
> was where a user could type in:
>
> <script> alert("Evil Code");</script>
>
> and a JavaScript alert would be shown.
>
> But now my demo no longer works. So, what happened? Was there a php
> update that prohibited that sort of behavior or did hosts start setting
> something to OFF, or what?
>
> If you know, please explain.
>
> Thanks,
>
> tedd
Most likely like magic_quotes_gpc. Suhosin-Patch may protect against
this as well (can't remember).
--
Thanks!
-Shawn
http://www.spidean.com