Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>From the <a href="http://code.google.com/p/browsersec/wiki/Part1#Cascading_stylesheets" rel="noreferrer">browser security handbook</a></p> <blockquote> <p>The risk of JavaScript execution. As a little-known feature, some CSS implementations permit JavaScript code to be embedded in stylesheets. There are at least three ways to achieve this goal: by using the expression(...) directive, which gives the ability to evaluate arbitrary JavaScript statements and use their value as a CSS parameter; by using the url('javascript:...') directive on properties that support it; or by invoking browser-specific features such as the <a href="http://www.securiteam.com/securitynews/5LP051FHPE.html" rel="noreferrer">-moz-binding mechanism of Firefox</a>. </p> </blockquote> <p>... and after reading that, I find this on StackOverflow. See <a href="https://stackoverflow.com/questions/476276/using-javascript-in-css#answer-482088">Using Javascript in CSS</a> In Firefox, you can use <a href="http://www.mozilla.org/projects/xbl/" rel="noreferrer">XBL</a> to inject javascript in a page via CSS. However, the XBL file must reside in the same domain, now that <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=324253" rel="noreferrer">bug 324253 is fixed</a>.</p> <p>There is another interesting (though different from your question) way to abuse CSS. See <a href="http://scarybeastsecurity.blogspot.com/2009/12/generic-cross-browser-cross-domain.html" rel="noreferrer">http://scarybeastsecurity.blogspot.com/2009/12/generic-cross-browser-cross-domain.html</a>. Essentially, you misuse the CSS parser to steal content from a different domain. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload