-
-
Save OliverBrotchie/b4a5fdb75ed560b0652275be90750f79 to your computer and use it in GitHub Desktop.
CSS Values 4 urls exfiltration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.body { | |
--unique-identifier: 'foo' // unique generated ID | |
--pointer: 'none' | |
--theme-preference: 'none' | |
// Only make one request | |
background-image: url("/some/url/?" + var(--unique-identifier) + "&" + var(--pointer) + "&" + var(--theme-preference)) | |
} | |
// Detect pointer type and theme | |
@media (any-pointer: coarse){ | |
body { | |
--pointer: 'coarse' | |
} | |
} | |
@media (prefers-color-scheme: dark) { | |
body { | |
--theme-preference: 'dark' | |
} | |
} | |
// ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment