8 ms·
VLC developers refuse to consider updates over HTTPS
- NicoJuicy 8y agoWhat they mean is: a Man in the middle attack is very unlikely and not easy to setup. They will not spend time on this issue untill the OP has a valid threat model. Which the OP has not given. They already cryptographically sign and validate the updates, which is why it is ignored. It's another solution for the same problem ( reducing change of a malicious update) PS. > This is a security risk and should be solved ASAP. Thanks This has a unfriendly tone of the OP. I would have done the exact same thing in the same situation as the VLC developers ( since there is already a solution implemented).
- eponeponepon 8y agoYeah, this doesn't really hold water when your software is as widely installed as VLC - I've lost count of the number of deeply nontechnical people I've installed it for, for what that's worth. Checking file sizes is serious half-assing IMO - it's not beyond the wit of teenagers running a botnet to deal with that, never mind determined criminals.
- NicoJuicy 8y agoNASA could also be hacked by determined criminals, VLC hasn't got unlimited resources to spend. The HTTPS change could be easy, but you don't know what other things can be affected at first glance ( eg. update mechanism on older versions with no https support). If the attackers can do a MITM, they probably also have other stuff at their disposal :) But more important, issue the bug with a valid threat model and it could be fixed. As long as there is no threat model and perhaps an active discussion ( this is how open source works), the ticket stays closed. The OP had 2,5 days to respond.
- DoctorOetker 8y agoso suddenly the onus of developing the threat model is on the user? I believe both devs and users should have the liberty to discuss and propose threat models, but if there already is "some level of precaution" the real question is where was the previous threat model that dictates signing? or is this security theater?
- NicoJuicy 8y agoIf the developers think there is no threat. Then yes, it is for the user to prove this.
- DoctorOetker 8y agoyou can't prove a threat model. a threat model is part of what is in or out of scope. the first thing that should happen is for VLC dev to set up a threat model, if the user base disagrees with the narrow scope of the VLC threat model they should fork. the second thing that can then happen is that given a threat model, a user could file a bug report to complain how a certain hypothetical attack (within scope of the threat model) violates the security. think about it this way: for all non-security bugs, would you ask users to "prove that resolving a certain bug is within scope of the project"? how can a user prove what is within the developers' scope?
- theamk 8y agoI think you are making a wrong analogy here. A "threat model" in security is like a "user operation" for the feature. So in the non-security bug world, the exchange would look like: Bug report: the program is missing blue circle in the top right corner. Please add is ASAP. Developer response: what would possibly be the use of this feature? Please tell me of I will close the bug.
- NicoJuicy 8y agoHere is a decent developer response: https://www.beauzee.fr/2017/07/04/videolan-and-https/ https://www.beauzee.fr/2017/07/04/videolan-and-https/
- lowry 8y ago> HTTPS change could be easy Yes, but it adds load on download servers and increases the cost of serving VLC to users.
- jjeaff 8y agoThey don't cryptographically sign the updates as the op mentioned?
- dcbadacd 8y agoThey do, with 1024bit DSA with SHA1. Cryptographically weak and forbidden by the NIST.
- jjeaff 8y agoWhile yes, it is considered weak, that doesn't mean it is useless. Git uses Sha1 and a lot of other services do as well. Using it to validate and sign an update is probably still pretty much safe as I have only ever seen or heard of a single SHA1 collision ever. And that was in 2017. It took them 6500 years of CPU computation time and 110 years of GPU computation time to find it. I think we can consider SHA1 good enough to sign VLC updates for now. https://security.googleblog.com/2017/02/announcing-first-sha1-collision.html https://security.googleblog.com/2017/02/announcing-first-sha...
- toomuchtodo 8y agoI brought the same issue up with Tesla about their firmware updates not being encrypted in transit, and their argument was the updates are cryptographically signed. Good enough I suppose.
- gamma-male 8y agoCoincidentally, there was a post yesterday on HN about how to communicate to developers. Sounds like they didn't read it. https://www.cryptologie.net/article/466/developers-are-not-idiots/ https://www.cryptologie.net/article/466/developers-are-not-i...
- NicoJuicy 8y agoYeah, i was trying to edit my comment with variations of: 1) PS ...{text} and would loathe the open source model for a second. 2) PS2. Some sign of respect to developers would be nice (y) 3) ... But haven't found a good one. Your comment is better :)
- cjbprime 8y agoIt looks like their crypto validation is busted, according to a commenter.
- NicoJuicy 8y agoThen this issue should still be closed and the validation should be fixed. End result for this issue is the same. Also, a comment is not the same as posting a bug.
- fhrow4484 8y agoYou might be interested in the concept of "Defense in depth": https://en.m.wikipedia.org/wiki/Defense_in_depth_(computing) https://en.m.wikipedia.org/wiki/Defense_in_depth_(computing). If the effort is minimal to migrate from HTTP to HTTPS, there's no reason to not do it and to fix the validation. In fact, if the HTTPS change is faster, this should be prioritized, given that the other issue might take a lot of time to fix: the old validation mechanism will have to be supported for a long time to keep older clients backwards compatible... I'd take that the VLC guy had a bad day, otherwise that'd be a terrible reaction from someone involved in computer security.
- NicoJuicy 8y agoWe just read what is posted in the bug report. We have no knowledge of "technical debt" or technical issues migrating from http to https. Videolan has 5 applications, perhaps all of them use the same update mechanism, which would broathen the scope of the fix. What seems trivial (i agree), isn't always that in the software world. We need business knowledge of the VLC source or architecture for having a clear decision. For what it's worth. I'll give the VLC developers the benefit of the doubt.
- BTeam 8y agoThey have a network of voluntary mirrors using very different stacks that give them storage and bandwidth for free. Similar to Debian's APT [0]. VideoLAN isn't in a position to enforce it's hosts to serve the files over TLS. However the cryptography of the signature check will be updated in the future. [0] https://whydoesaptnotusehttps.com/ https://whydoesaptnotusehttps.com/
- userbinator 8y agoI remember when Microsoft released Win7 the ISOs were downloadable through HTTP direct links, and MS published the hashes on an HTTPS page. Similar idea, different implementation... and if cryptographic signing is good enough for a company like Microsoft, it should be good enough for VLC.
- dcbadacd 8y agoI really do not agree with any arguments that are just saying "they're doing it, so may I".
- NicoJuicy 8y agoPerhaps he's saying: Microsoft didn't find a threat model. The VLC developers had the same conclusion. So the issue should still be closed according to the supplied information in the bug post submission.
- deleted 8y ago[deleted]
- DoctorOetker 8y agowhat you claim is in contradiction with what eps claims at https://news.ycombinator.com/item?id=18948449 https://news.ycombinator.com/item?id=18948449 I don't know who is right, but you claim the update needs to be signed, but eps says that it also allows the update to be signed by a key retrieved over insecure HTTP which of course can be MitM'ed. I guess the threat model includes malicious ISP's / governments, so as a user you want a clear delineation of responsibility, and have VLC either 1) use a backup master key to sign the signing key, so if the signing keys is compromised a new key can be issued from an airgapped system or 2) insist VLC retrieve the second key over HTTPS. I would prefer 1) though...
- theamk 8y ago> I don't know who is right hm.. we have one of the software authors and a random by-stander arguing about the code? I know who I would bet on. (Note that if it were a political question, then yes, opinions of any random bystander are potentially as valuable as software authors'. But it is not. I need to see a specific evidence before trusting random strangers)
- guenthert 8y ago>> This is a security risk and should be solved ASAP. Thanks > This has a unfriendly tone of the OP. Having lived on both sides of the pond, I'm aware of differences, but in which culture is that considered rude? You're addressing computer geeks, not the King of Thailand.
- NicoJuicy 8y agoHe is commanding them to fix it ASAP The thanks afterwards is meant for after they have done it and makes it worse. What he actually says is: The bug is posted, I offered the solution. Fix it and I won't follow up on this. Which would be something what a boss would say.
- guenthert 8y agoI read ASAP as "as soon as possible", which arguably applies to all security bugs. > The thanks afterwards is meant for after they have done it and makes it worse. That used to trigger me in the past as well, but it is deeply ingrained in corporate communication (at least of West Coast USA). Just ignore it, you can't fight it. > Which would be something what a boss would say. I thought so in the past as well, but now everybody uses it. Thanks for clarifying :)
- NicoJuicy 8y agoYou're welcome :)
- deleted 8y ago[deleted]
- j0hnny_r3db34rd 8y agoNo, he isn't.
- userbinator 8y agoI've noticed that anything "security" related tends to attract lots of loud-mouthed authoritarian cargo-culting do-gooders, and for this reason I prefer to distance myself from them as much as possible. Perhaps it's a prerequisite for this type of work (in the real world, think of police, TSA border guards, etc...)
- techslave 8y agoIt's a fair position. The security risk is likely zero, since transport security doesn't solve the problem. EDIT: wow, surprised at the downvotes! I guess many HNers don't understand security that well.
- cjbprime 8y agoTransport security would help because according to a commenter the payload validation is broken.
- temac 8y agoYou don't know what you are talking about and accuse others of your very sins just because of internet points... FYI mitm attacks have been employed against high profile targets, and VLC is deployed pretty much everywhere. This is a very plausible persistent threat scenario, not a mere theoritical issue...
- AckSyn 8y agoHardly anyone I know outside of tech circles knows or uses VLC. It may have millions of downloads but that's irrelevant. And the releases are themselves signed. http or https doesn't matter.
- sctb 8y agoCould you please try a bit harder to stick to the guidelines? They ask us not to complain about voting. https://news.ycombinator.com/newsguidelines.html https://news.ycombinator.com/newsguidelines.html
- deleted 8y ago[deleted]
- jdietrich 8y agoI might be missing some context, but I am deeply unimpressed with how Rémi Denis-Courmont chose to handle this. As far as I can tell, Rodger Combs gave a perfectly lucid explanation of a plausible threat model. If this is how the VLC developers typically handle security issues, then I'm unsurprised that the EU has decided to offer a bug bounty. https://www.zdnet.com/article/eu-to-fund-bug-bounty-programs-for-14-open-source-projects-starting-january-2019/ https://www.zdnet.com/article/eu-to-fund-bug-bounty-programs...
- deleted 8y ago[deleted]
- coldtea 8y agoWell, it's not the first time he has been controversial, e.g: http://cdm.link/2011/01/as-apple-pulls-gpl-licensed-vlc-the-developers-version-of-events-what-it-means-for-free-video-2/ http://cdm.link/2011/01/as-apple-pulls-gpl-licensed-vlc-the-... https://www.reddit.com/r/apple/comments/h6jmp/r%C3%A9mi_deniscourmont_the_asshole_who_got_vlc_off/ https://www.reddit.com/r/apple/comments/h6jmp/r%C3%A9mi_deni... https://arstechnica.com/civis/viewtopic.php?f=14&t=1133166 https://arstechnica.com/civis/viewtopic.php?f=14&t=1133166
- fyjvd90 8y agoIt also helps with integrity of the download.
- 8y ago
- wnq 8y agoTrac is written in Python, one of the slowest languages that there is. Posting a link to a Trac installation on HN is practically an act of terrorism; the server it's hosted on might explode and expose you to civil liabilities. You should check with a lawyer.
- 2mia 8y agolol ... your comment made my day. ... `with a layer` ... rofl
- coldtea 8y ago>Trac is written in Python, one of the slowest languages that there is. Powering some of the largest sites on the internet. It's about how you write it and what you use (e.g. async python can be faster than Node). This "slow language" accusation is straight out of "teenager just learned to program" style cliches...
- deleted 8y ago[deleted]
- wnq 8y agoYes, like Reddit, which had to be rewritten from scratch because they simply couldn't afford to keep throwing more servers into the fire.
- coldtea 8y ago>Yes, like Reddit, which had to be rewritten from scratch because they simply couldn't afford to keep throwing more servers into the fire Actually Reddit is written in Python still. It was originally written in Lisp, but they rewrote it simply for more familiarity.
- wnq 8y agoWe don't really know what it's written in anymore, since the new version is closed source, but given that they had to rewrite it because of how slow it was, it's unlikely they chose Python again.
- marcoperaza 8y agoIf the updates are cryptographically signed and validated, then it makes no difference. A MITM would just be giving free bandwidth to the VLC project. The best argument is for defense-in-depth—in case someone breaks their signing scheme. Edit: u/dcbadacd makes a great point about old but vulnerable versions potentially being served up by a MITM.
- cjbprime 8y agoThe issue says that the cryptographic checking is broken, and accepts new public keys as authoritative in the presence of MITM. Which makes the report totally valid, if true.
- mitchtbaum 8y agoVLC checks the downloaded file using the newly downloaded key??
- deleted 8y ago[deleted]
- jbk 8y agoThe issue is wrong.
- dcbadacd 8y agoThey are signed with 1024bit DSA with SHA1, every piece of that combination is considered obsolete cryptography nowadays. Even the NIST dictates you shouldn't sign anything new with that. Signing also doesn't stop serving old-and-vunerable-versions as the latest which is in my opinion a vunerability. Apt also has that vulnerability.
- marcoperaza 8y agoGood point about old-and-vulnerable versions. That seems like a strong argument in favor of using HTTPS. I’m curious why the Debian folks haven’t thought this a serious issue either. I’m going to try to dig up the discussions. But the use of a weak signing scheme is just an argument in favor of switching to a better signing scheme. Though I guess it is also real world evidence in favor of defense-in-depth.
- Eli_P 8y agoOracle's practiced the same policy with VirtualBox distributions and that's been fine because they signed packages. VideoLAN signs their packages too. It seems to be a common practice for a highly loaded services to outsource as many cryptography to clients as possible. I think for the same reasons Google dropped CSRF tokens for their api in favor of different security measures.
- hansen 8y agoI always thought it's more about caching
- CapacitorSet 8y agoThis isn't any different from many download procedures. Consider that even a general-purpose package manager like Pacman uses HTTP, because there's little point in using transport-level security when the payload is cryptographically signed and there's a solid root of trust. The only reasonable problem I see with this approach is that a MITM can make clients download an older version that is known to have critical bugs.
- msbarnett 8y ago> This isn't any different from many download procedures. Consider that even a general-purpose package manager like Pacman uses HTTP, because there's little point in using transport-level security when the payload is cryptographically signed and there's a solid root of trust. This IS different. If the VLC update is signed with a key not known to VLC, VLC will then go fetch the new key from the update server over HTTP, and not verify the key in any other way. This renders the cryptographic signing of the updated binary a complete no-op. Anybody in a position to tamper with the HTTP download of the signed binary can equally change the HTTP downloaded, unverified key VLC retrieves to verify the signing. It is effectively unsigned, and the root of trust is as solid as mist.
- theamk 8y agoNo, this is not the case, as many other people in the thread said.
- cataflam 8y agoMirror as the bugtracker seems to be taking a beating from the post: https://archive.fo/Dmtwo https://archive.fo/Dmtwo
- eps 8y agohttps://web.archive.org/web/20190119162021/https://trac.videolan.org/vlc/ticket/21737 https://web.archive.org/web/20190119162021/https://trac.vide... The issue appears to be that while VLC does in fact verify the authenticity of a downloaded update, it also allows it to be signed with a key that it doesn't yet know, in which case it will retrieve this key from the VLC servers _via HTTP_. If that's true, it is a perfectly valid issue that needs to be resolved. However the tone of the original ticket is a nasty one, which seems to have resonated with the VLC dev in a wrong way.
- arkadiyt 8y agoI reported the issue months ago [1], and I'm sure many have reported it before me. The devs have been ignoring the issue regardless of this particular author's tone. [1]: https://trac.videolan.org/vlc/ticket/21422 https://trac.videolan.org/vlc/ticket/21422
- NicoJuicy 8y agoThe site is down. But a valid threat model was requested and not given by the original OP. If there was a post with a valid threat model. That would be interesting, until otherwise, it remains closed
- johnbellone 8y agoThe threat was given by the comment, and a good community manager or developer would have acknowledged that and not have continued to act obstinate. They are actively ignoring it.
- NicoJuicy 8y agohttps://www.beauzee.fr/2017/07/04/videolan-and-https/ https://www.beauzee.fr/2017/07/04/videolan-and-https/ And you haven't read my comments here. Which said we don't know the whole story. Read the above link and don't believe everything you read online. I have given the developers of VLC the benefit of doubt. Rightfully, so it seems
- pferde 8y agoRefuse to consider, or have considered and refuse to implement? Two very different things.
- amaccuish 8y agoiTunes does the same thing (signed downloads over HTTP): https://news.ycombinator.com/item?id=18582060 https://news.ycombinator.com/item?id=18582060
- mfer 8y agoThis looks like it went bad because of poor communication. There is a lesson in that. For both sides. For example, what would have happened if the reporter had either reported the security issue via the security process, to people who should understand this, or took a moment to explain the that model. Or, what if the person who responded had politely asked for more detail or asked the security issue to be handled through that process? How we treat people can make a world of a difference
- catwell 8y agoI am not an expert on VLC security, but here are a few things I can say. 1) The reaction is due to the fact that VLC developers know very well it updates over HTTP on Mac. It has been reported at least 10 times in the past. 2) The comment mentioned by eps about the ability to MITM the key exchange is probably wrong. The update code the poster was looking at is not the one used by VLC on Mac, as JB Kempf (president of VideoLAN) commented. VLC uses Sparkle which is a popular updater for Mac applications, not custom update code. 3) There may still be a vulnerability. Typically apps that update over HTTP and verify using GPG are vulnerable to an attack where the attacker serves an older version vulnerable to another attack, signed with the same key. There are mitigations for that but I don't know if VLC uses them. The Sparkle project itself advises the use of HTTPS for both the updates and the appcast (https://sparkle-project.org/documentation/ https://sparkle-project.org/documentation/).
- jbk 8y agoWe do block downgrade attacks in the installer. What you can do is freeze the update, but HTTPS will not change that.
- marcoperaza 8y agoThere is another attack where the user is updated to a particular version by a MITM. That is distinct from a basic version freezing attack.
- catwell 8y agoThis is almost what he said they block in the installer (downgrade attacks or replay attacks). The difference is there might still be an attack where: - User is at version N - Version N + x is vulnerable - Version N + x + y is latest - User terminal asks for N + x + y and the attacker serves N + x However this attack is much less critical than anything letting an attacker downgrade (only applies against versions updated infrequently). Regarding VLC on Mac, which uses Sparkle, this issue could be avoided by using HTTPS just for the updates feed (AppCast), which is not mirrored.
- aritmo 8y agoThe big issue is that HTTP increases greatly the attack surface of VLC. The VLC client needs to parse the response from the "update server", and this response must be considered as potentially 100% malicious.
- jbk 8y agoOf course not. The response is GPG-signed.
- heyjudy 8y agoQ: Is this a Sparkle (popular non-MAS update framework) insecurity issue? I use the long dead Bodega client to discover and check all local apps for Sparkle updates manually. I wish there were a similar app that both checked for updates periodically and checked the security model of each app's update server implementation (it's a difficult problem to audit the client's update security).