IE CSS expression() in div style
HTML bodyseverity: medium
<div style="width:expression(alert('XSS'))">- Context
- Injected into a <style> block or style attribute.
- What it needs
- A CSS sink (style block/attribute). Most of these only run on legacy engines.
- Why it works
- Legacy IE expression() evaluates JS from a style property (historical IE targets).