Skip to content
RCE Write-up Advanced

SuiteCRM <= 7.11.11 Second-Order PHP Object Injection Vulnerabilities

The application passed a user-controlled preference value into PHP's unserialize() function, so a malicious user could inject arbitrary PHP objects. This could allow a range of attacks, including executing arbitrary PHP code.

karmainsecurity.com

Published on karmainsecurity.com

The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CVE-2020-8800 to these vulnerabilities.

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 account_signatures user preference was stored without validation and later passed directly to unserialize(), so attacker-supplied serialised data was trusted.

Impact

An attacker could inject arbitrary PHP objects into the application scope, which could lead to a variety of attacks such as executing arbitrary PHP code.

What the attacker needed

An authenticated user account; ability to set the email signature preference

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 a stored value back into a live object using a function called unserialize(). If a user can control that stored value, they can plant a crafted object that the application later rebuilds, and some objects trigger dangerous actions when rebuilt. Here the stored email signature preference was rebuilt this way, which could let an attacker run their own code.

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.