1 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
2 |
Gentoo Linux Security Advisory GLSA 200411-33 |
3 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
4 |
http://security.gentoo.org/ |
5 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
6 |
|
7 |
Severity: High |
8 |
Title: TWiki: Arbitrary command execution |
9 |
Date: November 24, 2004 |
10 |
Bugs: #71035 |
11 |
ID: 200411-33 |
12 |
|
13 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
14 |
|
15 |
Synopsis |
16 |
======== |
17 |
|
18 |
A bug in the TWiki search function allows an attacker to execute |
19 |
arbitrary commands with the permissions of the user running TWiki. |
20 |
|
21 |
Background |
22 |
========== |
23 |
|
24 |
TWiki is a Web-based groupware tool based around the concept of wiki |
25 |
pages that can be edited by anybody with a Web browser. |
26 |
|
27 |
Affected packages |
28 |
================= |
29 |
|
30 |
------------------------------------------------------------------- |
31 |
Package / Vulnerable / Unaffected |
32 |
------------------------------------------------------------------- |
33 |
1 www-apps/twiki < 20040902 >= 20040902 |
34 |
|
35 |
Description |
36 |
=========== |
37 |
|
38 |
The TWiki search function, which uses a shell command executed via the |
39 |
Perl backtick operator, does not properly escape shell metacharacters |
40 |
in the user-provided search string. |
41 |
|
42 |
Impact |
43 |
====== |
44 |
|
45 |
An attacker can insert malicious commands into a search request, |
46 |
allowing the execution of arbitrary commands with the privileges of the |
47 |
user running TWiki (usually the Web server user). |
48 |
|
49 |
Workaround |
50 |
========== |
51 |
|
52 |
There is no known workaround at this time. |
53 |
|
54 |
Resolution |
55 |
========== |
56 |
|
57 |
All TWiki users should upgrade to the latest version: |
58 |
|
59 |
# emerge --sync |
60 |
# emerge --ask --oneshot --verbose ">=www-apps/twiki-20040902" |
61 |
|
62 |
References |
63 |
========== |
64 |
|
65 |
[ 1 ] TWiki Security Alert |
66 |
http://twiki.org/cgi-bin/view/Codev/SecurityAlertExecuteCommandsWithSearch |
67 |
[ 2 ] CAN-2004-1037 |
68 |
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-1037 |
69 |
|
70 |
Availability |
71 |
============ |
72 |
|
73 |
This GLSA and any updates to it are available for viewing at |
74 |
the Gentoo Security Website: |
75 |
|
76 |
http://security.gentoo.org/glsa/glsa-200411-33.xml |
77 |
|
78 |
Concerns? |
79 |
========= |
80 |
|
81 |
Security is a primary focus of Gentoo Linux and ensuring the |
82 |
confidentiality and security of our users machines is of utmost |
83 |
importance to us. Any security concerns should be addressed to |
84 |
security@g.o or alternatively, you may file a bug at |
85 |
http://bugs.gentoo.org. |
86 |
|
87 |
License |
88 |
======= |
89 |
|
90 |
Copyright 2004 Gentoo Foundation, Inc; referenced text |
91 |
belongs to its owner(s). |
92 |
|
93 |
The contents of this document are licensed under the |
94 |
Creative Commons - Attribution / Share Alike license. |
95 |
|
96 |
http://creativecommons.org/licenses/by-sa/2.0 |