Skip to content
RCE Write-up Intermediate

IPS Community Suite <= 4.5.4.2 (previewBlock) PHP Code Injection Vulnerability

The previewBlock method in the CMS pages builder passed arbitrary content into a theme process function that eventually called eval(), allowing PHP code execution. An attacker with sidebar management permissions could inject and run arbitrary PHP code.

karmainsecurity.com

Published on karmainsecurity.com

The vulnerability exists because the IPS\cms\modules\front\pages\builder::previewBlock() method allows to pass arbitrary content to the IPS\Theme::runProcessFunction() method, which will be used in a call to the eval() PHP function. This can be exploited to inject and execute arbitrary PHP code.

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

Impact

An attacker with sidebar management rights could execute arbitrary PHP code on the server, but only when the cms application is enabled.

What the attacker needed

An account that can manage the sidebar; the cms application enabled

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.

A part of the forum software that previews sidebar blocks took text from the user and ran it as PHP code, the language the site is built in. Someone with moderator or admin rights over the sidebar could therefore make the server run their own code. This needs a privileged account, so it is not something an ordinary visitor can do.

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.