WP Visitor Statistics (Real Time Traffic) <= 8.7 - Unauthenticated SQL Injection via 'fullRef' Parameter
What fixes it
No source in this snapshot names a fixed version.
Description
The WP Visitor Statistics (Real Time Traffic) plugin for WordPress is vulnerable to generic SQL Injection via the 'fullRef' parameter in all versions up to, and including, 8.7 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database. This is a second-order SQL injection: an unauthenticated attacker submits a crafted referrer URL to the wmcTrack tracking endpoint, which persists the raw unescaped value into the wp_logVisit table, and the injection is triggered when an administrator next views the Traffic Sources dashboard.
Text from CVE List
Affected versions 1
- WP Visitor Statistics (Real Time Traffic)affected: all versions through 8.7CVE List
References 7
- wordfence.com/threat-intel/vulnerabilities/id/8192cbb0-ea1f-4897-808c-67f5002d56fb?source=cveReferencevia CVE List
- plugins.trac.wordpress.org/browser/wp-stats-manager/tags/8.6/includes/wsm_db.php#L1082Referencevia CVE List
- plugins.trac.wordpress.org/browser/wp-stats-manager/tags/8.6/includes/wsm_statistics.php#L3252Referencevia CVE List
- plugins.trac.wordpress.org/browser/wp-stats-manager/tags/8.6/includes/wsm_requests.php#L140Referencevia CVE List
- plugins.trac.wordpress.org/browser/wp-stats-manager/tags/8.6/includes/wsm_functions.php#L3091Referencevia CVE List
- plugins.trac.wordpress.org/browser/wp-stats-manager/tags/8.6/wp-stats-manager.php#L103Referencevia CVE List
- plugins.trac.wordpress.org/changeset?reponame=&old=3722831%40wp-stats-manager&new=3722831%40wp-stats-managerReferencevia CVE List