CVE-2022-3342

Jetpack CRM <= 5.3.1 - Cross-Site Request Forgery and PHAR Deserialization

2023-04-18 00:00
Ram

Strategic Overview

Status
Patched in 5.4.0
Affected Version
<= 5.3.1
CVSS
7.5High
Weakness type
CWE-502 · Deserialization of Untrusted Data
CVE
CVE-2022-3342
View all Jetpack CRM – Clients, Leads, Invoices, Billing, Email Marketing, & Automation vulnerabilities

At a glance

CVE-2022-3342 is a high-severity Deserialization of Untrusted Data vulnerability in the Jetpack CRM WordPress plugin, affecting versions <= 5.3.1. It carries a CVSS score of 7.5 (reachable over the network; high confidentiality, integrity, availability impact). Exploitation requires no authentication. The issue is fixed in version 5.4.0; sites on affected versions should update now. Disclosed April 2023, reported by Ram.

Vulnerability Overview

The Jetpack CRM plugin for WordPress is vulnerable to PHAR deserialization via the ‘zbscrmcsvimpf’ parameter in the 'zeroBSCRM_CSVImporterLitehtml_app' function in versions up to, and including, 5.3.1. While the function performs a nonce check, steps 2 and 3 of the check do not take any action upon a failed check. These steps then perform a 'file_exists' check on the value of 'zbscrmcsvimpf'. If a phar:// archive is supplied, its contents will be deserialized and an object injected in the execution stream. This allows an unauthenticated attacker to obtain object injection if they are able to upload a phar archive (for instance if the site supports image uploads) and then trick an administrator into performing an action, such as clicking a link.

Technical Analysis

The vector marks this flaw as remotely reachable over the network, and no privileges on the target site. A successful exploit has high impact on confidentiality, integrity, availability — full site compromise territory.

CWE-502: Deserialization of Untrusted Data

Jetpack CRM <= 5.3.1 carries this weakness at zbscrmcsvimpf, and reaching it takes a caller who can reach the endpoint. Deserialization of untrusted data means the application reconstructs objects from input a caller controls, letting the attacker choose which classes get instantiated and what their properties hold.

A workable chain turns deserialization into file writes, deletions or code execution, depending on what the loaded classes do in their magic methods. For Jetpack CRM the fix is 5.4.0: builds <= 5.3.1 are affected, anything from 5.4.0 onward is not.

Remediation

Update to version 5.4.0, or a newer patched version

How does WordSec protect against this?

The attempt arrives as an ordinary request to Jetpack CRM: WordSec's web application firewall inspects request payloads before WordPress loads them. Classes like this one can leave something behind, so the staged malware scanner is the second half: it looks for dropped files and modified code rather than for the request that created them. None of that substitutes for the fix: Jetpack CRM 5.4.0 closes this, and updating the plugin is the step that ends it.

  • Firewall
  • Scanner
  • Alerts

External References

Related records

Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C