SelectQuery recipe critical vulnerability

Petko Yotov <[email protected]>
Newsgroups gmane.comp.web.wiki.pmwiki.user
Message-ID <[email protected]>
I have found today that the Cookbook:SelectQuery recipe has at least 2 
separate critical code injection vulnerabilities.

If you use this recipe on your wiki, you MUST restrict editing ASAP to 
only trusted editors please.

Both vulnerabilities are in the "ternary logic" markup of the recipe. 
One allows to call arbitrary PHP commands, the other one to execute 
shell/system commands or programs.

If you don't use the ternary logic operator, you can add to config.php, 
before including the recipe, such a line:

   DisableMarkup('ternarylogic');

There is no other fix at the moment, and we are considering our options, 
as some wikis rely heavily on the ternary logic and it may be difficult 
to disable or refactor this feature.

If you have any questions, please let me know, either here on the list, 
or privately.

Petko
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.