4 ms·
Just.... don't. There's so much that can go wrong with that, especially if this stuff eventually shows up in some data leak. Here's some examples: 1. URLs ca
by chmod775 9y ago
Just.... don't.
There's so much that can go wrong with that, especially if this stuff eventually shows up in some data leak.
Here's some examples:
1. URLs can contain sensitive data, which will tie your session to your person (facebook URLs etc)
2. This could create vulnerabilities in (for example) checkout flows that pass data via URLs
3. I'd rather not make the job of intelligence services easier than it already is
4. Sometimes I clear my browser history for a reason
- jdormit 9y agoAlthough I trust Algolia not to abuse their service, I understand why you do not. Maybe the "number of comments" display could be opt-in as well? Unfortunately, I don't think there's a way to get that particular UI feature without sending all URLs to some external server.
- nerdponx 9y agoYou can at least start by stripping all query parameters and anchors off of the URL. And instead of automatically piping everything to Algolia, just give the user a damn button.
- sunaurus 9y agoAlgolia doesn't even have to (intentionally) abuse their service. Request logs can be leaked through software bugs, malicious actors can gain access to their servers, etc. Trying to find matches for URL hashes would be a much nicer approach, but you would need a database of hashed URLs for that, so it's not a trivial fix.
- zeveb 9y ago> Unfortunately, I don't think there's a way to get that particular UI feature without sending all URLs to some external server. Look up the protocol that Google's SafeBrowsing[0] project uses. The short version is that your extension should check visited URLs against a locally-downloaded database of HN-posted URLs. For SafeBrowsing there's a bit more optimisation (e.g. hashing URLs & storing only hash prefixes to reduce the size of the database), but that's the short version. This secures the end user's privacy. [0] https://safebrowsing.google.com/ https://safebrowsing.google.com/
- jdormit 9y agoCool, thanks for the link! Sounds like there a bunch of security and privacy improvements I can make.