TWiki Search Shell Metacharacter Remote Arbitrary Command Execution Vulnerability

BID:11674

Info

TWiki Search Shell Metacharacter Remote Arbitrary Command Execution Vulnerability

Bugtraq ID: 11674
Class: Input Validation Error
CVE: CVE-2004-1037
Remote: Yes
Local: No
Published: Nov 12 2004 12:00AM
Updated: Jul 12 2009 08:06AM
Credit: Discovery is credited to Markus Goetz, Joerg Hoh, Michael Holzt, Florian Laws, Hans Ulrich Niedermann, Andreas Thienemann, Peter Thoeny, and Florian Weimer.
Vulnerable: TWiki TWiki 20040901
TWiki TWiki 20030201
TWiki TWiki 01-Feb-2003
TWiki TWiki 01-Dec-2001
TWiki TWiki 01-Dec-2000
Gentoo Linux
Not Vulnerable: TWiki TWiki 20040902

Discussion

TWiki Search Shell Metacharacter Remote Arbitrary Command Execution Vulnerability

TWiki is reported prone to a shell metacharacter remote command execution vulnerability. This issue may allow an attacker gain unauthorized access to a vulnerable computer by executing arbitrary commands.

TWiki 20030201 is reported vulnerable to this issue, however, it is likely that other versions are affected as well.

Exploit / POC

TWiki Search Shell Metacharacter Remote Arbitrary Command Execution Vulnerability

An exploit is not required.

The following examples are available:
doesnotexist1'; (uname -a; id) | sed 's/\(.*\)/__BEGIN__\1__END__.txt/'; fgrep -i -l -- 'doesnotexist2

runvirus has supplied the exploit code Twiki-20030201-exec.pl.

Solution / Fix

TWiki Search Shell Metacharacter Remote Arbitrary Command Execution Vulnerability

Solution:
Gentoo has released a security advisory (GLSA 200411-33) and an updated eBuild to address this vulnerability. Gentoo users are advised to execute the following sequence of commands as a superuser in order to apply the updates:
emerge --sync
emerge --ask --oneshot --verbose ">=www-apps/twiki-20040902"

Conectiva Linux has mad advisory CLA-2005:918 available dealing with this issue. Please see the referenced advisory for more information.

The vendor has made an update available dealing with this issue.

References

TWiki Search Shell Metacharacter Remote Arbitrary Command Execution Vulnerability

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report