logoalt Hacker News

senfiajyesterday at 4:20 PM2 repliesview on HN

Interesting idea. This will be useful only when the CSS communicates with a server. Maybe it can make requests indirectly by setting background image URLs or something and send data piece by piece for each byte. Not sure.


Replies

WorldMakeryesterday at 10:38 PM

That happens today in the wild even. CSS url() function and basic things like applying background images to semi-invisible blocks for entirely CSS-based data exfiltration. From what I've heard it is most commonly used today for fingerprinting systems of trackers that use a ton of @media queries to try to fingerprint you based on the subtleties of your browser.

Relates to some Safari and Firefox engineers warning on pretty much every new CSS proposal to consider how it can be (ab)used for tracking.

rebane2001yesterday at 9:13 PM

Yes, CSS binary data transfer is possible in bith directions.