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


• Affected Versions:

Version and prior versions.

• Vulnerability Description:

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.

Successful exploitation of this vulnerability requires an account with permission to manage the sidebar (such as a Moderator or Administrator) and the “cms” application to be enabled.

• Solution:

Apply the vendor patch or upgrade to version 4.6.0 or later.

• Disclosure Timeline:

[02/02/2021] – Vendor notified through HackerOne

[02/04/2021] – Asked for an update

[06/04/2021] – Vendor replies they already released a targeted patch

[13/05/2021] – CVE number assigned

[28/05/2021] – Public disclosure

• CVE Reference:

The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CVE-2021-32924 to this vulnerability.

• Credits:

Vulnerability discovered by Egidio Romano.

• Other References: