in reply to Re^4: Not able to use native linux commands in a perl script
in thread Not able to use native linux commands in a perl script
can wipe any file you care about. Note that prevention of executing arbitrary commands is trivial using system:File::Copy($src, $dst);
Not any more dangerous than File::Copy.system '/bin/cp', $src, $dst;
As example $dst='text.txt; cat /etc/passwd | mail ...'. If this script will be using with root privilege...Yawn. If the script is executed with root privileges, and $dst = '/etc/passwd', File::Copy("blah", $dst); isn't exactly harmless.
Oh, and if you're going to accept data from others, you ought to be using taint mode anyway. And properly detaint your input.
|
|---|