Closed
Bug 535072
Opened 16 years ago
Closed 16 years ago
cssText decompiles properties without escaping correctly
Categories
(Core :: DOM: CSS Object Model, defect)
Core
DOM: CSS Object Model
Tracking
()
RESOLVED
FIXED
People
(Reporter: sirdarckcat, Unassigned)
References
Details
Attachments
(1 file)
|
181 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 GTB6
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 GTB6
cssText is not decompiling and escaping the properties it holds.. that may be (is.. actually.. I'll tell the vendor's name when they fix it) a security vulnerability if the server is applying content dynamically.
Reproducible: Always
Steps to Reproduce:
1. Execute the test case
2. ??
3. Profit!
Actual Results:
red
Expected Results:
blue
This is a cool XSS vector, it's ok if it's not fixed! IE has the same bug :).
| Reporter | ||
Comment 1•16 years ago
|
||
| Reporter | ||
Comment 2•16 years ago
|
||
By the way.. any modification to innerHTML/cssText triggers the attack..
Comment 3•16 years ago
|
||
I don't quite understand this, but perhaps david or daniel do.
Looks like there's more than one issue here:
* not escaping strings properly (duplicate of existing bug, I think)
* setters taking semicolons and being allowed to set other properties
Comment 5•16 years ago
|
||
> * not escaping strings properly (duplicate of existing bug, I think)
Fixed in bug 478160, in fact.
> * setters taking semicolons and being allowed to set other properties
The relevant setter here is the cssText one, which should in fact have this behavior.
The testcase shows "blue" on trunk or 1.9.2.
You need to log in
before you can comment on or make changes to this bug.
Description
•