summaryrefslogtreecommitdiff
blob: 4647de95c702a2013a756eb3a027350940388139 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">

<glsa id="200503-35">
  <title>Smarty: Template vulnerability</title>
  <synopsis>
    Smarty's "Template security" feature can be bypassed, potentially allowing
    a remote attacker to execute arbitrary PHP code.
  </synopsis>
  <product type="ebuild">smarty</product>
  <announced>March 30, 2005</announced>
  <revised>May 22, 2006: 03</revised>
  <bug>86488</bug>
  <access>remote</access>
  <affected>
    <package name="dev-php/smarty" auto="yes" arch="*">
      <unaffected range="ge">2.6.9</unaffected>
      <vulnerable range="lt">2.6.9</vulnerable>
    </package>
  </affected>
  <background>
    <p>
    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.
    </p>
  </background>
  <description>
    <p>
    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.
    </p>
  </description>
  <impact type="high">
    <p>
    These issues may allow a remote attacker to bypass the "template
    security" feature of Smarty, and execute arbitrary PHP code.
    </p>
  </impact>
  <workaround>
    <p>
    Do not grant template access to untrusted users.
    </p>
  </workaround>
  <resolution>
    <p>
    All Smarty users should upgrade to the latest version:
    </p>
    <code>
    # emerge --sync
    # emerge --ask --oneshot --verbose &quot;&gt;=dev-php/smarty-2.6.9&quot;</code>
  </resolution>
  <references>
    <uri link="http://smarty.php.net/misc/NEWS">Smarty ChangeLog</uri>
    <uri link="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2005-0913">CVE-2005-0913</uri>
  </references>
  <metadata tag="requester" timestamp="Thu, 24 Mar 2005 17:18:18 +0000">
    koon
  </metadata>
  <metadata tag="bugReady" timestamp="Mon, 28 Mar 2005 13:11:35 +0000">
    koon
  </metadata>
  <metadata tag="submitter" timestamp="Mon, 28 Mar 2005 13:23:33 +0000">
    lewk
  </metadata>
</glsa>