Summary
The WP Statistics WordPress plugin is vulnerable to Local File Inclusion (CWE-98) via the 'tab' parameter in all versions up to and including 14.16.19. An authenticated attacker can include and execute arbitrary .php files on the server, running any PHP code those files contain. This can be used to bypass access controls, obtain sensitive data, or achieve code execution where .php files can be uploaded and then included.
The CVSS 3.1 score is 7.5 (High). The attack is carried out over the network and requires no user interaction. It needs a low-privileged authenticated account, and attack complexity is high. A successful attack has high impact on confidentiality, integrity and availability.
Exploitability depends on the 'Minimum Role to View Statistics' setting. If it is set to a low role such as Subscriber, any registered user can carry out the attack. The default Administrator setting limits exposure to high-privileged accounts. The vulnerability is not listed in the CISA KEV catalog, and no EPSS data is available.
Who is affected
This affects all organizations running WordPress sites with the WP Statistics plugin version 14.16.19 or earlier, especially sites that allow user registration.
What to do
- Check the installed WP Statistics version. All versions up to and including 14.16.19 are vulnerable.
- No fixed version is listed in the record. Check the official vendor (veronalabs) and Wordfence advisories, and update to a release containing the fix as soon as it is available.
- Keep or reset the 'Minimum Role to View Statistics' setting to Administrator to reduce exposure.
- Restrict or disable open user registration, and review existing low-privileged accounts.
- Block uploads of .php files, and check logs for suspicious requests with the 'tab' parameter to the plugin's admin pages.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- Network (from the internet)
- Attack complexity
- High
- Privileges required
- Regular user
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- High impact
- Integrity
- High impact
- Availability
- High impact
Weakness type (CWE)
- CWE-98 Improper Control of Filename for Include/Require Statement in PHP Program
References
- www.wordfence.com/threat-intel/vulnerabilities/id/287932dc-d4f3-4512-b2f3-f06bd0a28ccc?sou
- plugins.trac.wordpress.org/browser/wp-statistics/tags/14.16.19/src/Service/Admin/PageInsig
- plugins.trac.wordpress.org/browser/wp-statistics/tags/14.16.19/src/Service/Admin/PageInsig
- plugins.trac.wordpress.org/browser/wp-statistics/tags/14.16.19/src/Service/Admin/Referrals
- plugins.trac.wordpress.org/browser/wp-statistics/tags/14.16.19/src/Service/Admin/Referrals
- plugins.trac.wordpress.org/browser/wp-statistics/tags/14.16.19/src/Utils/Request.php#L24
- plugins.trac.wordpress.org/browser/wp-statistics/tags/14.16.19/src/Components/View.php#L45
- plugins.trac.wordpress.org/browser/wp-statistics/tags/14.16.19/src/Abstracts/BaseTabView.p
- plugins.trac.wordpress.org/changeset?reponame=&old=3822157%40wp-statistics&new=3822157%40w
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.