Tiki Wiki CMS Groupware <= 24.0 (structlib.php) PHP Code Injection Vulnerability
The Tiki Wiki CMS Groupware application uses an eval() call with user-controlled input in the StructLib::structure_to_webhelp() method, allowing an attacker to inject and execute arbitrary PHP code. Exploitation requires the feature_create_webhelp setting to be enabled and an account with permissions to create a wiki page.
karmainsecurity.com
Published on karmainsecurity.com
The vulnerability is located in the /lib/structures/structlib.php script, specifically in the StructLib::structuretowebhelp() method, which is using an eval() call with user-controlled input. This can be exploited by malicious users to inject and execute arbitrary PHP code.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely, the application passes user-controlled input directly into an eval() call without proper sanitisation or validation.
Impact
An attacker could execute arbitrary PHP code on the server, potentially leading to full compromise, but only if the feature_create_webhelp setting is enabled and the attacker has an account with wiki page creation permissions.
What the attacker needed
Feature_create_webhelp enabled; account with wiki page creation permission
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
This report describes a flaw in a wiki software where a part of the code that builds web help pages takes input from users and runs it as PHP code. Because the input is not properly checked, someone with a normal account that can create pages could insert harmful code that the server then executes. This is dangerous because it lets an attacker run commands on the server.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.