(Gentoo Issues Fix) TWiki Input Validation Hole in Search Function Lets Remote Users Execute Shell Commands
|
|
SecurityTracker Alert ID: 1012318 |
|
SecurityTracker URL: http://securitytracker.com/id/1012318
|
|
CVE Reference:
CAN-2004-1037
(Links to External Site)
|
Date: Nov 24 2004
|
Impact:
Execution of arbitrary code via network, User access via network
|
Fix Available: Yes Vendor Confirmed: Yes
|
Version(s): 20040901 and prior versions
|
Description:
A vulnerability was reported in TWiki. A remote user can execute shell commands on the target system.
Hans Ulrich Niedermann reported that the search function does not validate user-supplied input before executing a command line entry based on the input. A remote user can supply a specially crafted search string to execute arbitrary commands on the target system.
A demonstration exploit search string is provided:
doesnotexist1'; (uname -a; id) | sed 's/\(.*\)/__BEGIN__\1__END__.txt/'; fgrep -i -l -- 'doesnotexist2
The vendor was notified on November 12, 2004.
|
Impact:
A remote user can execute arbitrary shell commands on the target system with the privileges of the target web service.
|
Solution:
Gentoo has released a fix and indicates that all TWiki users should upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose ">=www-apps/twiki-20040902"
|
Vendor URL: twiki.org/cgi-bin/view/Codev/SecurityAlertExecuteCommandsWithSearch (Links to External Site)
|
Cause:
Input validation error
|
Underlying OS:
Linux (Gentoo)
|
|
Message History:
This archive entry is a follow-up to the message listed below.
|
Source Message Contents
|
Date: Wed, 24 Nov 2004 10:01:35 +0100
Subject: [gentoo-announce] [ GLSA 200411-33 ] TWiki: Arbitrary command execution
|
--nextPart3687616.ztohsqJkHV
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
=2D - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory GLSA 200411-33
=2D - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
http://security.gentoo.org/
=2D - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Severity: High
Title: TWiki: Arbitrary command execution
Date: November 24, 2004
Bugs: #71035
ID: 200411-33
=2D - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Synopsis
=3D=3D=3D=3D=3D=3D=3D=3D
A bug in the TWiki search function allows an attacker to execute
arbitrary commands with the permissions of the user running TWiki.
Background
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
TWiki is a Web-based groupware tool based around the concept of wiki
pages that can be edited by anybody with a Web browser.
Affected packages
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
-------------------------------------------------------------------
Package / Vulnerable / Unaffected
-------------------------------------------------------------------
1 www-apps/twiki < 20040902 >=3D 20040902=20
Description
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
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.
Impact
=3D=3D=3D=3D=3D=3D
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).
Workaround
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
There is no known workaround at this time.
Resolution
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
All TWiki users should upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose ">=3Dwww-apps/twiki-20040902"
References
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
[ 1 ] TWiki Security Alert
http://twiki.org/cgi-bin/view/Codev/SecurityAlertExecuteCommandsWit=
hSearch
[ 2 ] CAN-2004-1037
http://cve.mitre.org/cgi-bin/cvename.cgi?name=3DCAN-2004-1037
Availability
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
This GLSA and any updates to it are available for viewing at
the Gentoo Security Website:
http://security.gentoo.org/glsa/glsa-200411-33.xml
Concerns?
=3D=3D=3D=3D=3D=3D=3D=3D=3D
Security is a primary focus of Gentoo Linux and ensuring the
confidentiality and security of our users machines is of utmost
importance to us. Any security concerns should be addressed to
security@gentoo.org or alternatively, you may file a bug at
http://bugs.gentoo.org.
License
=3D=3D=3D=3D=3D=3D=3D
Copyright 2004 Gentoo Foundation, Inc; referenced text
belongs to its owner(s).
The contents of this document are licensed under the
Creative Commons - Attribution / Share Alike license.
http://creativecommons.org/licenses/by-sa/2.0
--nextPart3687616.ztohsqJkHV
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
iD8DBQBBpE30zKC5hMHO6rkRAkRkAJ0VBaivABlAaxjPkY0kTVxKAIDXBACfUWXu
49J84r1kbO7ehqybxUj9Zb4=
=BBvv
-----END PGP SIGNATURE-----
--nextPart3687616.ztohsqJkHV--
|
|