Skip to content
RCE Write-up Advanced

SugarCRM <= 9.0.1 Multiple PHP Object Injection Vulnerabilities

The Emails DetailView script passes the campaign_data field to PHP's unserialize() function, and that field can be set arbitrarily through the save2 action. A malicious user could inject PHP objects and potentially execute arbitrary PHP code.

karmainsecurity.com

Published on karmainsecurity.com

https://support.sugarcrm.com/Documentation/SugarVersions/9.0/Ent/Sugar9.0.2ReleaseNotes

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

Likely the application unserializes user-controlled data from the campaign_data field without validating or restricting the allowed object types.

Impact

A malicious authenticated user could inject arbitrary PHP objects and potentially execute arbitrary PHP code.

What the attacker needed

Authenticated malicious user; ability to use the save2 action

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 can turn stored data back into live objects using a function called unserialize. If an attacker can control that stored data, they can plant a crafted object that runs code when it is rebuilt. Here the campaign_data field is both writable through one action and unserialized by another page.

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.