Bugtraq mailing list archives

Re: Advisory: Unchecked system(blaat $var blaat) call in Bugzilla 2.8


From: Todd.Miller () COURTESAN COM (Todd C. Miller)
Date: Thu, 11 May 2000 00:40:05 -0600


Would it not be simpler (and safer) to just call system() with
a list instead of a scalar and thus prevent perl from ever invoking
a shell?

Ie, instead of:
    system("./processmail $id $::FORM{'who'}");
Use:
    system("./processmail", $id, $::FORM{'who'});

 - todd


Current thread: