CVE-2023-45055

9.8 CRITICAL

📋 TL;DR

This SQL injection vulnerability in the InspireUI MStore API WordPress plugin allows attackers to execute arbitrary SQL commands on the database. It affects all WordPress sites using MStore API versions up to and including 4.0.6. Successful exploitation could lead to data theft, modification, or complete database compromise.

💻 Affected Systems

Products:
  • InspireUI MStore API WordPress plugin
Versions: All versions up to and including 4.0.6
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Affects WordPress installations with the MStore API plugin enabled. No special configuration required for exploitation.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise including sensitive data exfiltration, privilege escalation, remote code execution via database functions, and potential site takeover.

🟠

Likely Case

Data theft of user information, content manipulation, and potential administrative access through credential extraction.

🟢

If Mitigated

Limited impact with proper input validation, parameterized queries, and database user privilege restrictions.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

SQL injection vulnerabilities are commonly weaponized. The public disclosure increases likelihood of active exploitation.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 4.0.7 or later

Vendor Advisory: https://patchstack.com/database/vulnerability/mstore-api/wordpress-mstore-api-plugin-4-0-6-sql-injection-vulnerability

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins → Installed Plugins. 3. Find MStore API plugin. 4. Click 'Update Now' if update available. 5. If no update appears, manually download version 4.0.7+ from WordPress.org and replace plugin files.

🔧 Temporary Workarounds

Temporary Plugin Deactivation

all

Disable the vulnerable plugin until patched

wp plugin deactivate mstore-api

Web Application Firewall Rules

all

Block SQL injection patterns targeting MStore API endpoints

🧯 If You Can't Patch

  • Implement strict input validation and parameterized queries in custom code
  • Restrict database user permissions to minimum required privileges

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin → Plugins → MStore API version. If version is 4.0.6 or lower, you are vulnerable.

Check Version:

wp plugin get mstore-api --field=version

Verify Fix Applied:

Confirm MStore API plugin version is 4.0.7 or higher in WordPress admin panel.

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL queries in database logs
  • Multiple failed login attempts from single IP
  • Unexpected database schema changes

Network Indicators:

  • HTTP requests with SQL syntax in parameters
  • Unusual traffic to /wp-json/mstore-api/ endpoints

SIEM Query:

source="web_server" AND (uri_path="/wp-json/mstore-api/*" AND (query="*SELECT*" OR query="*UNION*" OR query="*INSERT*" OR query="*DELETE*"))

🔗 References

📤 Share & Export