News for hackers. Stuff that matters.
Re:Why TLS 1.3 isn't in browsers yet by QasimK on Wednesday December 27, 2017 @06:30PM (#16019025)
Imagine if every webpage (JavaScript) could open sockets to any location and port - sounds like a significant security issue.
Re:Why TLS 1.3 isn't in browsers yet by banachtarski on Wednesday December 27, 2017 @06:45PM (#16019105)
They essentially can via the WebRTC api, albeit in a more cumbersome way. There's nothing inherently insecure about it and the onus rests on the serving party and the browser itself to ensure no foul play is happening.
Re:Why TLS 1.3 isn't in browsers yet by lmz on Wednesday December 27, 2017 @08:24PM (#16019584)
Doesn't WebRTC have a handshake protocol to ensure that the other end expects the WebRTC media stream?
Re:Why TLS 1.3 isn't in browsers yet by banachtarski on Wednesday December 27, 2017 @09:51PM (#16019965)
If you allow a browser to open sockets to random places, it's the exact same principle! The onus is on the listener to ensure that the people communicating respect the agreed upon protocol.
Re:Why TLS 1.3 isn't in browsers yet by tokenizerrr on Wednesday December 27, 2017 @10:53PM (#16020194)
Then every browser could be used to send spam. It would be horrible. Imagine that every person who visits a compromised page immediately started sending spam emails over smtp. Or spam irc messages.
Re:Why TLS 1.3 isn't in browsers yet by roblabla on Thursday December 28, 2017 @04:21AM (#16021103)
Flash could do that, and yet I've never heard of it as a problem.
Re:Why TLS 1.3 isn't in browsers yet by jhgg on Thursday December 28, 2017 @06:14AM (#16021457)
Generally is not a problem, as Flash needs to check a file called "crossdomain.xml" that is served from the destination server, which specifies how Flash can communicate with it.

http://www.adobe.com/devnet/articles/crossdomain_policy_file...

Re:Why TLS 1.3 isn't in browsers yet by Paul-ish on Wednesday December 27, 2017 @10:14PM (#16020060)
WebRTC uses DTLS, not TLS, so I don't think it would be useful for determining TLS compatibility.
Re:Why TLS 1.3 isn't in browsers yet by banachtarski on Wednesday December 27, 2017 @11:52PM (#16020386)
Yes I'm aware (WebRTC actually uses DTLS, SCTP, RTP, RTCP, ICE, STUN, etc depending on what it's doing). My point is about the objection against being able to "open sockets" in the post I'm responding to...
Re:Why TLS 1.3 isn't in browsers yet by tialaramex on Thursday December 28, 2017 @01:43AM (#16020727)
Being able to "open a socket" kind of implies you actually get the socket, not just "Oh, if the far end negotiates the protocol we've pre-agreed then you can also send bytes over it". Web sockets "open a socket" in the sense WebRTC does too, but of course that isn't what you want either.

Only Flash actually has an API like BSD sockets where you can do make TCP connection and send an arbitrary protocol over it. Hence, since they want to test protocol compatibility, they used Flash. Doubtless if Flash didn't exist they would provide a handy Python program or something, and 99% of visitors would never run it.

Re:Why TLS 1.3 isn't in browsers yet by Franciscouzo on Wednesday December 27, 2017 @09:40PM (#16019921)
The obvious solution would be to ask the user for permission before opening the socket.
Re:Why TLS 1.3 isn't in browsers yet by Paul-ish on Wednesday December 27, 2017 @10:12PM (#16020051)
This is always the proposed answer whenever someone wants to introduce X potentially insecure API. It is lazy IMO. It requires the potentially uninformed user to make a critical decision. Plus, if we introduced every insecure-but-we-prompt API proposed, the user would be inundated with prompts and it would reduce their productivity.
Re:Why TLS 1.3 isn't in browsers yet by MertsA on Thursday December 28, 2017 @02:29AM (#16020841)
Forget impacting their productivity, we've already seen what happens when you defer these questions to the user. They always hit yes or okay. It's like it's not even there, people would view mindlessly accepting prompts like that's just how you're meant to use a computer.
Re:Why TLS 1.3 isn't in browsers yet by ascorbic on Thursday December 28, 2017 @03:03AM (#16020926)
More important than reducing productivity is the problem that prompt-overload conditions people to just blindly click accept.
Re:Why TLS 1.3 isn't in browsers yet by dom96 on Thursday December 28, 2017 @04:12AM (#16021085)
And yet Flash allows this and it hasn't been a problem for years?
Re:Why TLS 1.3 isn't in browsers yet by kbuck on Thursday December 28, 2017 @05:04AM (#16021226)
Flash requires you to install a socket policy daemon[1] that typically listens on port 843 (which is why the MITM test requires that port 843 be open). When you request a raw socket, Flash first connects to port 843 and requests the policy file, which will tell it whether it's allowed to use raw sockets with that server.

I've set one of these up before, and I'm not really a fan.

[1]: http://www.adobe.com/devnet/flashplayer/articles/socket_poli...

Re:Why TLS 1.3 isn't in browsers yet by misterbowfinger on Wednesday December 27, 2017 @06:42PM (#16019088)
I just don't get how that's different than anything that's not a webapp
Re:Why TLS 1.3 isn't in browsers yet by slrz on Thursday December 28, 2017 @07:47AM (#16021723)
You probably don't run arbitrary untrusted applications on your computer but you execute arbitrary untrusted Javascript all day when visiting web sites. To make this seemingly crazy thing work at all, some restrictions have to be imposed on that untrusted JS code.