This is an archived low-energy page for bots and other anonmyous visitors.
Please sign up if you are a human and want to interact.
in reply to Re^2: running an executable from a cgi script in thread running an executable from a cgi script
OK ... I don't think the 'refresh' problem will arise.
The steps will be as follows:
A script that uploads the text file to a named directory on the server. This has already been written. This cgi script will then (hopefully) point to this script which will then call the external program.
The results of the external program will come though as a text file also.
Re^4: running an executable from a cgi script
by swkronenfeld (Hermit) on Feb 09, 2006 at 11:58 UTC
|
So you are allowing a user to upload a text file and your executable is doing some sort of processing on that file. Then yes, you have a potential security problem.
If you're greping the text file for some keywords and printing them back...not such a big deal. If you're letting the user upload a shell script and executing it for them...red alert! So we need to know what your executable is doing with the text. | [reply] [d/l] |
|
|
ok. thanks for your help so far. The executable is simply taking the file and extracting some information from it and then its doing some calculations with the information it has been given.
So .. the upload script first allows the user to upload the file (the user can only upload a text file and only up to a certain size .. that has already been taken care of). Then the upload script sends the name and location of the file to the second script which then runs the external program
| [reply] |
|