CVE-2021-24731 Pie Register < 3.7.1.6 - Unauthenticated SQL Injection
Unauthenticated attackers can execute arbitrary SQL commands via the login REST API endpoint in the Pie Register WordPress plugin.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2021-24731?
CVE-2021-24731 is a critical SQL injection vulnerability in Unknown Registration Forms – User profile, Content Restriction, Spam Protection, Payment Gateways, Invitation Codes, published on 8 Nov 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-89
Which versions are affected by CVE-2021-24731?
It affects 1 product.
Products include Genetechsolutions Pie Register.
How do I fix CVE-2021-24731?
No fix has been published for CVE-2021-24731 yet. Limit exposure of the affected software until one is available.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2021-24731 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-24731 exists.
Public exploit code: 1 Nuclei template.
Other vulnerabilities in Unknown Registration Forms – User profile, Content Restriction, Spam Protection, Payment Gateways, Invitation Codes
- CVE-2024-27957 WordPress Pie Register plugin <= 3.8.3.1 - Unauthenticated Arbitrary File Upload vulnerability
- CVE-2019-15659 SQL injection in n/a
- CVE-2018-10969 SQL injection in n/a
- CVE-2021-24647 Pie Register < 3.7.1.6 - Unauthenticated Arbitrary Login
- CVE-2022-4024 Pie Register < 3.8.1.3 - Unauthenticated Arbitrary User Deletion
Sources
Also known as GHSA-3m93-8pm8-gqxj.