Re:Everything you need to know about the Shellshock Bash bug
by shangxiao on Thursday September 25, 2014 @01:32PM
(#8368365)
This is actually quite common and acceptable if you want to interact with a piece of software for which there is no library or api. One real world example is producing thumbnails from Word documents using Libre Office.
[ Parent
| on HN ]
Re:Everything you need to know about the Shellshock Bash bug
by argggh on Thursday September 25, 2014 @02:14PM
(#8368649)
You don't have to do it explicitly either. In Perl, for instance, doing stuff like open($tgz, "|-", "gzip | tar -cvf /tmp/file.tgz"); is going to cause execution of /bin/sh behind the scenes. Assuming that /bin/sh is never called during processing of external requests is risky.