Skip to content
RCE Write-up Advanced

Tiki Wiki CMS Groupware <= 24.0 (grid.php) PHP Object Injection Vulnerability

The Tiki Wiki CMS Groupware application unserialises user-controlled input in the grid.php script, allowing an authenticated user to inject arbitrary PHP objects. This could lead to attacks such as executing arbitrary PHP code.

karmainsecurity.com

Published on karmainsecurity.com

The vulnerability is located in the /lib/sheet/grid.php script, specifically into the TikiSheetSerializeHandler::load() method, which is using the unserialize() PHP function with user-controlled input. This can be exploited by malicious users to inject arbitrary PHP objects into the application scope, allowing them to…

The author, on karmainsecurity.com

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

The application passes user-controlled input directly to PHP's unserialize() function without validating or restricting the allowed classes.

Impact

An authenticated user with spreadsheet permissions could inject arbitrary PHP objects and potentially execute arbitrary PHP code on the server.

What the attacker needed

Spreadsheets feature enabled; Account with permission to create a sheet

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.

PHP object injection happens when an application takes data from a user and turns it back into internal programming objects without checking it. If the application has other code that does dangerous things when those objects are used, an attacker can chain them together to run their own code on the server. Here, a logged-in user who can create spreadsheets can send crafted data that the server blindly converts into objects.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.