News for hackers. Stuff that matters.
Re:Detecting the use of “curl – bash” server side (2016) by maple3142 on Wednesday December 09, 2020 @04:33AM (#25356848)
So it is safer to use `sh -c "$(curl https://whatever.com/install.sh)"`?
Re:Detecting the use of “curl – bash” server side (2016) by hvdijk on Wednesday December 09, 2020 @04:44AM (#25356896)
Only mildly so. This hides from the server the fact that you are not checking what is received, so prevents the server from adapting its results based on that, but still allows a server to just unconditionally serve a malicious script. The safe way is to save to a file, actually inspect the file to make sure there is nothing malicious in there, then run that file.
Re:Detecting the use of “curl – bash” server side (2016) by tobyhinloopen on Wednesday December 09, 2020 @04:42AM (#25356889)
No. It’s safer to download the file, inspect it manually, and then run it.