News for hackers. Stuff that matters.
Re:Switching from pyenv, rbenv, goenv and nvm to asdf by jjgreen on Tuesday April 05, 2022 @10:34AM (#30919545)
They do seem to share a fondness for executing curl output
Re:Switching from pyenv, rbenv, goenv and nvm to asdf by caymanjim on Tuesday April 05, 2022 @12:59PM (#30921558)
This criticism is getting old. Piping curl output to bash is no less secure than installing a package via any other mechanism. Either you trust the source or you don't. I trust it more than I trust npm or pip because I'm typically getting it from the primary source instead of relying on a middleman that's got a poor track record.
Re:Switching from pyenv, rbenv, goenv and nvm to asdf by jjgreen on Tuesday April 05, 2022 @03:42PM (#30923962)
It may be old, but it is valid, and it allows me to mock Rust and Nix advocates at the same time; who could resist?
Re:Switching from pyenv, rbenv, goenv and nvm to asdf by leaflets2 on Tuesday April 05, 2022 @06:32PM (#30925936)
If there's a SHA hash, served by a different server, an attacker would have to compromise both -- now just one?
Re:Switching from pyenv, rbenv, goenv and nvm to asdf by rgoulter on Tuesday April 05, 2022 @10:03PM (#30927637)
"Someone else replaces the good program with a malicious program" is the attack vector people are worried about when talking about sha256.

But, since you're downloading & running code written by someone else, it seems weird to talk about that but ignore "what if this program I'm downloading does something malicious".

Re:Switching from pyenv, rbenv, goenv and nvm to asdf by d110af5ccf on Wednesday April 06, 2022 @02:19AM (#30929007)
Presumably you trust the authors or you wouldn't be downloading it to begin with. The primary concern isn't "what if the authors are out to get me" it's "what if someone impersonates or compromises the authors".
Re:Switching from pyenv, rbenv, goenv and nvm to asdf by jjgreen on Wednesday April 06, 2022 @04:19AM (#30929732)
Indeed, and this can be done semi-covertly given that one can detect a "curl install" server-side [1] and serve-up hostile code in just that case

[1] https://www.idontplaydarts.com/2016/04/detecting-curl-pipe-b...

Re:Switching from pyenv, rbenv, goenv and nvm to asdf by leaflets2 on Saturday April 09, 2022 @03:45PM (#30971344)
Thanks! Interesting (the cURL stuff)