The Quiz And Survey Master – Best Quiz, Exam and Survey Plugin WordPress plugin before 7.1.18 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
{"id": "CVE-2021-24368", "vendorId": null, "type": "cve", "bulletinFamily": "NVD", "title": "CVE-2021-24368", "description": "The Quiz And Survey Master \u00e2\u20ac\u201c Best Quiz, Exam and Survey Plugin WordPress plugin before 7.1.18 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", "published": "2021-06-20T13:15:00", "modified": "2021-06-25T00:18:00", "cvss": {"score": 4.3, "vector": "AV:N/AC:M/Au:N/C:N/I:P/A:N"}, "cvss2": {"cvssV2": {"version": "2.0", "vectorString": "AV:N/AC:M/Au:N/C:N/I:P/A:N", "accessVector": "NETWORK", "accessComplexity": "MEDIUM", "authentication": "NONE", "confidentialityImpact": "NONE", "integrityImpact": "PARTIAL", "availabilityImpact": "NONE", "baseScore": 4.3}, "severity": "MEDIUM", "exploitabilityScore": 8.6, "impactScore": 2.9, "acInsufInfo": false, "obtainAllPrivilege": false, "obtainUserPrivilege": false, "obtainOtherPrivilege": false, "userInteractionRequired": true}, "cvss3": {"cvssV3": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE", "baseScore": 6.1, "baseSeverity": "MEDIUM"}, "exploitabilityScore": 2.8, "impactScore": 2.7}, "href": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-24368", "reporter": "contact@wpscan.com", "references": ["https://wpscan.com/vulnerability/7f2fda5b-45a5-4fc6-968f-90bc9674c999"], "cvelist": ["CVE-2021-24368"], "immutableFields": [], "lastseen": "2022-03-23T14:53:13", "viewCount": 37, "enchantments": {"dependencies": {"references": [{"type": "wpexploit", "idList": ["WPEX-ID:7F2FDA5B-45A5-4FC6-968F-90BC9674C999"]}, {"type": "wpvulndb", "idList": ["WPVDB-ID:7F2FDA5B-45A5-4FC6-968F-90BC9674C999"]}], "rev": 4}, "score": {"value": 2.5, "vector": "NONE"}, "twitter": {"counter": 2, "modified": "2021-06-22T07:43:02", "tweets": [{"link": "https://twitter.com/threatintelctr/status/1408221004799881220", "text": " NEW: CVE-2021-24368 The Quiz And Survey Master \u00e2\u20ac\u201c Best Quiz, Exam and Survey Plugin WordPress plugin before 7.1.18 did not sanitise or escape its result_id parameter when displaying an existing quiz result pag... (click for more) Severity: MEDIUM https://t.co/xDagPhJMf5?amp=1"}, {"link": "https://twitter.com/threatintelctr/status/1408221004799881220", "text": " NEW: CVE-2021-24368 The Quiz And Survey Master \u00e2\u20ac\u201c Best Quiz, Exam and Survey Plugin WordPress plugin before 7.1.18 did not sanitise or escape its result_id parameter when displaying an existing quiz result pag... (click for more) Severity: MEDIUM https://t.co/xDagPhJMf5?amp=1"}]}, "backreferences": {"references": [{"type": "wpexploit", "idList": ["WPEX-ID:7F2FDA5B-45A5-4FC6-968F-90BC9674C999"]}, {"type": "wpvulndb", "idList": ["WPVDB-ID:7F2FDA5B-45A5-4FC6-968F-90BC9674C999"]}]}, "exploitation": null, "vulnersScore": 2.5}, "_state": {"dependencies": 0}, "_internal": {}, "cna_cvss": {"cna": null, "cvss": {}}, "cpe": [], "cpe23": [], "cwe": ["CWE-79"], "affectedSoftware": [{"cpeName": "expresstech:quiz_and_survey_master", "version": "7.1.18", "operator": "lt", "name": "expresstech quiz and survey master"}], "affectedConfiguration": [], "cpeConfiguration": {"CVE_data_version": "4.0", "nodes": [{"operator": "OR", "children": [], "cpe_match": [{"vulnerable": true, "cpe23Uri": "cpe:2.3:a:expresstech:quiz_and_survey_master:7.1.18:*:*:*:*:wordpress:*:*", "versionEndExcluding": "7.1.18", "cpe_name": []}]}]}, "extraReferences": [{"url": "https://wpscan.com/vulnerability/7f2fda5b-45a5-4fc6-968f-90bc9674c999", "name": "https://wpscan.com/vulnerability/7f2fda5b-45a5-4fc6-968f-90bc9674c999", "refsource": "CONFIRM", "tags": ["Exploit", "Third Party Advisory"]}]}
{"wpvulndb": [{"lastseen": "2021-09-14T23:43:26", "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\n\n### PoC\n\nhttps://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 <\"> 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\n", "cvss3": {"exploitabilityScore": 2.8, "cvssV3": {"baseSeverity": "MEDIUM", "confidentialityImpact": "LOW", "attackComplexity": "LOW", "scope": "CHANGED", "attackVector": "NETWORK", "availabilityImpact": "NONE", "integrityImpact": "LOW", "baseScore": 6.1, "privilegesRequired": "NONE", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "userInteraction": "REQUIRED", "version": "3.1"}, "impactScore": 2.7}, "published": "2021-06-03T00:00:00", "type": "wpvulndb", "title": "Quiz And Survey Master < 7.1.18 - Reflected Cross-Site Scripting (XSS)", "bulletinFamily": "software", "cvss2": {"severity": "MEDIUM", "exploitabilityScore": 8.6, "obtainAllPrivilege": false, "userInteractionRequired": true, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "MEDIUM", "confidentialityImpact": "NONE", "availabilityImpact": "NONE", "integrityImpact": "PARTIAL", "baseScore": 4.3, "vectorString": "AV:N/AC:M/Au:N/C:N/I:P/A:N", "version": "2.0", "accessVector": "NETWORK", "authentication": "NONE"}, "acInsufInfo": false, "impactScore": 2.9, "obtainUserPrivilege": false}, "cvelist": ["CVE-2021-24368"], "modified": "2021-06-03T15:41:08", "id": "WPVDB-ID:7F2FDA5B-45A5-4FC6-968F-90BC9674C999", "href": "https://wpscan.com/vulnerability/7f2fda5b-45a5-4fc6-968f-90bc9674c999", "sourceData": "", "cvss": {"score": 4.3, "vector": "AV:N/AC:M/Au:N/C:N/I:P/A:N"}}], "wpexploit": [{"lastseen": "2021-09-14T23:43:26", "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\n", "cvss3": {"exploitabilityScore": 2.8, "cvssV3": {"baseSeverity": "MEDIUM", "confidentialityImpact": "LOW", "attackComplexity": "LOW", "scope": "CHANGED", "attackVector": "NETWORK", "availabilityImpact": "NONE", "integrityImpact": "LOW", "baseScore": 6.1, "privilegesRequired": "NONE", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "userInteraction": "REQUIRED", "version": "3.1"}, "impactScore": 2.7}, "published": "2021-06-03T00:00:00", "type": "wpexploit", "title": "Quiz And Survey Master < 7.1.18 - Reflected Cross-Site Scripting (XSS)", "bulletinFamily": "exploit", "cvss2": {"severity": "MEDIUM", "exploitabilityScore": 8.6, "obtainAllPrivilege": false, "userInteractionRequired": true, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "MEDIUM", "confidentialityImpact": "NONE", "availabilityImpact": "NONE", "integrityImpact": "PARTIAL", "baseScore": 4.3, "vectorString": "AV:N/AC:M/Au:N/C:N/I:P/A:N", "version": "2.0", "accessVector": "NETWORK", "authentication": "NONE"}, "acInsufInfo": false, "impactScore": 2.9, "obtainUserPrivilege": false}, "cvelist": ["CVE-2021-24368"], "modified": "2021-06-03T15:41:08", "id": "WPEX-ID:7F2FDA5B-45A5-4FC6-968F-90BC9674C999", "href": "", "sourceData": "https://example.com/quiz/test-quiz/?result_id=1597bc5d9f9a2c9659152522904df0c0%3C%22%3E%3Cscript%3Ealert(document.domain)%3C/script%3E\r\n\r\nReproduction steps:\r\n\r\n1) Create a quiz.\r\n2) In the \"results pages\" tab add the %RESULT_LINK% template to display a link to your result when finishing the quiz.\r\n3) Publish your quiz or click the preview button.\r\n4) Take the quiz and copy your results link:\r\n\r\nformat: https://[wp-host]/quiz/[quiz-name]/?result_id=[result_id]\r\n\r\n5) Append <\"><script>alert(document.domain)</script> to the result_id and reload the page.\r\n\r\nNote (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", "cvss": {"score": 4.3, "vector": "AV:N/AC:M/Au:N/C:N/I:P/A:N"}}], "patchstack": [{"lastseen": "2022-06-01T19:32:08", "description": "Reflected Cross-Site Scripting (XSS) vulnerability discovered by renniepak in WordPress Quiz And Survey Master plugin (versions <= 7.1.17).\n\n## Solution\n\n\r\n Update the WordPress Quiz And Survey Master plugin to the latest available version (at least 7.1.18).\r\n ", "cvss3": {"exploitabilityScore": 2.8, "cvssV3": {"baseSeverity": "MEDIUM", "confidentialityImpact": "LOW", "attackComplexity": "LOW", "scope": "CHANGED", "attackVector": "NETWORK", "availabilityImpact": "NONE", "integrityImpact": "LOW", "privilegesRequired": "NONE", "baseScore": 6.1, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "version": "3.1", "userInteraction": "REQUIRED"}, "impactScore": 2.7}, "published": "2021-05-31T00:00:00", "type": "patchstack", "title": "WordPress Quiz And Survey Master plugin <= 7.1.17 - Reflected Cross-Site Scripting (XSS) vulnerability", "bulletinFamily": "software", "cvss2": {"severity": "MEDIUM", "exploitabilityScore": 8.6, "obtainAllPrivilege": false, "userInteractionRequired": true, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "MEDIUM", "confidentialityImpact": "NONE", "availabilityImpact": "NONE", "integrityImpact": "PARTIAL", "baseScore": 4.3, "vectorString": "AV:N/AC:M/Au:N/C:N/I:P/A:N", "version": "2.0", "accessVector": "NETWORK", "authentication": "NONE"}, "impactScore": 2.9, "acInsufInfo": false, "obtainUserPrivilege": false}, "cvelist": ["CVE-2021-24368"], "modified": "2021-05-31T00:00:00", "id": "PATCHSTACK:58CBAC8622086153E91F00C9AF2FAD91", "href": "https://patchstack.com/database/vulnerability/quiz-master-next/wordpress-quiz-and-survey-master-plugin-7-1-17-reflected-cross-site-scripting-xss-vulnerability", "cvss": {"score": 4.3, "vector": "AV:N/AC:M/Au:N/C:N/I:P/A:N"}}]}