TWiki: Arbitrary command execution A bug in the TWiki search function allows an attacker to execute arbitrary commands with the permissions of the user running TWiki. www-apps/twiki 2004-11-24 2006-09-08 71035 remote 20040902 20000000 20040902

TWiki is a Web-based groupware tool based around the concept of wiki pages that can be edited by anybody with a Web browser.

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.

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).

There is no known workaround at this time.

All TWiki users should upgrade to the latest version:

# emerge --sync # emerge --ask --oneshot --verbose ">=www-apps/twiki-20040902"
TWiki Security Alert CAN-2004-1037 koon dmargoli jaervosz