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.
*CVSS:
| Base Score: | 7.5 |
| Access Vector: | Network |
| Access Complexity: | Low |
| Authentication: | None |
| Confidentiality Impact: | Partial |
| Integrity Impact: | Partial |
| Availability Impact: | Partial |
| Temporal Score: | 5.5 |
| Exploitability: | Unproven |
| Remediation Level: | Official-Fix |
| Report Confidence: | Confirmed |
Consequences:
Bypass Security
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.
References:
- Serendipity Web site: Serendipity 1.3 released (addresses security).
- Smarty Changelog, Feb 11th, 2008: Version 2.6.19.
- Smarty Download Web page: Download.
- 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
- GLSA-201006-13: Smarty: Multiple vulnerabilities
- SA29241: Smarty "regex_replace" Modifier Template Security Bypass
- SA29398: Serendipity Security Bypass and Script Insertion Vulnerabilities
- SUSE-SR:2008:007: SUSE Security Summary Report
Platforms Affected:
- Debian Debian Linux 3.1
- Debian Debian Linux 4.0
- Gentoo Linux
- s9y Serendipity prior to 1.3
- Smarty Smarty prior to 2.6.19
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 (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
* According to the Forum of Incident Response and Security Teams (FIRST), the Common Vulnerability Scoring System (CVSS) is an "industry open standard designed to convey vulnerability severity and help to determine urgency and priority of response." IBM PROVIDES THE CVSS SCORES "AS IS" WITHOUT WARRANTY OF ANY KIND, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. CUSTOMERS ARE RESPONSIBLE FOR ASSESSING THE IMPACT OF ANY ACTUAL OR POTENTIAL SECURITY VULNERABILITY.
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 IBM be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
