Re:Show HN: Inspect questionable scripts before piping them ...
by SmirkingRevenge on Saturday May 16, 2015 @10:42PM
(#9558474)
Would that really be any different that downloading the script, then opening it with less/vim/whatever locally, which is typically going to be pretty safe, unless the script is accidentally executed somehow.
Re:Show HN: Inspect questionable scripts before piping them ...
by thrownaway122 on Sunday May 17, 2015 @04:33AM
(#9559217)
Well it is exactly the same.
Re:Show HN: Inspect questionable scripts before piping them ...
by hartator on Saturday May 16, 2015 @10:09PM
(#9558401)
Can you provide an example?
Re:Show HN: Inspect questionable scripts before piping them ...
by thrownaway122 on Sunday May 17, 2015 @04:39AM
(#9559236)
EDIT found link
http://seclists.org/fulldisclosure/2014/Nov/74
Basically the tldr is that gnu less is a program that has been engineered to do a lot of things over the years and this has created attack surfaces which mean that if someone was to curl .... | less on a carefully designed payload it could allow the payload to obtain a shell.
I wasn't saying that it isn't safer just that it isn't totally safe.
EDIT More info. Yes this is better than curl ... | sh. But less has a lot of functionality (more than you'd expect) and a carefully written script could exploit some of this.