News for hackers. Stuff that matters.
Re:The Philips Hue ecosystem is collapsing into stupidity by tzs on Tuesday September 26, 2023 @08:26PM (#37667961)
Even if you don't review it before running it, after

  $ curl https://whatever/foo.sh > foo.sh
  $ sh foo.sh
if something goes terribly wrong you can examine foo.sh to try to figure out what happened and how to fix it. Even if foo.sh managed to delete itself you can just grab it again.

After

  $ curl https://whatever/foo.sh | sh
if something goes wrong and you then try

  $ curl https://whatever/foo.sh > foo.sh
to get a copy of the script to examine a malicious server can tell that you aren't piping to a shell [1] and give a non-malicious script.

Since it takes an insignificant amount of effort to defend against this why not get in the habit of doing it?

[1] https://news.ycombinator.com/item?id=17636032

There are no comments on this comment yet.