News for hackers. Stuff that matters.
Re:Apple: We're not handing over Safari URLs to Tencent, jus... by kccqzy on Monday October 14, 2019 @11:34PM (#21255341)
No, you are wrong. You don't understand how safebrowsing URL hashes are produced. Read this first: https://developers.google.com/safe-browsing/v4/urls-hashing under the section "Suffix/prefix expressions"
Re:Apple: We're not handing over Safari URLs to Tencent, jus... by dpkonofa on Tuesday October 15, 2019 @02:09AM (#21255933)
Yes, I do. I linked to that very same site. The prefix is the only thing that’s sent and the hashes are computed as unique for each combination of URL. The docs explicitly say that http://evil.com/foo is unique from http://evil.com/foo?bar.
Re:Apple: We're not handing over Safari URLs to Tencent, jus... by rocqua on Tuesday October 15, 2019 @04:17AM (#21256502)
So any secrets communicated in the URL via e.g. get parameters can be potentially brute-forced based on the hash?
Re:Apple: We're not handing over Safari URLs to Tencent, jus... by amdavidson on Tuesday October 15, 2019 @08:18AM (#21257633)
If you have the computing power to brute force sha256 then there are few security precautions a user can take against you.

That opens up forging SSL certificates, signing Debian packages, and a whole slew of other things that you could pull off with more computing power than has existed in the whole of the universe.

Context: https://bitcoin.stackexchange.com/a/41842

Re:Apple: We're not handing over Safari URLs to Tencent, jus... by rocqua on Wednesday October 16, 2019 @05:28AM (#21268550)
Suppose a public PGP key is communicated in the URL.

I don't think there are enough PGP keys in the world that simply trying those keys in a certain prioritized order wouldn't find a lot of keys.

This way you could recognize who someone is talking to based solely on their 'malicious browsing' send hashes.

In general, anytime you know a secret in the URL comes from a low (min-) entropy distribution you can use the truncated SHA-hash as an oracle to (approximately) figure out the secret. Obviously, if the secret is a 128 bit session cookie, you won't find that by brute forcing. Heck, in that case your 32 or 48 bits of hash prefix won't even be enough to uniquely identify the session cookie.

When you get to a 64 bit secret (say again a session cookie), with a 48 bit prefix, things already get dicey. It seems possible that some state actors can already brute force 64 bit secrets, and with a 48 bit prefix, you'd get about 2^16 ~ 64000 (more, but dont wanna compute exactly) candidate session cookies. Those can actually be tried at the website to see if they work.

Re:Apple: We're not handing over Safari URLs to Tencent, jus... by nebulous1 on Tuesday October 15, 2019 @09:49AM (#21258300)
You're assuming the range of possible parameters is very large. This might not be the case.