Description
The Easy Digital Downloads WordPress plugin is vulnerable to Reflected Cross-Site Scripting via the $start_date and $end_date parameters found in the ~/includes/admin/payments/class-payments-table.php file which allows attackers to inject arbitrary web scripts, in versions up to and including 2.11.2.
Affected Software
Related
{"id": "CVE-2021-39354", "vendorId": null, "type": "cve", "bulletinFamily": "NVD", "title": "CVE-2021-39354", "description": "The Easy Digital Downloads WordPress plugin is vulnerable to Reflected Cross-Site Scripting via the $start_date and $end_date parameters found in the ~/includes/admin/payments/class-payments-table.php file which allows attackers to inject arbitrary web scripts, in versions up to and including 2.11.2.", "published": "2021-10-21T20:15:00", "modified": "2021-10-27T22:29:00", "cvss": {"score": 3.5, "vector": "AV:N/AC:M/Au:S/C:N/I:P/A:N"}, "cvss2": {"cvssV2": {"version": "2.0", "vectorString": "AV:N/AC:M/Au:S/C:N/I:P/A:N", "accessVector": "NETWORK", "accessComplexity": "MEDIUM", "authentication": "SINGLE", "confidentialityImpact": "NONE", "integrityImpact": "PARTIAL", "availabilityImpact": "NONE", "baseScore": 3.5}, "severity": "LOW", "exploitabilityScore": 6.8, "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:H/UI:R/S:C/C:L/I:L/A:N", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE", "baseScore": 4.8, "baseSeverity": "MEDIUM"}, "exploitabilityScore": 1.7, "impactScore": 2.7}, "href": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-39354", "reporter": "security@wordfence.com", "references": ["https://plugins.trac.wordpress.org/changeset/2616149/easy-digital-downloads/trunk/includes/admin/payments/class-payments-table.php", "https://github.com/BigTiger2020/word-press/blob/main/Easy%20Digital%20Downloads.md", "https://www.wordfence.com/vulnerability-advisories/#CVE-2021-39354"], "cvelist": ["CVE-2021-39354"], "immutableFields": [], "lastseen": "2022-03-23T19:03:21", "viewCount": 13, "enchantments": {"dependencies": {"references": [{"type": "wpexploit", "idList": ["WPEX-ID:21F5823E-0245-4353-8D4D-2F63B8912B40"]}, {"type": "wpvulndb", "idList": ["WPVDB-ID:21F5823E-0245-4353-8D4D-2F63B8912B40"]}], "rev": 4}, "score": {"value": 4.4, "vector": "NONE"}, "backreferences": {"references": [{"type": "wpexploit", "idList": ["WPEX-ID:21F5823E-0245-4353-8D4D-2F63B8912B40"]}, {"type": "wpvulndb", "idList": ["WPVDB-ID:21F5823E-0245-4353-8D4D-2F63B8912B40"]}]}, "exploitation": null, "vulnersScore": 4.4}, "_state": {"dependencies": 0}, "_internal": {}, "cna_cvss": {"cna": "Wordfence", "cvss": {"3": {"vector": "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N", "score": 4.8}}}, "cpe": ["cpe:/a:sandhillsdev:easy_digital_downloads:2.11.2"], "cpe23": ["cpe:2.3:a:sandhillsdev:easy_digital_downloads:2.11.2:*:*:*:*:wordpress:*:*"], "cwe": ["CWE-79"], "affectedSoftware": [{"cpeName": "sandhillsdev:easy_digital_downloads", "version": "2.11.2", "operator": "le", "name": "sandhillsdev easy digital downloads"}], "affectedConfiguration": [], "cpeConfiguration": {"CVE_data_version": "4.0", "nodes": [{"operator": "OR", "children": [], "cpe_match": [{"vulnerable": true, "cpe23Uri": "cpe:2.3:a:sandhillsdev:easy_digital_downloads:2.11.2:*:*:*:*:wordpress:*:*", "versionEndIncluding": "2.11.2", "cpe_name": []}]}]}, "extraReferences": [{"url": "https://plugins.trac.wordpress.org/changeset/2616149/easy-digital-downloads/trunk/includes/admin/payments/class-payments-table.php", "name": "https://plugins.trac.wordpress.org/changeset/2616149/easy-digital-downloads/trunk/includes/admin/payments/class-payments-table.php", "refsource": "MISC", "tags": ["Patch", "Third Party Advisory"]}, {"url": "https://github.com/BigTiger2020/word-press/blob/main/Easy%20Digital%20Downloads.md", "name": "https://github.com/BigTiger2020/word-press/blob/main/Easy%20Digital%20Downloads.md", "refsource": "MISC", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://www.wordfence.com/vulnerability-advisories/#CVE-2021-39354", "name": "https://www.wordfence.com/vulnerability-advisories/#CVE-2021-39354", "refsource": "MISC", "tags": ["Third Party Advisory"]}]}
{"wpvulndb": [{"lastseen": "2021-11-26T19:04:36", "description": "The plugin does not escape the start-date and end-date parameters in the payment history dashboard before outputting them back in attributes, leading to Reflected Cross-Site Scripting issues\n\n### PoC\n\nhttps://example.com/wp-admin/edit.php?post_type=download&page;=edd-payment-history&start-date;=\"+style=animation-name:rotation+onanimationstart=alert(/XSS/)// https://example.com/wp-admin/edit.php?post_type=download&page;=edd-payment-history&end-date;=\"+style=animation-name:rotation+onanimationstart=alert(/XSS/)//\n", "cvss3": {"exploitabilityScore": 1.7, "cvssV3": {"baseSeverity": "MEDIUM", "confidentialityImpact": "LOW", "attackComplexity": "LOW", "scope": "CHANGED", "attackVector": "NETWORK", "availabilityImpact": "NONE", "integrityImpact": "LOW", "baseScore": 4.8, "privilegesRequired": "HIGH", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N", "userInteraction": "REQUIRED", "version": "3.1"}, "impactScore": 2.7}, "published": "2021-10-19T00:00:00", "type": "wpvulndb", "title": "Easy Digital Downloads < 2.11.2.1 - Reflected 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-39354"], "modified": "2021-10-21T18:13:19", "id": "WPVDB-ID:21F5823E-0245-4353-8D4D-2F63B8912B40", "href": "https://wpscan.com/vulnerability/21f5823e-0245-4353-8d4d-2f63b8912b40", "sourceData": "", "cvss": {"score": 3.5, "vector": "AV:N/AC:M/Au:S/C:N/I:P/A:N"}}], "patchstack": [{"lastseen": "2022-06-01T19:29:07", "description": "Authenticated Reflected Cross-Site Scripting (XSS) vulnerability discovered by Thinkland Security Team in WordPress Easy Digital Downloads plugin (versions <= 2.11.2).\n\n## Solution\n\n\r\n Update the WordPress Easy Digital Downloads plugin to the latest available version (at least 2.11.2.1).\r\n ", "cvss3": {"exploitabilityScore": 1.7, "cvssV3": {"baseSeverity": "MEDIUM", "confidentialityImpact": "LOW", "attackComplexity": "LOW", "scope": "CHANGED", "attackVector": "NETWORK", "availabilityImpact": "NONE", "integrityImpact": "LOW", "privilegesRequired": "HIGH", "baseScore": 4.8, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N", "version": "3.1", "userInteraction": "REQUIRED"}, "impactScore": 2.7}, "published": "2021-10-21T00:00:00", "type": "patchstack", "title": "WordPress Easy Digital Downloads plugin <= 2.11.2 - Authenticated Reflected Cross-Site Scripting (XSS) vulnerability", "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"}, "impactScore": 2.9, "acInsufInfo": false, "obtainUserPrivilege": false}, "cvelist": ["CVE-2021-39354"], "modified": "2021-10-21T00:00:00", "id": "PATCHSTACK:10E052EF43CC89C18FD65F67E4C0E1D6", "href": "https://patchstack.com/database/vulnerability/easy-digital-downloads/wordpress-easy-digital-downloads-plugin-2-11-2-authenticated-reflected-cross-site-scripting-xss-vulnerability", "cvss": {"score": 3.5, "vector": "AV:N/AC:M/Au:S/C:N/I:P/A:N"}}], "wpexploit": [{"lastseen": "2021-11-26T19:04:36", "description": "The plugin does not escape the start-date and end-date parameters in the payment history dashboard before outputting them back in attributes, leading to Reflected Cross-Site Scripting issues\n", "cvss3": {"exploitabilityScore": 1.7, "cvssV3": {"baseSeverity": "MEDIUM", "confidentialityImpact": "LOW", "attackComplexity": "LOW", "scope": "CHANGED", "attackVector": "NETWORK", "availabilityImpact": "NONE", "integrityImpact": "LOW", "baseScore": 4.8, "privilegesRequired": "HIGH", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N", "userInteraction": "REQUIRED", "version": "3.1"}, "impactScore": 2.7}, "published": "2021-10-19T00:00:00", "type": "wpexploit", "title": "Easy Digital Downloads < 2.11.2.1 - Reflected Cross-Site Scripting", "bulletinFamily": "exploit", "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-39354"], "modified": "2021-10-21T18:13:19", "id": "WPEX-ID:21F5823E-0245-4353-8D4D-2F63B8912B40", "href": "", "sourceData": "https://example.com/wp-admin/edit.php?post_type=download&page=edd-payment-history&start-date=\"+style=animation-name:rotation+onanimationstart=alert(/XSS/)//\r\nhttps://example.com/wp-admin/edit.php?post_type=download&page=edd-payment-history&end-date=\"+style=animation-name:rotation+onanimationstart=alert(/XSS/)//", "cvss": {"score": 3.5, "vector": "AV:N/AC:M/Au:S/C:N/I:P/A:N"}}]}