下面是Jon McClintock贡献出来的一段阻止Alert的代码.略掠看了一下,感叹不已.难怪老外们都评价为
That’s a great example
I just got a nice XSS “win” that I thought I’d share with you. The app had an odd filter that would block JS calls to the alert() method.So this (invalid JS) input got in:
";alert"xss";
But this didn’t:
";alert("xss");
The usual whitespace and comment tricks didn’t work either, and other useful methods, such as eval, were also blocked. So what do you do? Function pointer, of course:
";var foo=alert;foo("xss");
| 如何杜绝iframe挂马 | 11-29 | |
| ASP登陆验证页应做的安全问题 | 08-25 | |
| Windows Server2003安全配置整理 | 08-20 | |
| 安全虚拟主机配置 | 07-18 | |
| ASP木马Webshell的安全防范解决办 | 06-19 | |
| CC DDOS攻击器的原理及防范方法 | 06-13 | |
| 高手应对ASP及Access的安全及对策 | 05-30 | |
| 浅析注入漏洞的查与补 | 05-18 | |
| 虚拟主机封杀webshell提权 | 05-08 | |
| 域名劫持的终极解决之道 | 05-06 | |
| 卡巴斯基6.0安全防护机制的相关分 | 04-30 | |
| 0-day漏洞的防御 | 04-21 | |