in reply to Re: Re: Re: Using perl to call a shell command?
in thread Using perl to call a shell command?

You might have already thought about this but; if you are accepting input from a webpage and using that to run a shell command, you should make sure you have sanitized the input and removed any nasties that could be potentially be sent in. There is more infomration at Cross Scripting Vulnerability and in perlsec.

Also, if you are using system, make sure you use pass in the arguments to the shell commnad as a separate list (second form of calling system) rather than building up a string with the command and argument and handing that to system.

Cheers, data64


Just a tongue-tied, twisted, earth-bound misfit. -- Pink Floyd

  • Comment on Re: Re: Re: Re: Using perl to call a shell command?