ivo Welch
ivo Welch

Reputation: 2866

securing (perl) legacy programs for web service provision (apache)

I have a long old legacy perl program on linux, written in the old days for a set of trusted local users. It was not written with security in mind.

We want to resurrect it to take input and provide output as a service over the web. It needs to read cgi in, pass it to this old legacy program, and return the answer to the client browser. alas, we do not have the manpower to audit old perl programs for man-months. (Perl has some sandboxing features that can be wrapped around eval's, but this seems fragile.)

what are good options here?

this is all on linux---I know how to run vmware for my windows VM, but this does not seem to be the best tool. I tried kvm 2 years ago, but it had a steep learning curve then. it would seem I almost want to run

 $ make-iso / > my.iso
 $ exec.vm my.iso --mount '/var = my.vdisk' --run '/var/my.program'

this is probably a common problem. what is a good way to handle it?

/iaw

Upvotes: 1

Views: 64

Answers (1)

There are no good solutions for this problem. Security is hard.

An alternative to running it in a full VM would be to use Linux Containers.

Docker is a very easy way to manage containers and in this case I would simply fire up a new container for each run of the script and blow it away after the container was run.

https://www.docker.io/

Upvotes: 1

Related Questions