Quiz and Survey Master (QSM) <= 11.1.0 - Unauthenticated Shortcode Injection Leading to Arbitrary Quiz Result Disclosure via Quiz Answer Text Input Fields
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: partial
Summary
The Quiz And Survey Master plugin for WordPress is vulnerable to Arbitrary Shortcode Execution in versions up to and including 11.1.0. This is due to insufficient input sanitization and the execution of do_shortcode() on user-submitted quiz answer text. User-submitted answers pass through sanitize_text_field() and htmlspecialchars(), which only strip HTML tags but do not encode or remove shortcode brackets [ and ]. When quiz results are displayed, the plugin calls do_shortcode() on the entire results page output (including user answers), causing any injected shortcodes to be executed. This makes it possible for unauthenticated attackers to inject arbitrary WordPress shortcodes such as [qsm_result id=X] to access other users' quiz submissions without authorization, as the qsm_result shortcode lacks any authorization checks.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: partial
- Record last updated
Affected versions
- expresstech Quiz and Survey Master (QSM) – Easy Quiz and Survey Maker
through 10.1.0
References 10
plugins.trac.wordpress.org
- browser/quiz-master-next/trunk/php/classes/class-qsm-results-pages.php#L193
- browser/quiz-master-next/tags/10.3.5/php/classes/class-qsm-results-pages.php#L193
- browser/quiz-master-next/trunk/php/classes/class-qmn-quiz-manager.php#L572
- browser/quiz-master-next/tags/10.3.5/php/classes/class-qmn-quiz-manager.php#L572
- browser/quiz-master-next/trunk/php/classes/question-types/class-question-review-text.php#L15
- browser/quiz-master-next/tags/10.3.5/php/classes/question-types/class-question-review-text.php#L15
- browser/quiz-master-next/trunk/php/classes/question-types/class-question-review.php#L40
- browser/quiz-master-next/tags/10.3.5/php/classes/question-types/class-question-review.php#L40
- changeset?sfp_email=&sfph_mail=&reponame=&old=3506094%40quiz-master-next&new=3506094%40quiz-master-next&sfp_email=&sfph_mail=