News for hackers. Stuff that matters.
Re:“Curl Bash piping” wall of shame by edwintorok on Saturday October 22, 2016 @03:18AM (#12767636)
What if the download gets interrupted due to network error and bash runs something else than what was intended. E.g. the script has:

  rm -rf /tmp/something
But when the pipe gets interrupted it executes:

  rm -rf /
Re:“Curl Bash piping” wall of shame by plorkyeran on Saturday October 22, 2016 @03:59AM (#12767731)
The body of the shell script should be wrapped in a function which is invoked at the end. If you do not trust them to get this incredibly basic thing right, how can you possibly trust any of the other code they have written?
Re:“Curl Bash piping” wall of shame by _nalply on Saturday October 22, 2016 @04:02AM (#12767741)
sandstorm.io said: «If the connection dies mid-line, bash will execute the incomplete line – however, this can be mitigated by wrapping the whole script in a bash function executed on the last line, as we do.» (Source: https://sandstorm.io/news/2015-09-24-is-curl-bash-insecure-p...)
Re:“Curl Bash piping” wall of shame by falcolas on Saturday October 22, 2016 @10:36AM (#12768826)
The same way thousands of people trust Steam. You would expect a company of Valve's size to get their Linux uninstaller right, but people found out the hard way that it was removing their entire home directories.

People make mistakes. Mistakes contained to programs is one thing. Mistakes in shell scripts tend to have bigger consequences.

Re:“Curl Bash piping” wall of shame by RealityVoid on Saturday October 22, 2016 @05:15AM (#12767960)
Soo, maybe a silly question... but are downloads from the internet always "linear"? Meaning they go uninterrupted from start to end and if it drops it will stop in the middle of the downloaded file? Doesn't it get "pieces" and then place them together?
Re:“Curl Bash piping” wall of shame by Ao7bei3s on Saturday October 22, 2016 @06:41AM (#12768178)
It depends on your download program, but that's irrelevant because of the pipe. It has to be linearized before going through the pipe.
Re:“Curl Bash piping” wall of shame by h3st on Saturday October 22, 2016 @11:23AM (#12769027)
Packets can arrive out of order, yeah. TCP includes ordering information, so lost packets can be retransmitted and in the end everything'll be in proper order.

As for UDP, I'd tell ya a UDP joke, but get it you might not.

Re:“Curl Bash piping” wall of shame by StavrosK on Saturday October 22, 2016 @06:01AM (#12768071)
It does get pieces, which are sequential. At least, curl does, if you don't tell it otherwise.
Re:“Curl Bash piping” wall of shame by ahazred8ta on Sunday October 23, 2016 @10:55PM (#12776549)
The https://github.com/silentbicycle/curlbash utility can check the hash of the script and refuse to run it if there's a mismatch.