News for hackers. Stuff that matters.
Re:End-to-end encryption in the browser by marcus_holmes on Monday March 23, 2020 @09:29AM (#22663909)
Wait, so you're sending the key in the url?

I thought urls weren't encrypted in HTTPS? Am I missing something?

Re:End-to-end encryption in the browser by nebster on Monday March 23, 2020 @09:33AM (#22663932)
The article explained how the fragment part of the URL (everything after the #) isn't sent to the server. It's only client-side.

So even if the URL isn't encrypted in HTTPS (it is though), it wouldn't matter.

Re:End-to-end encryption in the browser by inetknght on Monday March 23, 2020 @09:31AM (#22663918)
URLs are encrypted. Hostnames aren't encrypted in HTTPS, unless TLS SNI is encrypted.

The problem with URLs is that a lot of products will log the URL to disk, and many operators forget or aren't aware they might need to have security plans around data in the logs.

Re:End-to-end encryption in the browser by tialaramex on Monday March 23, 2020 @09:43AM (#22664012)
A worse and impossible to mitigate problem in other scenarios is that user agents will cheerfully "bookmark" or "favourite" a URL or just let you "share" it and it's often not obvious to the end user that this shares their current state which they probably don't want not just the thing they're looking at. Example: you try to share the forum help link but instead give the recipient your logged in account...

This is the reason not to put authentication tokens into URLs for example.

When the state users want to bookmark or share literally is the state that's encrypted anyway this mismatch isn't a threat. If I send you the URL for this drawing of a cat and then I'm astonished you can now see the drawing of the cat I've got real problems technology can't fix.

Re:End-to-end encryption in the browser by marcus_holmes on Monday March 23, 2020 @09:58AM (#22664143)
yeah, this.

Having the key in the url seems insanely insecure to me.

Re:End-to-end encryption in the browser by henriquez on Monday March 23, 2020 @10:03AM (#22664179)
Why? It makes it easy to share a sketch with someone else while still preventing the server from decrypting the data. Anything stored in a location hash (after the # symbol) does not get passed to the server.

The threat model the author tried to work around is not the user dumbly compromising their own work. The author wants to prevent proprietary and PII data from being stored on their own server. End-to-end encryption significantly reduces the author's potential liability hosting something like this in case something goes wrong.

Re:End-to-end encryption in the browser by inetknght on Monday March 23, 2020 @01:39PM (#22666497)
> Why? It makes it easy to share a sketch with someone else while still preventing the server from decrypting the data. Anything stored in a location hash (after the # symbol) does not get passed to the server.

I'll hit the URL bar and hit control-C. That's way better than any javashit which wants to touch my clipboard.

Copying the current URL also copies the key in that case. Now I'm accidentally sharing my encryption information with another user.

Re:End-to-end encryption in the browser by henriquez on Monday March 23, 2020 @03:06PM (#22667506)
That's literally the use-case of pasting the link to your sketch to someone. The app itself is not touching your clipboard. Take a careful look at how this works, it's perfectly innocuous.
Re:End-to-end encryption in the browser by wstrm on Monday March 23, 2020 @09:33AM (#22663928)
Anything after the hash isn't sent to the server (it's mentioned in the article).
Re:End-to-end encryption in the browser by denisu on Monday March 23, 2020 @09:31AM (#22663915)
Urls are encrypted.
Re:End-to-end encryption in the browser by marcus_holmes on Monday March 23, 2020 @10:01AM (#22664158)
well, not the whole url, obviously, otherwise the router wouldn't know where to send the request
Re:End-to-end encryption in the browser by dogma1138 on Monday March 23, 2020 @10:35AM (#22664474)
The entire URL is encrypted, the router doesn't need to know anything about the URL to route the packets. The only thing that can leak when you make an HTTPS connection is the DNS query.
Re:End-to-end encryption in the browser by hiq on Monday March 23, 2020 @11:40AM (#22665090)
Re:End-to-end encryption in the browser by smolder on Monday March 23, 2020 @10:54AM (#22664653)
TLS server name indication can also leak your host, sadly.
Re:End-to-end encryption in the browser by DaniloDias on Monday March 23, 2020 @11:46AM (#22665147)
You are confusing layer 4 and later 7 concepts.

Spend some time with wireshark running while you visit “google.com” in a web browser and you’ll get a better intuition on the topic.

Re:End-to-end encryption in the browser by marcus_holmes on Wednesday March 25, 2020 @03:37AM (#22682676)
that makes sense, thanks