GLSA 200503-35: Smarty: Template vulnerability
Severity: | high |
Title: | Smarty: Template vulnerability |
Date: | 03/30/2005 |
Bugs: |
|
ID: | 200503-35 |
Synopsis
Smarty's "Template security" feature can be bypassed, potentially allowing a remote attacker to execute arbitrary PHP code.Background
Smarty is a template engine for PHP. The "template security" feature of Smarty is designed to help reduce the risk of a system compromise when you have untrusted parties editing templates.
Affected packages
Package | Vulnerable | Unaffected | Architecture(s) |
---|---|---|---|
dev-php/smarty | < 2.6.9 | >= 2.6.9 | All supported architectures |
Description
A vulnerability has been discovered within the regex_replace modifier of the Smarty templates when allowing access to untrusted users. Furthermore, it was possible to call functions from {if} statements and {math} functions.
Impact
These issues may allow a remote attacker to bypass the "template security" feature of Smarty, and execute arbitrary PHP code.
Workaround
Do not grant template access to untrusted users.
Resolution
All Smarty users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose ">=dev-php/smarty-2.6.9"
References
Availability
This GLSA and any updates to it are available for viewing at the Gentoo Security Website:
Concerns?
Security is a primary focus of Gentoo Linux and ensuring the confidentiality and security of our users machines is of utmost importance to us. Any security concerns should be addressed to security@gentoo.org or alternatively, you may file a bug at https://bugs.gentoo.org.
License
Copyright 2010 Gentoo Foundation, Inc; referenced text belongs to its owner(s). The contents of this document are licensed under the Creative Commons - Attribution / Share Alike license.