`
sohighthesky
  • 浏览: 34742 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

chrome arguments bug and firefox regex backdoor

阅读更多
function b(x, y, a) { 
    a = 10; 
    alert(arguments[2] );//chrome bug(chrome 5.0.369)
} 
b(1, 2); 






在FF3.6之前.发现了怪异的后门.应该是开发者测试用的...

查了各种文档,没发现记载,可能是非正式属性
分别对应于正则表达式对象的6个属性
-1 : source
-2 : global
-3 : ignoreCase
-4 : lastIndex
-5 : multiline
-6 : sticky

比如 /a/[-2] 相当于 (/a/).global
document.write(/a/g[-3])
document.write("<br/>");
document.write(/a/g.global)

http://www.cnblogs.com/bluedream2009/archive/2010/03/11/1683135.html
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics