Ovid has asked for the wisdom of the Perl Monks concerning the following question:
Scenario: Our company is in the process of restructuring the way we create dynamic Web sites. I am have been tasked with researching and implementing the creation of secure, scalable systems. My current problem is one that I am sure other monks have faced.
I have convinced the company that we need to switch to a templating system (probably Template Toolkit) as the first step. However, some of our clients already have rather extensive Web sites. They would like to take much of the e-commerce functionality that we have and embed them within their Web pages without having us create an entire site from scratch.
My initial thought was that all scripts would check for an SSI parameter and serve either the entire page, or the appropriate section, depending upon whether the page was called from an SSI. Unfortunately, one of our clients wants to retain the ability to access and update the HTML directly. What I don't want is the client to be able to enter something like <!--#exec cmd="..."-->. I would much prefer that they be able to enter a tag that we supply and have it parsed with Perl using Template Toolkit. This would involved having IIS trap calls to HTML files in their directory and pass it off to a handler script. I don't yet know how to set that up (any IISMonks out there? :), but it seems much safer than allowing them to enter SSIs.
Any thoughts or comments about this method of ensuring security?
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tighter Security with Client Supplied SSIs
by $code or die (Deacon) on May 08, 2001 at 02:40 UTC |