summaryrefslogtreecommitdiff
blob: 45dac5022333c11976caefe519aadf3a06b01122 (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="200411-33">
  <title>TWiki: Arbitrary command execution</title>
  <synopsis>
    A bug in the TWiki search function allows an attacker to execute arbitrary
    commands with the permissions of the user running TWiki.
  </synopsis>
  <product type="ebuild">www-apps/twiki</product>
  <announced>2004-11-24</announced>
  <revised count="02">2006-09-08</revised>
  <bug>71035</bug>
  <access>remote</access>
  <affected>
    <package name="www-apps/twiki" auto="yes" arch="*">
      <unaffected range="ge">20040902 </unaffected>
      <unaffected range="lt">20000000</unaffected>
      <vulnerable range="lt">20040902 </vulnerable>
    </package>
  </affected>
  <background>
    <p>
    TWiki is a Web-based groupware tool based around the concept of wiki
    pages that can be edited by anybody with a Web browser.
    </p>
  </background>
  <description>
    <p>
    The TWiki search function, which uses a shell command executed via the
    Perl backtick operator, does not properly escape shell metacharacters
    in the user-provided search string.
    </p>
  </description>
  <impact type="high">
    <p>
    An attacker can insert malicious commands into a search request,
    allowing the execution of arbitrary commands with the privileges of the
    user running TWiki (usually the Web server user).
    </p>
  </impact>
  <workaround>
    <p>
    There is no known workaround at this time.
    </p>
  </workaround>
  <resolution>
    <p>
    All TWiki users should upgrade to the latest version:
    </p>
    <code>
    # emerge --sync
    # emerge --ask --oneshot --verbose "&gt;=www-apps/twiki-20040902"</code>
  </resolution>
  <references>
    <uri link="http://twiki.org/cgi-bin/view/Codev/SecurityAlertExecuteCommandsWithSearch">TWiki Security Alert</uri>
    <uri link="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-1037">CAN-2004-1037</uri>
  </references>
  <metadata tag="requester" timestamp="2004-11-22T17:14:35Z">
    koon
  </metadata>
  <metadata tag="submitter" timestamp="2004-11-22T23:25:58Z">
    dmargoli
  </metadata>
  <metadata tag="bugReady" timestamp="2004-11-24T08:52:40Z">
    jaervosz
  </metadata>
</glsa>