Re:PHP: The Right Way
by Dylan16807 on Saturday July 07, 2012 @08:22PM
(#4213132)
Look at the original post. "curl -s http://getcomposer.org/installer | php" It's not just about trusting Composer, it's about trusting every point between you and their server. If I want to know that I am actually executing Composer I need to use a secure download method.
[ Parent
| on HN ]
I don't disagree with you, but if you've got someone actively trying to exploit you sitting between you and the Internet, you've got bigger problems.
Re:PHP: The Right Way
by simonbrown on Saturday July 07, 2012 @10:29PM
(#4213377)
Someone trying to find an exploit is a bigger problem than giving them one?
Oh, definitely. If someone has a launched a targeted attack against you and they already have the ability to seamlessly view and modify your internet traffic, you are in pretty serious trouble whether you download your development tools from wget or apt-get.
Except that apt-get will check GPG signatures and detect that kind of attack. How is a MITM attack going to find a 3rd party's private key?
Re:PHP: The Right Way
by jasonlotito on Saturday July 07, 2012 @11:49PM
(#4213541)
I'm looking at the post you replied to. So maybe you replied to the wrong post, or ignore context and tried to be witty or smart.
In context, what you say makes no sense.
Regardless, https would be better, but if you are that nervous as you suggest you are, then https doesn't solve your problem either. Neither does some hash thrown up on some site for you to compare against.
Re:PHP: The Right Way
by Dylan16807 on Sunday July 08, 2012 @02:07AM
(#4213830)
Here, how about I summarize my view of the conversation for you.
aw3c2: 'curl | php' is creepy
timaelliott: apt-get is just as scary
kudos: no, it has signing
udo: that's cargo cult
me: no, it protects like https (meaning it authenticates and stops MitM)
I was responding perfectly in context to point out how the protections apt-get have are useful. I also tied it back into the original comment but you can ignore that part if you like. I don't know why you think I was 'trying to be witty' and ignoring context.
Re:PHP: The Right Way
by jasonlotito on Sunday July 08, 2012 @08:29AM
(#4214426)
Ahh, gotcha, that better explains it.
Still, https doesn't validate anything. You could add a certificate, but then that only means you are talking to the server assigned the cert, not that the actual package is good.
I still stand by what I said: mountain and mole hills.
It does not help you if the originating server has been hacked, which is by far the most likely attack vector (after people being assholes on the internet or making mistakes in their script).
Protecting against that is the whole fucking point of using things like apt-get/PEAR and GPG/code signing.