CVE-2021-24221 Quiz And Survey Master < 7.1.12 - Authenticated SQL injection via shortcode
Authenticated users or unauthenticated visitors can exploit SQL injection via the result_id parameter in the qsm_result shortcode to access or modify database contents.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2021-24221?
CVE-2021-24221 is a high-severity SQL injection vulnerability in Unknown Quiz And Survey Master – Best Quiz, Exam and Survey Plugin for WordPress, published on 12 Apr 2021. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
The Quiz And Survey Master – Best Quiz, Exam and Survey Plugin for WordPress plugin before 7.1.12 did not sanitise the result_id GET parameter on pages with the [qsm_result] shortcode without id attribute, concatenating it in a SQL statement and leading to an SQL injection. The lowest role allowed to use this shortcode in post or pages being author, such user could gain unauthorised access to the DBMS. If the shortcode (without the id attribute) is embed on a public page or post, then unauthenticated users could exploit the injection.
Weakness: CWE-89
Which versions are affected by CVE-2021-24221?
It affects 1 product.
Products include Expresstech Quiz and Survey Master.
How do I fix CVE-2021-24221?
No fix has been published for CVE-2021-24221 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-24221 being exploited?
There is no known exploitation of CVE-2021-24221 in the wild and no public exploit code.
Other vulnerabilities in Unknown Quiz And Survey Master – Best Quiz, Exam and Survey Plugin for WordPress
Sources
Also known as GHSA-mm94-4mf6-6w8g.