Loading...
 
Skip to main content

Features / Usability


content-dependent wikipage edit bugs

This is TikiWiki 8.4.

content-dependent bug #1:

Whenever I attempt to edit a Wiki page and put this string into it:
bin/sh
then when I save the page I get: "FORBIDDEN You don't have permission to access /muons3/tiki-editpage.php on this server." (That is the correct path to the file; I am logged in as an administrator and can edit and save the page without that string). That string fails in a URL or just in the text of the page.

I have external URLs that contain ".../cgi-bin/ShowPage?..." and I cannot get around this bug.

HELP!!!

content-dependent bug #2:

I want to use a Tracker to manage downloading files with a user survey. The tracker will go to a page that says "thank you for downloading", has HTML enabled, and includes this iframe:
(HTML())(HTML)
(The real page uses braces around the HTML plugin delimiters, not parens. Note also that this forum put into the initial iframe tag, so the bug applies here, but is slightly different.)

The initial "

The Preview of my message is not the same as the submitted message.

In the second bug, between (HTML()) and (HTML) I had an HTML iframe tag. My wiki deletes the initial lt and the "if"; the preview of my message put lt x gt after the "if" of "iframe", but the posted message deleted the whole thing.

HTML entities don't seem to work correctly here.


This also happens in TikiWiki 10.0 (most recent). And it applies not only to editing wiki pages, but also to editing articles and forum posts.

Moreover, I believe it depends on some unknown configuration parameter, for two reasons:

  • I can put "bin/sh" here, but not on my own wiki pages, articles, or forums (with or without the quotes, inside or outside a URL).
  • The Wiki page in question already has that string (inserted long ago), and I get the "Forbidden..." message even if I cancel the edit. It is possible the string was inserted in a 6-year-old version of TikiWiki.

Unfortunately, I cannot identify the configuration change that made this start happening, or whether it was upgrading to 8.4.

The code for editing pages is opaque to me. But I did grep the TikiWiki 10.0 source, so I know

  • the string "bin/sh" does not appear.
  • every instance of the string "bin" in the distribution appears to be unrelated to this.

Any suggestions? How can we fix this?

BTW I can work around the second bug I mentioned above by creating the iframe in the JavaScript, and putting the JavaScript into a file.

I have a workaround for the presence of the string "bin/sh" anywhere in a page preventing editing the page (or article or forum post). In my case, this appears in URLs hosted on a Linux system, and replacing "/" with "//" works. TikiWiki doesn't see the poison string, and the URL still retrieves the file.

I still haven't a clue why that string is so deadly to TikiWiki, neither the rationale for checking it, the bug that makes it behave so badly, nor the implementation mechanism for recognizing it.