J-Security Center

Title: Smarty Template Engine 'function.math.php' Security Bypass Vulnerability

Severity: HIGH

Description:

Smarty Template Engine is a template-based content manager implemented in PHP.

Smarty Template Engine is prone to a security-bypass vulnerability because it fails to adequately sanitize user-supplied input. This issue occurs because the 'smarty_function_math()' function in the 'libs/plugins/function.math.php' source file fails to properly sanitize input before using it in an 'eval()' system call.

Attackers may exploit the issue to bypass certain security restrictions and execute arbitrary PHP code in the context of the application.

Smarty Template Engine 2.6.22 for Windows is vulnerable; other versions may also be affected.

Affected Products:

  • Debian Linux 4.0
  • Debian Linux 4.0 alpha
  • Debian Linux 4.0 amd64
  • Debian Linux 4.0 arm
  • Debian Linux 4.0 armel
  • Debian Linux 4.0 hppa
  • Debian Linux 4.0 ia-32
  • Debian Linux 4.0 ia-64
  • Debian Linux 4.0 m68k
  • Debian Linux 4.0 mips
  • Debian Linux 4.0 mipsel
  • Debian Linux 4.0 powerpc
  • Debian Linux 4.0 s/390
  • Debian Linux 4.0 sparc
  • Debian Linux 5.0
  • Debian Linux 5.0 alpha
  • Debian Linux 5.0 amd64
  • Debian Linux 5.0 arm
  • Debian Linux 5.0 armel
  • Debian Linux 5.0 hppa
  • Debian Linux 5.0 ia-32
  • Debian Linux 5.0 ia-64
  • Debian Linux 5.0 m68k
  • Debian Linux 5.0 mips
  • Debian Linux 5.0 mipsel
  • Debian Linux 5.0 powerpc
  • Debian Linux 5.0 s/390
  • Debian Linux 5.0 sparc
  • Gentoo Linux
  • Mahara Mahara 1.0.0
  • Mahara Mahara 1.0.1
  • Mahara Mahara 1.0.10
  • Mahara Mahara 1.0.11
  • Mahara Mahara 1.0.12
  • Mahara Mahara 1.0.13
  • Mahara Mahara 1.0.2
  • Mahara Mahara 1.0.3
  • Mahara Mahara 1.0.4
  • Mahara Mahara 1.0.5
  • Mahara Mahara 1.0.6
  • Mahara Mahara 1.0.8
  • Mahara Mahara 1.0.9
  • Mahara Mahara 1.1.1
  • Mahara Mahara 1.1.2
  • Mahara Mahara 1.1.3
  • Mahara Mahara 1.1.4
  • Mahara Mahara 1.1.5
  • Mahara Mahara 1.1.6
  • Mahara Mahara 1.1.7
  • Pardus Linux 2008
  • Red Hat Fedora 10
  • Red Hat Fedora 9
  • Smarty Template Engine 2.6.0
  • Smarty Template Engine 2.6.1
  • Smarty Template Engine 2.6.10
  • Smarty Template Engine 2.6.11
  • Smarty Template Engine 2.6.12
  • Smarty Template Engine 2.6.13
  • Smarty Template Engine 2.6.14
  • Smarty Template Engine 2.6.15
  • Smarty Template Engine 2.6.16
  • Smarty Template Engine 2.6.17
  • Smarty Template Engine 2.6.18
  • Smarty Template Engine 2.6.19
  • Smarty Template Engine 2.6.2
  • Smarty Template Engine 2.6.20-1
  • Smarty Template Engine 2.6.22
  • Smarty Template Engine 2.6.3
  • Smarty Template Engine 2.6.4
  • Smarty Template Engine 2.6.5
  • Smarty Template Engine 2.6.6
  • Smarty Template Engine 2.6.7
  • Smarty Template Engine 2.6.8
  • Smarty Template Engine 2.6.9
  • Ubuntu Ubuntu Linux 8.04 LTS amd64
  • Ubuntu Ubuntu Linux 8.04 LTS i386
  • Ubuntu Ubuntu Linux 8.04 LTS lpia
  • Ubuntu Ubuntu Linux 8.04 LTS powerpc
  • Ubuntu Ubuntu Linux 8.04 LTS sparc
  • Ubuntu Ubuntu Linux 8.10 amd64
  • Ubuntu Ubuntu Linux 8.10 i386
  • Ubuntu Ubuntu Linux 8.10 lpia
  • Ubuntu Ubuntu Linux 8.10 powerpc
  • Ubuntu Ubuntu Linux 8.10 sparc
  • Ubuntu Ubuntu Linux 9.04 amd64
  • Ubuntu Ubuntu Linux 9.04 i386
  • Ubuntu Ubuntu Linux 9.04 lpia
  • Ubuntu Ubuntu Linux 9.04 powerpc
  • Ubuntu Ubuntu Linux 9.04 sparc

References:

Juniper Networks provides this content via a wide variety of sources and production methods. If notified of errors or omissions in the content of this page, Juniper Networks, at its discretion, will modify or remove the page or leave the content as is, depending on various factors including but not limited to the reputation and authority of the party providing the notification. Please use the contact information displayed elsewhere on this page to report any errors or omissions regarding the content on this page.