CVE-2026-18442: WCFM Marketplace Unauthenticated SQL Injection via Checkout Distance Shipping
The WCFM Marketplace plugin stored checkout delivery coordinates as free text and then pasted them straight into a store-distance SQL query, where the prepare call bound only the vendor ID. An unauthenticated shopper could therefore run a blind SQL injection and read data such as the stored password hash of user ID 1.
cryptocat.me
Published on cryptocat.me
[A]I was working through WCFM Marketplace release diffs, following up on the 3.7.3 security release. Its changelog listed a fix for an unauthenticated SQL injection in the Store List Map integration, so I wanted to see how the plugin builds its store-distance queries and whether that fix reached every caller.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The shared distance helper interpolated the latitude and longitude globals directly into the SQL string and only passed the vendor ID to $wpdb->prepare(), so the coordinates were never parameterised or cast to numbers.
Impact
An unauthenticated attacker could read arbitrary data from the WordPress database, confirmed as a blind read of wp_users.user_pass, though this does not by itself grant a session and cracking the hash is a separate step.
What the attacker needed
WCFM Marketplace 3.3.9 to 3.8.1 active; WooCommerce and WC Frontend Manager active; Classic WooCommerce checkout in use; By-distance shipping enabled for the vendor
The fix
It was fixed in 3.8.2 by forcing the incoming coordinates to numeric values with floatval() inside the shared distance helper before the query is built.
How it was found
- Add a shippable vendor product that uses by-distance shipping to a guest cart.
- Load the classic checkout page and read the update_order_review nonce from it.
- Send an unauthenticated POST to the update_order_review AJAX endpoint with the injected expression nested inside the post_data field.
- Use the timing or content oracle to test one character of the target value per request.
- Repeat for each position to recover the stored password hash prefix.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
The plugin asks a shopper for their delivery location at checkout and later uses those numbers to work out how far each shop is. Instead of checking that the values really are numbers, it dropped the text straight into a database question (a SQL query). By putting extra database instructions in the latitude field, a visitor with no account could make the site reveal secret data one character at a time.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.