Smarty modifier.regex_replace.php plugin security bypass
| smarty-modifierregexreplace-security-bypass (41002) |
Description:
Smarty could allow a remote attacker to bypass security restrictions, caused by an error in the modifier.regex_replace.php plugin. An attacker could exploit this vulnerability using the template security features related to a '\0' character search string to bypass the template security and possibly execute arbitrary PHP code on the system.
Platforms Affected:
- Debian, Debian Linux 3.1
- Debian, Debian Linux 4.0
- s9y, Serendipity prior to 1.3
- Smarty, Smarty prior to 2.6.19
Remedy:
Upgrade to the latest version of Smarty (2.6.19 or later), available from the Smarty Download Web page. See References.
For Serendipity:
Upgrade to the latest version of Serendipity (1.3 or later), available from the Serendipity Web site. See References.
Consequences:
Bypass Security
References:
- Serendipity Web site, Serendipity 1.3 released (addresses security) at http://blog.s9y.org/archives/192-Serendipity-1.3-released-addresses-security.html.
- Smarty Changelog, Feb 11th, 2008, Version 2.6.19 at http://www.smarty.net/misc/NEWS.
- Smarty Download Web page, Download at http://smarty.php.net/download.php.
- BID-28105: Smarty Template Engine 'regex_replace' Template Security Bypass Vulnerability
- CVE-2008-1066: The modifier.regex_replace.php plugin in Smarty before 2.6.19, as used by Serendipity (S9Y) and other products, allows attackers to call arbitrary PHP functions via templates, related to a '\0' character in a search string.
- DSA-1520: smarty -- insufficient input sanitising
- SA29241: Smarty "regex_replace" Modifier Template Security Bypass
- SA29398: Serendipity Security Bypass and Script Insertion Vulnerabilities
- SUSE-SR:2008:007: SUSE Security Summary Report
Reported:
Feb 11, 2008
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 (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.
Copyright (c) 1994-2008 Internet Security Systems, Inc. All rights reserved worldwide.
For corrections or additions please email xforce@iss.net
