.. / CVE-2022-25148

Exploit for WordPress Plugin WP Statistics <= 13.1.5 - SQL Injection (CVE-2022-25148)

Description:

The WP Statistics WordPress plugin is vulnerable to SQL Injection due to insufficient escaping and parameterization of the current_page_id parameter found in the ~/includes/class-wp-statistics-hits.php file which allows attackers without authentication to inject arbitrary SQL queries to obtain sensitive information, in versions up to and including 13.1.5.

Nuclei Template

View the template here CVE-2022-25148.yaml

Validate with Nuclei

echo "$URL" | nuclei -t ~/nuclei-templates/http/cves/2022/CVE-2022-25148.yaml
Copy

References:

https://nvd.nist.gov/vuln/detail/CVE-2022-25148
http://packetstormsecurity.com/files/174482/WordPress-WP-Statistics-13.1.5-SQL-Injection.html
https://gist.github.com/Xib3rR4dAr/5dbd58b7f57a5037fe461fba8e696042
https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=2679983%40wp-statistics&new=2679983%40wp-statistics&sfp_email=&sfph_mail=
https://wordpress.org/plugins/wp-statistics/