Files
CVEs-PoC/2021/CVE-2021-24221.md
T
2025-09-29 21:09:30 +02:00

18 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
### [CVE-2021-24221](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-24221)
![](https://img.shields.io/static/v1?label=Product&message=Quiz%20And%20Survey%20Master%20%E2%80%93%20Best%20Quiz%2C%20Exam%20and%20Survey%20Plugin%20for%20WordPress&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=7.1.12%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-89%20SQL%20Injection&color=brightgreen)
### 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.
### POC
#### Reference
- https://wpscan.com/vulnerability/3b52b25c-82a1-41c7-83ac-92e244f7c5ab
#### Github
- https://github.com/20142995/nuclei-templates