CVE-2021-24762 Perfect Survey < 1.5.2 - Unauthenticated SQL Injection
Unauthenticated attackers can perform SQL injection via the question_id parameter in the Perfect Survey WordPress plugin, potentially accessing or modifying database contents.
- 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-24762?
CVE-2021-24762 is a critical SQL injection vulnerability in Unknown Perfect Survey, published on 1 Feb 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The Perfect Survey WordPress plugin before 1.5.2 does not validate and escape the question_id GET parameter before using it in a SQL statement in the get_question AJAX action, allowing unauthenticated users to perform SQL injection.
Weakness: CWE-89
Which versions are affected by CVE-2021-24762?
It affects 1 product.
Products include Getperfectsurvey Perfect Survey.
How do I fix CVE-2021-24762?
No fix has been published for CVE-2021-24762 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-24762 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-24762 exists.
Public exploit code: 1 Metasploit module, 1 Exploit-DB entry, 1 Nuclei template and 2 proofs of concept on GitHub.
Other vulnerabilities in Unknown Perfect Survey
Sources
Also known as GHSA-mchv-2c9q-xfg9.