Better HN
topnewbestaskshowjobs
Log inSign up

argggh

1 karma · joined Jun 22, 2011 (15y ago) · 1 submissions

Submissions

comment 12y ago · link · parent

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.