Have you considered forking off a child process to run the external script then validating the output doesnt contain anything naughty?
As an optional extra you could embed a checksum in the cgi, then verify the checksum against the external script. Its far from water tight, but if you secure the cgi, you can give yourself some indication there has been an unauthorised change to the external script.
In reply to Re: Executing another script from a CGI
by Ryszard
in thread Executing another script from a CGI
by higle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |