1 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
2 |
Gentoo Linux Security Advisory GLSA 200503-35 |
3 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
4 |
http://security.gentoo.org/ |
5 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
6 |
|
7 |
Severity: High |
8 |
Title: Smarty: Template vulnerability |
9 |
Date: March 30, 2005 |
10 |
Bugs: #86488 |
11 |
ID: 200503-35 |
12 |
|
13 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
14 |
|
15 |
Synopsis |
16 |
======== |
17 |
|
18 |
Smarty's "Template security" feature can be bypassed, potentially |
19 |
allowing a remote attacker to execute arbitrary PHP code. |
20 |
|
21 |
Background |
22 |
========== |
23 |
|
24 |
Smarty is a template engine for PHP. The "template security" feature of |
25 |
Smarty is designed to help reduce the risk of a system compromise when |
26 |
you have untrusted parties editing templates. |
27 |
|
28 |
Affected packages |
29 |
================= |
30 |
|
31 |
------------------------------------------------------------------- |
32 |
Package / Vulnerable / Unaffected |
33 |
------------------------------------------------------------------- |
34 |
1 dev-php/smarty < 2.6.8 >= 2.6.8 |
35 |
|
36 |
Description |
37 |
=========== |
38 |
|
39 |
A vulnerability has been discovered within the regex_replace modifier |
40 |
of the Smarty templates when allowing access to untrusted users. |
41 |
|
42 |
Impact |
43 |
====== |
44 |
|
45 |
This issue may allow a remote attacker to bypass the "template |
46 |
security" feature of Smarty, and execute arbitrary PHP code. |
47 |
|
48 |
Workaround |
49 |
========== |
50 |
|
51 |
Do not grant template access to untrusted users. |
52 |
|
53 |
Resolution |
54 |
========== |
55 |
|
56 |
All Smarty users should upgrade to the latest version: |
57 |
|
58 |
# emerge --sync |
59 |
# emerge --ask --oneshot --verbose ">=dev-php/smarty-2.6.8" |
60 |
|
61 |
References |
62 |
========== |
63 |
|
64 |
[ 1 ] Smarty ChangeLog |
65 |
http://smarty.php.net/misc/NEWS |
66 |
|
67 |
Availability |
68 |
============ |
69 |
|
70 |
This GLSA and any updates to it are available for viewing at |
71 |
the Gentoo Security Website: |
72 |
|
73 |
http://security.gentoo.org/glsa/glsa-200503-35.xml |
74 |
|
75 |
Concerns? |
76 |
========= |
77 |
|
78 |
Security is a primary focus of Gentoo Linux and ensuring the |
79 |
confidentiality and security of our users machines is of utmost |
80 |
importance to us. Any security concerns should be addressed to |
81 |
security@g.o or alternatively, you may file a bug at |
82 |
http://bugs.gentoo.org. |
83 |
|
84 |
License |
85 |
======= |
86 |
|
87 |
Copyright 2005 Gentoo Foundation, Inc; referenced text |
88 |
belongs to its owner(s). |
89 |
|
90 |
The contents of this document are licensed under the |
91 |
Creative Commons - Attribution / Share Alike license. |
92 |
|
93 |
http://creativecommons.org/licenses/by-sa/2.0 |