News for hackers. Stuff that matters.
Re:Remote code execution vulnerability in apt/apt-get by AndyKelley on Tuesday January 22, 2019 @01:09PM (#18970593)
The situation you described is the same thing that happens with a MITM attack with HTTPS. You would get a failed download from any mirror.

Do you have a response to my question? "Consider, why not double-wrap your stream? Put TLS on top of TLS on top of HTTP?"

Re:Remote code execution vulnerability in apt/apt-get by jamp897 on Tuesday January 22, 2019 @01:30PM (#18970854)
It’s not the same, Comcast and other ISPs don’t tamper with HTTPS, and if they break the HTTPS connection then it’s a clearer problem for the ISP to troubleshoot than corruption.

Sorry I don’t understand what double wrapping has to do with it, or why you’d ever do that.

Re:Remote code execution vulnerability in apt/apt-get by nneonneo on Tuesday January 22, 2019 @01:14PM (#18970641)
Because that just makes things slower for no good reason?
Re:Remote code execution vulnerability in apt/apt-get by loeg on Tuesday January 22, 2019 @01:27PM (#18970822)
Sounds like an argument for rejecting HTTP+TLS single-wrap too. (For apt — not in general.)
Re:Remote code execution vulnerability in apt/apt-get by nneonneo on Tuesday January 22, 2019 @01:53PM (#18971117)
I was being glib because I didn’t think I needed to explain fully, but here we go.

Double-encrypting something with the same technique is pretty much always a sign of cargo cult crypto. Modern ciphers, like those used by TLS, are strong enough that there’s no reasonable way to break them applied once, and the downside is that applying them twice is making things slower than they need to be for zero added benefit.

On the other hand, TLS and PGP are very different things serving very different purposes, so nesting those makes sense. There is an added benefit from TLS, namely that you ensure that everything is protected in transit - including the HTTP protocol itself (which is currently not protected and which might be subject to manipulation as shown in this post). Plus, it provides some resistance to eavesdropping (and with eSNI + mirrors hosted on shared hosts, that resistance should improve further).