CVE-2023-45074
📋 TL;DR
This SQL injection vulnerability in the Advanced Page Visit Counter WordPress plugin allows attackers to execute arbitrary SQL commands on the database. It affects all WordPress sites using this plugin up to version 7.1.1, potentially compromising site data and server access.
💻 Affected Systems
- Advanced Page Visit Counter – Most Wanted Analytics Plugin for WordPress
📦 What is this software?
Advanced Page Visit Counter by Pagevisitcounter
⚠️ Risk & Real-World Impact
Worst Case
Complete database compromise leading to data theft, privilege escalation, remote code execution, and full site takeover.
Likely Case
Database information disclosure, including user credentials, sensitive content, and plugin data extraction.
If Mitigated
Limited impact with proper input validation, parameterized queries, and database user privilege restrictions.
🎯 Exploit Status
SQL injection vulnerabilities are commonly exploited with automated tools. Public exploit details exist in security advisories.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: 7.1.2 or later
Restart Required: No
Instructions:
1. Log into WordPress admin panel. 2. Navigate to Plugins → Installed Plugins. 3. Find 'Advanced Page Visit Counter'. 4. Click 'Update Now' if update available. 5. Alternatively, download latest version from WordPress repository and replace plugin files.
🔧 Temporary Workarounds
Disable Plugin
allTemporarily disable the vulnerable plugin until patched.
wp plugin deactivate advanced-page-visit-counter
Web Application Firewall
allDeploy WAF rules to block SQL injection patterns targeting this plugin.
🧯 If You Can't Patch
- Remove the plugin entirely if patching is not possible.
- Implement strict network access controls to limit plugin exposure.
🔍 How to Verify
Check if Vulnerable:
Check WordPress admin → Plugins → Advanced Page Visit Counter version. If version ≤ 7.1.1, vulnerable.
Check Version:
wp plugin get advanced-page-visit-counter --field=version
Verify Fix Applied:
Confirm plugin version is 7.1.2 or higher after update.
📡 Detection & Monitoring
Log Indicators:
- Unusual SQL queries in database logs
- Multiple failed login attempts after plugin access
- Unexpected plugin file modifications
Network Indicators:
- HTTP requests with SQL payloads to plugin endpoints
- Unusual database connection patterns from web server
SIEM Query:
source="web_server" AND (uri="*advanced-page-visit-counter*" AND (content="' OR " OR content="UNION" OR content="SELECT *"))
🔗 References
- https://patchstack.com/database/vulnerability/advanced-page-visit-counter/wordpress-advanced-page-visit-counter-plugin-7-1-1-sql-injection-vulnerability?_s_id=cve
- https://patchstack.com/database/vulnerability/advanced-page-visit-counter/wordpress-advanced-page-visit-counter-plugin-7-1-1-sql-injection-vulnerability?_s_id=cve