in reply to Re^3: Safely passing CGI form data to a shell command
in thread Safely passing CGI form data to a shell command

I said in my previous post that "in your case" you should be using IPC::Open2. That is used to capture output from a program (as well as send input, but you can close the writer since you're not sending input) while still allowing a LIST like system and exec to bypass the shell.

The taint problem is likely that you didn't resent your environment. Check out perlsec on how to set your environment securely.

  • Comment on Re^4: Safely passing CGI form data to a shell command

Replies are listed 'Best First'.
Re^5: Safely passing CGI form data to a shell command
by Tommy (Chaplain) on Apr 21, 2005 at 22:56 UTC