<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Security with PHP Only templates</title>
	<atom:link href="http://blog.joshuaeichorn.com/archives/2004/08/12/security-with-php-only-templates/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.joshuaeichorn.com/archives/2004/08/12/security-with-php-only-templates/</link>
	<description>The weblog of Joshua Eichorn, AJAX, PHP and Open Source</description>
	<lastBuildDate>Mon, 20 Jun 2011 19:31:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4-alpha</generator>
	<item>
		<title>By: awal</title>
		<link>http://blog.joshuaeichorn.com/archives/2004/08/12/security-with-php-only-templates/comment-page-1/#comment-283</link>
		<dc:creator>awal</dc:creator>
		<pubDate>Tue, 30 Nov 2004 12:39:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2004/08/12/security-with-php-only-templates/#comment-283</guid>
		<description>I like it</description>
		<content:encoded><![CDATA[<p>I like it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: forestg</title>
		<link>http://blog.joshuaeichorn.com/archives/2004/08/12/security-with-php-only-templates/comment-page-1/#comment-82</link>
		<dc:creator>forestg</dc:creator>
		<pubDate>Sat, 14 Aug 2004 10:50:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2004/08/12/security-with-php-only-templates/#comment-82</guid>
		<description>I really don&#039;t have any production use for this at all, but I find the whole topic quite interesting.  But yea i think i&#039;d used it more along the lines enforcing rules in phpDocumentor templates then just for security.

I should look at the phpDocumentor 2.0 code and build the analysis off of php_parser, but thats actual work instead of a proof of concept.</description>
		<content:encoded><![CDATA[<p>I really don&#8217;t have any production use for this at all, but I find the whole topic quite interesting.  But yea i think i&#8217;d used it more along the lines enforcing rules in phpDocumentor templates then just for security.</p>
<p>I should look at the phpDocumentor 2.0 code and build the analysis off of php_parser, but thats actual work instead of a proof of concept.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lukas</title>
		<link>http://blog.joshuaeichorn.com/archives/2004/08/12/security-with-php-only-templates/comment-page-1/#comment-81</link>
		<dc:creator>Lukas</dc:creator>
		<pubDate>Sat, 14 Aug 2004 10:41:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2004/08/12/security-with-php-only-templates/#comment-81</guid>
		<description>Well now you are taking things into a different direction than security .. but depending on what you do it may be feasible to combine the two. Since all my html designers are within slapping range I dont have this problem quite as much though :-)</description>
		<content:encoded><![CDATA[<p>Well now you are taking things into a different direction than security .. but depending on what you do it may be feasible to combine the two. Since all my html designers are within slapping range I dont have this problem quite as much though <img src='http://blog.joshuaeichorn.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: forestg</title>
		<link>http://blog.joshuaeichorn.com/archives/2004/08/12/security-with-php-only-templates/comment-page-1/#comment-76</link>
		<dc:creator>forestg</dc:creator>
		<pubDate>Fri, 13 Aug 2004 10:43:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2004/08/12/security-with-php-only-templates/#comment-76</guid>
		<description>To me it makes a lot of sense.  In many situations your not so much worried about security but that your templates don&#039;t turn into a total unmanageable hack just because they can.

But that could just be my view of the situation.

Actually i can think of a situation were you could use a tool like this to certify that code was only using a standard api and thus could be garenteed compatible between multiple implementations of the same basic api, al la J2EE aplication verfication junk.</description>
		<content:encoded><![CDATA[<p>To me it makes a lot of sense.  In many situations your not so much worried about security but that your templates don&#8217;t turn into a total unmanageable hack just because they can.</p>
<p>But that could just be my view of the situation.</p>
<p>Actually i can think of a situation were you could use a tool like this to certify that code was only using a standard api and thus could be garenteed compatible between multiple implementations of the same basic api, al la J2EE aplication verfication junk.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lukas</title>
		<link>http://blog.joshuaeichorn.com/archives/2004/08/12/security-with-php-only-templates/comment-page-1/#comment-75</link>
		<dc:creator>Lukas</dc:creator>
		<pubDate>Fri, 13 Aug 2004 10:16:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2004/08/12/security-with-php-only-templates/#comment-75</guid>
		<description>I dont see a problem there really. All you want to do is prevent people from accessing internal variables and certain extensions. I dont think it makes sense to dictate what language constructs people should be allowed to use inside their templates.</description>
		<content:encoded><![CDATA[<p>I dont see a problem there really. All you want to do is prevent people from accessing internal variables and certain extensions. I dont think it makes sense to dictate what language constructs people should be allowed to use inside their templates.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: forestg</title>
		<link>http://blog.joshuaeichorn.com/archives/2004/08/12/security-with-php-only-templates/comment-page-1/#comment-74</link>
		<dc:creator>forestg</dc:creator>
		<pubDate>Fri, 13 Aug 2004 08:48:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2004/08/12/security-with-php-only-templates/#comment-74</guid>
		<description>Well i think part of the problem with trying to limit things based on php.ini Is i don&#039;t think there is an easy way to stop people from writing new functions or classes (unless i just haven&#039;t seen that option in the ini).

Any how if your goes the code analysis I would be willing to colloborate, well at least helping on policy engine design and further development of the code analysis class.</description>
		<content:encoded><![CDATA[<p>Well i think part of the problem with trying to limit things based on php.ini Is i don&#8217;t think there is an easy way to stop people from writing new functions or classes (unless i just haven&#8217;t seen that option in the ini).</p>
<p>Any how if your goes the code analysis I would be willing to colloborate, well at least helping on policy engine design and further development of the code analysis class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lukas</title>
		<link>http://blog.joshuaeichorn.com/archives/2004/08/12/security-with-php-only-templates/comment-page-1/#comment-73</link>
		<dc:creator>Lukas</dc:creator>
		<pubDate>Fri, 13 Aug 2004 08:15:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2004/08/12/security-with-php-only-templates/#comment-73</guid>
		<description>Well I just dont believe that code analysis tools will be as reliable as the solution I proposed. However yes its way too clunky and that is why I will probably also go the code analysis route for now.</description>
		<content:encoded><![CDATA[<p>Well I just dont believe that code analysis tools will be as reliable as the solution I proposed. However yes its way too clunky and that is why I will probably also go the code analysis route for now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: forestg</title>
		<link>http://blog.joshuaeichorn.com/archives/2004/08/12/security-with-php-only-templates/comment-page-1/#comment-72</link>
		<dc:creator>forestg</dc:creator>
		<pubDate>Thu, 12 Aug 2004 18:55:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2004/08/12/security-with-php-only-templates/#comment-72</guid>
		<description>A setup like that sounds quite klunky and slow, also i think it would be easy to write a policy that allowed that with a system based on code analysis, you just say let them call the methods of your sql api in the policy or something like that.  Though i don&#039;t really think the people who are looking for a solution like this want to let someone do quick and dirty things, but thats the whole point of a setup like this, you can optionally run it with say Savant or not.</description>
		<content:encoded><![CDATA[<p>A setup like that sounds quite klunky and slow, also i think it would be easy to write a policy that allowed that with a system based on code analysis, you just say let them call the methods of your sql api in the policy or something like that.  Though i don&#8217;t really think the people who are looking for a solution like this want to let someone do quick and dirty things, but thats the whole point of a setup like this, you can optionally run it with say Savant or not.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lukas</title>
		<link>http://blog.joshuaeichorn.com/archives/2004/08/12/security-with-php-only-templates/comment-page-1/#comment-71</link>
		<dc:creator>Lukas</dc:creator>
		<pubDate>Thu, 12 Aug 2004 18:20:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2004/08/12/security-with-php-only-templates/#comment-71</guid>
		<description>well the idea would be to pass all the parameters you want your template to have via a call to your cgi php (actually you could have different cgi and/or php.ini&#039;s). isnt that what you are supposed to anyways?

the beauty is however that you retain the power of php within the templates ... theoretically you could even allow people to run a query inside the templates if they really have to (sometimes you need quick and dirty and its nice to have as a possibility)</description>
		<content:encoded><![CDATA[<p>well the idea would be to pass all the parameters you want your template to have via a call to your cgi php (actually you could have different cgi and/or php.ini&#8217;s). isnt that what you are supposed to anyways?</p>
<p>the beauty is however that you retain the power of php within the templates &#8230; theoretically you could even allow people to run a query inside the templates if they really have to (sometimes you need quick and dirty and its nice to have as a possibility)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: forestg</title>
		<link>http://blog.joshuaeichorn.com/archives/2004/08/12/security-with-php-only-templates/comment-page-1/#comment-70</link>
		<dc:creator>forestg</dc:creator>
		<pubDate>Thu, 12 Aug 2004 18:12:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2004/08/12/security-with-php-only-templates/#comment-70</guid>
		<description>I&#039;ll have to look but you can tell its a function  call called $foo even if you don&#039;t know what $foo is, so if your using a whitelisting setup it wouldn&#039;t be allowed.

I don&#039;t really think you could make a secure policy without whitelisting, at least not without a lot of work to find everyway to get around it like that.</description>
		<content:encoded><![CDATA[<p>I&#8217;ll have to look but you can tell its a function  call called $foo even if you don&#8217;t know what $foo is, so if your using a whitelisting setup it wouldn&#8217;t be allowed.</p>
<p>I don&#8217;t really think you could make a secure policy without whitelisting, at least not without a lot of work to find everyway to get around it like that.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

