CVE-2026-131687: ShopMagic <= 4.9.5 - Unauthenticated Improper Verification of Cryptographic Signature to Guest Impersonation and Arbitrary Guest Profile Modification via 'shopmagic_visitor_<COOKIEHASH>' Cookie
The ShopMagic – email automation for WordPress plugin for WordPress is vulnerable to Improper Verification of Cryptographic Signature in all versions up to, and including, 4.9.5 Although CurrentCustomer::encodetrackingdata() appends an md5 hash to the shopmagicvisitor<COOKIEHASH> cookie to make it tamper-resistant, CookiePersistence::gettrackingdata() returns the raw jsondecode()'d cookie value directly without computing or verifying that hash, leaving the cookie's userid, email, and meta fields fully under attacker control. This makes it possible for unauthenticated attackers to forge the visitor cookie — which is predictable because its name is derived as md5(siteurl) from the public site URL — and submit it to the unprotected wpajaxnoprivcaptureemailurl endpoint (which is registered without a nonce check or capability check) to impersonate any WordPress user including administrators in ShopMagic's customer-identity context, and to overwrite the stored profile metadata — including name, phone number, and billing address — of any existing guest record in wpshopmagicguest and wpshopmagicguestmeta via GuestManager::save().
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
Any unauthenticated remote attacker can exploit it. They can forge the visitor cookie because its name is derived from the publicly available site URL, then send it to an endpoint that has no nonce or capability check.
What can an attacker change or impersonate?
An attacker controls the cookie's user_id, email, and meta fields in ShopMagic's customer-identity context, allowing impersonation of WordPress users, including administrators. They can also overwrite stored metadata for existing guest records, including names, phone numbers, and billing addresses.
Are default protections sufficient to prevent exploitation?
No. The affected unauthenticated AJAX endpoint is registered without nonce or capability validation, and the cookie-processing code does not verify the appended MD5 hash before trusting decoded cookie data.
How can I determine whether my site is affected?
Sites using ShopMagic versions up to and including 4.9.5 are affected. Review whether the site exposes the unauthenticated capture_email_url AJAX action and uses the shopmagic_visitor_<COOKIEHASH> visitor cookie.