Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-10144 Overview
The Perfect Brands for WooCommerce plugin for WordPress contains a time-based SQL Injection vulnerability [CWE-89] in the brands attribute of the products shortcode. The issue affects all plugin versions up to and including 3.6.2. Insufficient escaping of user-supplied input combined with inadequate preparation of the underlying SQL query allows authenticated attackers with Contributor-level access or higher to append arbitrary SQL to existing queries. Successful exploitation enables extraction of sensitive data from the WordPress database.
Critical Impact
Authenticated Contributor-level users can perform time-based SQL injection to exfiltrate database contents, including user credentials and session tokens.
Affected Products
- Perfect Brands for WooCommerce plugin for WordPress
- All versions up to and including 3.6.2
- WordPress sites with Contributor-level or higher user accounts enabled
Discovery Timeline
- 2025-11-24 - CVE-2025-10144 published to NVD
- 2026-10-08 - Last updated in NVD database
Technical Details for CVE-2025-10144
Vulnerability Analysis
The vulnerability resides in the shortcode handler responsible for rendering product listings filtered by brand. When a user submits a shortcode containing the brands attribute, the plugin passes the attribute value into a SQL query without proper escaping or parameter binding. This allows an attacker to break out of the intended query context and append additional SQL statements.
Because the injection is time-based, attackers extract data by issuing payloads that cause the database to pause for measurable intervals when a condition is true. This blind technique works even when query results are not reflected in the HTTP response. The relevant code path is documented in the plugin source at lib/class-woocommerce.php around line 112.
Root Cause
The root cause is a failure to apply WordPress's $wpdb->prepare() function with proper placeholders to the brands parameter. User input flows directly into the SQL string via concatenation. The plugin also omits input sanitization functions such as sanitize_text_field() or esc_sql() before query construction.
Attack Vector
An authenticated attacker with Contributor privileges or higher creates a post or page containing the products shortcode. The attacker supplies a crafted value for the brands attribute that includes SQL syntax such as conditional SLEEP() calls or BENCHMARK() functions. When the shortcode renders, the injected SQL executes against the WordPress database. Attackers iterate payloads to extract table contents one bit at a time using response-timing differences.
The vulnerability requires authentication but no user interaction beyond the attacker's own session. Contributor accounts are commonly provisioned on multi-author WordPress sites, broadening the realistic attack surface.
Detection Methods for CVE-2025-10144
Indicators of Compromise
- Post or page revisions containing products shortcodes with unusual brands attribute values containing SQL keywords such as SLEEP, BENCHMARK, UNION, or SELECT
- Database queries from the plugin that take substantially longer than baseline execution times
- Unexpected content modifications or new draft posts created by Contributor accounts
- Web server access logs showing repeated POST requests to post.php or post-new.php from a single Contributor account
Detection Strategies
- Review the wp_posts table for shortcode content containing suspicious brands parameters
- Enable MySQL slow query logging and correlate long-running queries with WordPress request logs
- Monitor plugin inventory for installations of perfect-woocommerce-brands at version 3.6.2 or earlier
- Deploy a web application firewall rule matching SQL metacharacters within the brands shortcode attribute
Monitoring Recommendations
- Audit all Contributor, Author, and Editor accounts for recent creation or unexpected activity
- Alert on database queries containing timing functions originating from PHP-FPM worker processes
- Track shortcode rendering telemetry for anomalous parameter lengths and character distributions
- Monitor outbound connections from the WordPress host for data staging or exfiltration patterns
How to Mitigate CVE-2025-10144
Immediate Actions Required
- Update the Perfect Brands for WooCommerce plugin to a version later than 3.6.2 as soon as a patched release is available
- Audit WordPress user accounts and remove unused Contributor-level or higher accounts
- Force password resets for all users with Contributor privileges or above
- Review published and draft posts for malicious products shortcode usage
Patch Information
Consult the Wordfence Vulnerability Report and the WordPress Plugin File Reference for details on the vulnerable code path and patch availability. Apply the vendor-released update through the WordPress plugin management interface or WP-CLI.
Workarounds
- Deactivate the Perfect Brands for WooCommerce plugin until a patched version is installed
- Restrict content creation to trusted users by downgrading Contributor accounts to Subscriber
- Deploy a WAF rule that blocks shortcode submissions containing SQL keywords in the brands attribute
- Disable shortcode execution in post content for untrusted roles using capability filters
# Update the plugin using WP-CLI once a patched version is released
wp plugin update perfect-woocommerce-brands
# Temporarily deactivate the plugin if no patch is available
wp plugin deactivate perfect-woocommerce-brands
# List all users with Contributor or higher privileges for audit
wp user list --role=contributor,author,editor,administrator --fields=ID,user_login,user_email,user_registered
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

