8.8high
Quiz And Survey Master < 7.1.12 - Authenticated SQL injection via shortcode
- Severity
- 8.8high CVSS:3.1 by NVD
- Exploit likelihood
- 1.89% (higher than 80% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- WPScan
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unknown Quiz And Survey Master – Best Quiz, Exam and Survey Plugin for WordPress | from 7.1.12 before 7.1.12 | CVE List |
| expresstech quiz_and_survey_master | before 7.1.12 | NVD |
All scores
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 6.5medium CVSS:2.0 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
Classification
What each source says
CVE List
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.
NVD (es)
El plugin Quiz And Survey Master – Best Quiz, Exam and Survey Plugin for WordPress versiones anteriores a 7.1.12, no saneaba el parámetro GET result_id en las páginas con el shortcode [qsm_result] sin el atributo id, concatenando en una declaración SQL y conllevando a una inyección SQL. El rol más bajo permitido para usar este shortcode en publicaciones o páginas siendo autor, tal usuario podría conseguir acceso no autorizado al DBMS. Si el código abreviado (sin el atributo id) está insertado en una página o publicación pública, los usuarios no autenticados podrían explotar la inyección
References
| https://wpscan.com/vulnerability/3b52b25c-82a1-41c7-83ac-92e244f7c5ab | exploit, third-party-advisory | |
| https://plugins.trac.wordpress.org/changeset/2479603/ | patch, third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-24221 changed 2024-08-03 | CVE Terms of Use |
| NVD | CVE-2021-24221 changed 2026-06-17 | Public domain |