Smarty regex_replace modifier security bypass
| smarty-regexreplace-security-bpass (19880) |
Description:
Smarty is a template engine used for PHP running on Microsoft Windows and Unix-based operating systems. Smarty versions prior to 2.6.8 could allow a remote attacker to bypass security restrictions, caused by a vulnerability in the regex_replace modifier. A remote attacker could exploit this vulnerability using an affected application with the template security features to bypass security and execute arbitrary PHP code on the system.
Platforms Affected:
- Gentoo, Linux
- Smarty, Smarty prior to 2.6.8
Remedy:
Upgrade to the latest version of Smarty (2.6.8 or later), available from the Smarty Download Web page. See References.
For Gentoo Linux:
Refer to Gentoo Linux Security Announcement GLSA 2005-03-35 for patch, upgrade, or suggested workaround information. See References.
Consequences:
Bypass Security
References:
- Smarty Download Web page, Download at http://smarty.php.net/download.php.
- BID-12941: Smarty Template Engine Remote PHP Script Execution Vulnerability
- CVE-2005-0913: Unknown vulnerability in the regex_replace modifier (modifier.regex_replace.php) in Smarty before 2.6.8 allows attackers to execute arbitrary PHP code.
- GLSA-200503-35: Smarty: Template vulnerability
- SA14729: Smarty "regex_replace" Modifier Template Security Bypass
- SECTRACK ID: 1013556: Smarty regex_replace Modifier Template Security Bug Lets Users Execute PHP Code
Reported:
Mar 29, 2005
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
For corrections or additions please email xforce@iss.net
