Skip to content
RCE Write-up Advanced

SugarCRM <= 12.2.0 (Docusign_GlobalSettings) PHP Object Injection Vulnerability

A second-order PHP object injection flaw exists in SugarCRM where a malicious admin can store serialised objects in the database, which are later unserialised by the DocuSign global config REST endpoint. This could allow the attacker to execute arbitrary PHP code on the web server.

karmainsecurity.com

Published on karmainsecurity.com

There is a Second-Order PHP Object Injection vulnerability which might allow malicious admin users to execute arbitrary PHP code on the web server (RCE) by storing malicious serialized objects into the database.

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 calls unserialize() on user-controlled data retrieved from the database without validating or restricting the allowed classes.

Impact

A malicious admin could potentially achieve remote code execution on the web server, though the text only says this 'might' be possible.

What the attacker needed

Admin-level access to SugarCRM

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 that was saved earlier and turns it back into a live PHP object without checking it is safe. If an attacker can control that saved data, they may be able to make the server run their own code. Here the saved data is a serialised object stored in the database, and a REST API endpoint later reads it back.

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.