Re: Smarty Built-in Function PHP

From: Date: Thu, 17 May 2001 20:25:38 +0000
Subject: Re: Smarty Built-in Function PHP
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-775@lists.php.net to get a copy of this message
Monte Ohrt wrote: > Even without the new {php} tags, there are still _lots_ of holes in > the template language that allow template designers (or would be rogue > hackers) to execute PHP. For instance, variable modifiers. If one > doesn't exist, it handles it as a PHP function. Also {if ...} > statements. They are passed directly to the parser, so some fancy > syntax footwork could execute arbitrary php functions here. yes. even a simple if statement like {if var_dump(file('/home/include/mydb.php'))}{/if} could e.g. "spy" out a database password, or whatever you want. -- andreas kossmeier bergfex.at - http://www.bergfex.at

« previous php.smarty.general (#775) next »