{"action":"created","comment":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/comments/33584107","id":33584107,"diff_hunk":"@@ -0,0 +1,132 @@\n+##\n+# This module requires Metasploit: http://metasploit.com/download\n+# Current source: https://github.com/rapid7/metasploit-framework\n+##\n+\n+require 'msf/core'\n+\n+class Metasploit3 < Msf::Exploit::Remote\n+  Rank = ExcellentRanking\n+\n+  HttpFingerprint = { :pattern => [ /MiniServ/ ] }\n+\n+  include Msf::Exploit::Remote::HttpClient\n+\n+  def initialize(info={})\n+    super(update_info(info,\n+      'Name'           => \"Usermin 0.980-1.650 Authenticated Arbitrary Command Execution\",\n+      'Description'    => %q{\n+        This modules exploits a vulnerability found in Usermin, version 0.980 up to\n+        1.650. As an authenticated user, arbitrary command execution is possible by\n+        manipulating the filename of an email signature file and triggering a function\n+        to display the signature.\n+\n+        Payload hint: cmd/unix/*perl* works best because Usermin is based on Perl :-)\n+      },\n+      'License'        => MSF_LICENSE,\n+      'Author'         =>\n+         [\n+           'David Elze < david.elze@code-white.com >' # Discovery & this simple MSF module\n+         ],\n+       'References'     =>\n+         [\n+           [ 'CVE', '2015-2079' ],\n+           [ 'URL', 'http://codewhitesec.blogspot.de/2015/05/cve-2015-2079-rce-usermin.html'],\n+         ],\n+      'Arch'           => ARCH_CMD,\n+      'Platform'       => ['unix'],\n+      'BadChars' => \"\",\n+      'Compat'         =>\n+        {\n+          'PayloadType' => 'cmd',\n+          'RequiredCmd' => 'generic perl bash'\n+        },\n+      'Targets'        =>\n+        [\n+          ['Usermin 0.980-1.650 on Linux', {}],\n+        ],\n+      'DisclosureDate' => \"Feb 23 2015\",\n+      'DefaultTarget'  => 0))\n+\n+      register_options(\n+        [\n+          Opt::RPORT(20000),\n+          OptBool.new('SSL', [true, 'Use SSL', true]),\n+          OptString.new('USERNAME', [ true, 'Usermin username', '']),\n+          OptString.new('PASSWORD', [ true, 'Usermin password', '']),\n+          OptString.new('TARGETURI', [true, 'The URI path to Usermin', '/'])\n+        ], self.class)\n+  end\n+\n+  def check\n+    http_handler = ((datastore['SSL']) ? \"https\" : \"http\")\n+    uri = normalize_uri(target_uri.path)\n+    uri << '/' if uri[-1, 1] != '/'","path":"modules/exploits/linux/http/usermin_exec.rb","position":64,"original_position":64,"commit_id":"46e797b78ad7a8bd36cb455597756bb1142ade0c","original_commit_id":"46e797b78ad7a8bd36cb455597756bb1142ade0c","user":{"login":"void-in","id":1746697,"avatar_url":"https://avatars.githubusercontent.com/u/1746697?v=3","gravatar_id":"","url":"https://api.github.com/users/void-in","html_url":"https://github.com/void-in","followers_url":"https://api.github.com/users/void-in/followers","following_url":"https://api.github.com/users/void-in/following{/other_user}","gists_url":"https://api.github.com/users/void-in/gists{/gist_id}","starred_url":"https://api.github.com/users/void-in/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/void-in/subscriptions","organizations_url":"https://api.github.com/users/void-in/orgs","repos_url":"https://api.github.com/users/void-in/repos","events_url":"https://api.github.com/users/void-in/events{/privacy}","received_events_url":"https://api.github.com/users/void-in/received_events","type":"User","site_admin":false},"body":"normalize_uri takes care of this condition so you should remove this line.","created_at":"2015-06-30T15:15:23Z","updated_at":"2015-06-30T15:15:23Z","html_url":"https://github.com/rapid7/metasploit-framework/pull/5635#discussion_r33584107","pull_request_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/5635","_links":{"self":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/comments/33584107"},"html":{"href":"https://github.com/rapid7/metasploit-framework/pull/5635#discussion_r33584107"},"pull_request":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/5635"}}},"pull_request":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/5635","id":38875826,"html_url":"https://github.com/rapid7/metasploit-framework/pull/5635","diff_url":"https://github.com/rapid7/metasploit-framework/pull/5635.diff","patch_url":"https://github.com/rapid7/metasploit-framework/pull/5635.patch","issue_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/5635","number":5635,"state":"open","locked":false,"title":"Exploit module for RCE in Usermin (CVE-2015-2079)","user":{"login":"datenschrott","id":10553689,"avatar_url":"https://avatars.githubusercontent.com/u/10553689?v=3","gravatar_id":"","url":"https://api.github.com/users/datenschrott","html_url":"https://github.com/datenschrott","followers_url":"https://api.github.com/users/datenschrott/followers","following_url":"https://api.github.com/users/datenschrott/following{/other_user}","gists_url":"https://api.github.com/users/datenschrott/gists{/gist_id}","starred_url":"https://api.github.com/users/datenschrott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datenschrott/subscriptions","organizations_url":"https://api.github.com/users/datenschrott/orgs","repos_url":"https://api.github.com/users/datenschrott/repos","events_url":"https://api.github.com/users/datenschrott/events{/privacy}","received_events_url":"https://api.github.com/users/datenschrott/received_events","type":"User","site_admin":false},"body":"Exploit module for authenticated RCE in Usermin 0.980-1.650 (CVE-2015-2079)","created_at":"2015-06-30T13:12:48Z","updated_at":"2015-06-30T15:15:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2d1a5258109526c4f651d50272d427705623afa5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/5635/commits","review_comments_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/5635/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/5635/comments","statuses_url":"https://api.github.com/repos/rapid7/metasploit-framework/statuses/46e797b78ad7a8bd36cb455597756bb1142ade0c","head":{"label":"datenschrott:master","ref":"master","sha":"46e797b78ad7a8bd36cb455597756bb1142ade0c","user":{"login":"datenschrott","id":10553689,"avatar_url":"https://avatars.githubusercontent.com/u/10553689?v=3","gravatar_id":"","url":"https://api.github.com/users/datenschrott","html_url":"https://github.com/datenschrott","followers_url":"https://api.github.com/users/datenschrott/followers","following_url":"https://api.github.com/users/datenschrott/following{/other_user}","gists_url":"https://api.github.com/users/datenschrott/gists{/gist_id}","starred_url":"https://api.github.com/users/datenschrott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datenschrott/subscriptions","organizations_url":"https://api.github.com/users/datenschrott/orgs","repos_url":"https://api.github.com/users/datenschrott/repos","events_url":"https://api.github.com/users/datenschrott/events{/privacy}","received_events_url":"https://api.github.com/users/datenschrott/received_events","type":"User","site_admin":false},"repo":{"id":38248070,"name":"metasploit-framework","full_name":"datenschrott/metasploit-framework","owner":{"login":"datenschrott","id":10553689,"avatar_url":"https://avatars.githubusercontent.com/u/10553689?v=3","gravatar_id":"","url":"https://api.github.com/users/datenschrott","html_url":"https://github.com/datenschrott","followers_url":"https://api.github.com/users/datenschrott/followers","following_url":"https://api.github.com/users/datenschrott/following{/other_user}","gists_url":"https://api.github.com/users/datenschrott/gists{/gist_id}","starred_url":"https://api.github.com/users/datenschrott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datenschrott/subscriptions","organizations_url":"https://api.github.com/users/datenschrott/orgs","repos_url":"https://api.github.com/users/datenschrott/repos","events_url":"https://api.github.com/users/datenschrott/events{/privacy}","received_events_url":"https://api.github.com/users/datenschrott/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/datenschrott/metasploit-framework","description":"Metasploit Framework","fork":true,"url":"https://api.github.com/repos/datenschrott/metasploit-framework","forks_url":"https://api.github.com/repos/datenschrott/metasploit-framework/forks","keys_url":"https://api.github.com/repos/datenschrott/metasploit-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/datenschrott/metasploit-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/datenschrott/metasploit-framework/teams","hooks_url":"https://api.github.com/repos/datenschrott/metasploit-framework/hooks","issue_events_url":"https://api.github.com/repos/datenschrott/metasploit-framework/issues/events{/number}","events_url":"https://api.github.com/repos/datenschrott/metasploit-framework/events","assignees_url":"https://api.github.com/repos/datenschrott/metasploit-framework/assignees{/user}","branches_url":"https://api.github.com/repos/datenschrott/metasploit-framework/branches{/branch}","tags_url":"https://api.github.com/repos/datenschrott/metasploit-framework/tags","blobs_url":"https://api.github.com/repos/datenschrott/metasploit-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/datenschrott/metasploit-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/datenschrott/metasploit-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/datenschrott/metasploit-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/datenschrott/metasploit-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/datenschrott/metasploit-framework/languages","stargazers_url":"https://api.github.com/repos/datenschrott/metasploit-framework/stargazers","contributors_url":"https://api.github.com/repos/datenschrott/metasploit-framework/contributors","subscribers_url":"https://api.github.com/repos/datenschrott/metasploit-framework/subscribers","subscription_url":"https://api.github.com/repos/datenschrott/metasploit-framework/subscription","commits_url":"https://api.github.com/repos/datenschrott/metasploit-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/datenschrott/metasploit-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/datenschrott/metasploit-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/datenschrott/metasploit-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/datenschrott/metasploit-framework/contents/{+path}","compare_url":"https://api.github.com/repos/datenschrott/metasploit-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/datenschrott/metasploit-framework/merges","archive_url":"https://api.github.com/repos/datenschrott/metasploit-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/datenschrott/metasploit-framework/downloads","issues_url":"https://api.github.com/repos/datenschrott/metasploit-framework/issues{/number}","pulls_url":"https://api.github.com/repos/datenschrott/metasploit-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/datenschrott/metasploit-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/datenschrott/metasploit-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/datenschrott/metasploit-framework/labels{/name}","releases_url":"https://api.github.com/repos/datenschrott/metasploit-framework/releases{/id}","created_at":"2015-06-29T13:05:53Z","updated_at":"2015-06-29T13:06:15Z","pushed_at":"2015-06-30T13:06:38Z","git_url":"git://github.com/datenschrott/metasploit-framework.git","ssh_url":"git@github.com:datenschrott/metasploit-framework.git","clone_url":"https://github.com/datenschrott/metasploit-framework.git","svn_url":"https://github.com/datenschrott/metasploit-framework","homepage":"http://www.metasploit.com/","size":281809,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rapid7:master","ref":"master","sha":"1bfa84b37bcacb7e634a430da42053f67a942627","user":{"login":"rapid7","id":1013671,"avatar_url":"https://avatars.githubusercontent.com/u/1013671?v=3","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://avatars.githubusercontent.com/u/1013671?v=3","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}","created_at":"2011-08-30T06:13:20Z","updated_at":"2015-06-30T10:08:00Z","pushed_at":"2015-06-30T13:12:48Z","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":"http://www.metasploit.com/","size":1073070,"stargazers_count":4003,"watchers_count":4003,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3198,"mirror_url":null,"open_issues_count":210,"forks":3198,"open_issues":210,"watchers":4003,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/5635"},"html":{"href":"https://github.com/rapid7/metasploit-framework/pull/5635"},"issue":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/issues/5635"},"comments":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/issues/5635/comments"},"review_comments":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/5635/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/5635/commits"},"statuses":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/statuses/46e797b78ad7a8bd36cb455597756bb1142ade0c"}}}}