Hugo, here's the deal. In the current scheme of things, we are using Xitami web server for our purposes. It runs as root. By switching to Hiawatha, at least I can assure my folks that we are using something that's being actively developed, is easily configurable and has secure code. Hence my query to you!
And thanks a lot for that pointer, will try to get it working.
P.S.: Until someone really starts editing that CGI code, this is my only (somewhat) sane solution. Thanks again, Hugo.