summaryrefslogtreecommitdiff
blob: fc25b3fb90491dd0c1f8fb598971385dfb344c8d (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
<?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>2005-03-30</announced>
  <revised>2006-05-22: 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 "&gt;=dev-php/smarty-2.6.9"</code>
  </resolution>
  <references>
    <uri link="https://smarty.php.net/misc/NEWS">Smarty ChangeLog</uri>
    <uri link="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2005-0913">CVE-2005-0913</uri>
  </references>
  <metadata tag="requester" timestamp="2005-03-24T17:18:18Z">
    koon
  </metadata>
  <metadata tag="bugReady" timestamp="2005-03-28T13:11:35Z">
    koon
  </metadata>
  <metadata tag="submitter" timestamp="2005-03-28T13:23:33Z">
    lewk
  </metadata>
</glsa>