CVE-2021-24750
WordPress vulnerability analysis and mitigation

Overview

The WP Visitor Statistics (Real Time Traffic) WordPress plugin versions before 4.8 contained a SQL injection vulnerability (CVE-2021-24750). The vulnerability was discovered in the plugin's refDetails AJAX action, where the refUrl parameter was not properly sanitized and escaped. This security issue affected all versions of the plugin prior to version 4.8 and could be exploited by any authenticated user, including those with subscriber-level access (WPScan).

Technical details

The vulnerability exists in the refDetails AJAX action functionality of the plugin, where improper sanitization and escaping of the refUrl parameter created a SQL injection point. The vulnerability could be exploited by sending a specially crafted request to the WordPress admin-ajax.php endpoint. A proof of concept exploit demonstrates that attackers could execute SQL queries by manipulating the refUrl parameter in requests to: /wp-admin/admin-ajax.php?action=refDetails (WPScan). The vulnerability has been assigned a CVSS score of 7.7 (High) indicating significant severity.

Impact

The SQL injection vulnerability could allow authenticated attackers, even with minimal privileges such as subscriber-level access, to execute arbitrary SQL queries against the WordPress database. This could potentially lead to unauthorized access to sensitive data, including user credentials and other confidential information stored in the database (WPScan).

Mitigation and workarounds

The vulnerability has been patched in version 4.8 of the WP Visitor Statistics plugin. Site administrators are strongly advised to update to this version or later to protect against potential SQL injection attacks (WPScan, WordPress).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management