Closed Bug 535072 Opened 16 years ago Closed 16 years ago

cssText decompiles properties without escaping correctly

Categories

(Core :: DOM: CSS Object Model, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: sirdarckcat, Unassigned)

References

Details

Attachments

(1 file)

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 :).
Attached file Testcase.. —
By the way.. any modification to innerHTML/cssText triggers the attack..
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
> * 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.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Depends on: 478160
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: