{"action":"created","comment":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/comments/28443743","id":28443743,"diff_hunk":"@@ -0,0 +1,91 @@\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::Auxiliary\n+\n+  include Msf::Auxiliary::Scanner\n+  include Msf::Exploit::Remote::HttpClient\n+\n+  def initialize(info = {})\n+    super(update_info(info,\n+      'Name'           => 'MS15-034 HTTP Protocol Stack Request Handling Vulnerability',\n+      'Description'    => %q{\n+        This module will check if your hosts are vulnerable to CVE-2015-1635 (MS15-034). A\n+        vulnerability in the HTTP Protocol stack (HTTP.sys) that could result in arbitrary code\n+        execution. Please note this module could potentially cause a denail-of-service against\n+        the servers you're testing.\n+      },\n+      'Author'         =>\n+        [\n+          'Bill Finlayson', # He did all the work (see the pastebin code), twitter: @hectorh56193716\n+          'sinn3r'          # MSF version of bill's work\n+        ],\n+      'References'     =>\n+        [\n+          ['CVE', '2015-1635'],\n+          ['MSB', 'MS15-034'],\n+          ['URL', 'http://pastebin.com/ypURDPc4']\n+        ],\n+      'License'        => MSF_LICENSE\n+    ))\n+\n+    register_options(\n+      [\n+        OptString.new('TARGETURI', [true, 'The base path', '/'])\n+      ], self.class)\n+\n+    deregister_options('RHOST')\n+  end\n+\n+  def run_host(ip)\n+    code = check_host(ip)\n+    case code\n+    when Exploit::CheckCode::Vulnerable\n+      print_good(\"#{ip}:#{rport} - #{code.last}\")\n+    else\n+      print_status(\"#{ip}:#{rport} - #{code.last}\")","path":"modules/auxiliary/scanner/http/ms15_034_ulonglongadd.rb","position":50,"original_position":50,"commit_id":"19ab71aa43a3c726e4280bd6b5851202b27bb54d","original_commit_id":"19ab71aa43a3c726e4280bd6b5851202b27bb54d","user":{"login":"TomSellers","id":6500426,"avatar_url":"https://avatars.githubusercontent.com/u/6500426?v=3","gravatar_id":"","url":"https://api.github.com/users/TomSellers","html_url":"https://github.com/TomSellers","followers_url":"https://api.github.com/users/TomSellers/followers","following_url":"https://api.github.com/users/TomSellers/following{/other_user}","gists_url":"https://api.github.com/users/TomSellers/gists{/gist_id}","starred_url":"https://api.github.com/users/TomSellers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomSellers/subscriptions","organizations_url":"https://api.github.com/users/TomSellers/orgs","repos_url":"https://api.github.com/users/TomSellers/repos","events_url":"https://api.github.com/users/TomSellers/events{/privacy}","received_events_url":"https://api.github.com/users/TomSellers/received_events","type":"User","site_admin":false},"body":"Using a non existent URL in TARGETURI causes line 50 to crash due to the variable 'code' being nil when a 404 is returned from the server.","created_at":"2015-04-15T17:44:28Z","updated_at":"2015-04-15T17:44:28Z","html_url":"https://github.com/rapid7/metasploit-framework/pull/5150#discussion_r28443743","pull_request_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/5150","_links":{"self":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/comments/28443743"},"html":{"href":"https://github.com/rapid7/metasploit-framework/pull/5150#discussion_r28443743"},"pull_request":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/5150"}}},"pull_request":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/5150","id":33326660,"html_url":"https://github.com/rapid7/metasploit-framework/pull/5150","diff_url":"https://github.com/rapid7/metasploit-framework/pull/5150.diff","patch_url":"https://github.com/rapid7/metasploit-framework/pull/5150.patch","issue_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/5150","number":5150,"state":"open","locked":false,"title":"Add MS15-034 (CVE-2015-1635) https.sys Request Handling Vulnerability","user":{"login":"wchen-r7","id":1170914,"avatar_url":"https://avatars.githubusercontent.com/u/1170914?v=3","gravatar_id":"","url":"https://api.github.com/users/wchen-r7","html_url":"https://github.com/wchen-r7","followers_url":"https://api.github.com/users/wchen-r7/followers","following_url":"https://api.github.com/users/wchen-r7/following{/other_user}","gists_url":"https://api.github.com/users/wchen-r7/gists{/gist_id}","starred_url":"https://api.github.com/users/wchen-r7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wchen-r7/subscriptions","organizations_url":"https://api.github.com/users/wchen-r7/orgs","repos_url":"https://api.github.com/users/wchen-r7/repos","events_url":"https://api.github.com/users/wchen-r7/events{/privacy}","received_events_url":"https://api.github.com/users/wchen-r7/received_events","type":"User","site_admin":false},"body":"I didn't do much, I found a work-in-progress code here: http://pastebin.com/raw.php?i=ypURDPc4\r\n\r\nI tested it and worked on my IIS:\r\n\r\n![screen shot 2015-04-15 at 1 46 48 am](https://cloud.githubusercontent.com/assets/1170914/7153450/708a1ee8-e311-11e4-98fb-2475071201ee.png)\r\n\r\n\r\nso I decided to submit a MSF version in case we want it asap. It's also bed-time code... so... yeah.\r\n\r\nHere's how you can test it:\r\n\r\n- [ ] Set up a Windows 7 SP1 box\r\n- [ ] Install IIS\r\n- [ ] Open IIS Manager, click on Default Web Site. You will see Output Caching there, double click on that, and then on the right you will see Edit Feature Settings: Make sure \"Enable kernel cache\" is enabled. By default it already is.\r\n- [ ] I added a ```.htm``` extension for kernel-mode caching too during testing, but this may not be necessary.\r\n- [ ] Run the module like the following:\r\n\r\n```\r\nmsf auxiliary(ms15_034_ulonglongadd) > check\r\n[+] 192.168.1.168:80 - The target is vulnerable.\r\n[*] Checked 1 of 1 hosts (100% complete)\r\nmsf auxiliary(ms15_034_ulonglongadd) > \r\n```\r\n\r\nOf if you see me in person, you can use my box, too.","created_at":"2015-04-15T06:45:14Z","updated_at":"2015-04-15T17:44:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"455dd23a220a55a9b36ca5dcbb3080119e31fed8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/5150/commits","review_comments_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/5150/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/5150/comments","statuses_url":"https://api.github.com/repos/rapid7/metasploit-framework/statuses/19ab71aa43a3c726e4280bd6b5851202b27bb54d","head":{"label":"wchen-r7:ms15_034_check","ref":"ms15_034_check","sha":"19ab71aa43a3c726e4280bd6b5851202b27bb54d","user":{"login":"wchen-r7","id":1170914,"avatar_url":"https://avatars.githubusercontent.com/u/1170914?v=3","gravatar_id":"","url":"https://api.github.com/users/wchen-r7","html_url":"https://github.com/wchen-r7","followers_url":"https://api.github.com/users/wchen-r7/followers","following_url":"https://api.github.com/users/wchen-r7/following{/other_user}","gists_url":"https://api.github.com/users/wchen-r7/gists{/gist_id}","starred_url":"https://api.github.com/users/wchen-r7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wchen-r7/subscriptions","organizations_url":"https://api.github.com/users/wchen-r7/orgs","repos_url":"https://api.github.com/users/wchen-r7/repos","events_url":"https://api.github.com/users/wchen-r7/events{/privacy}","received_events_url":"https://api.github.com/users/wchen-r7/received_events","type":"User","site_admin":false},"repo":{"id":3789747,"name":"metasploit-framework","full_name":"wchen-r7/metasploit-framework","owner":{"login":"wchen-r7","id":1170914,"avatar_url":"https://avatars.githubusercontent.com/u/1170914?v=3","gravatar_id":"","url":"https://api.github.com/users/wchen-r7","html_url":"https://github.com/wchen-r7","followers_url":"https://api.github.com/users/wchen-r7/followers","following_url":"https://api.github.com/users/wchen-r7/following{/other_user}","gists_url":"https://api.github.com/users/wchen-r7/gists{/gist_id}","starred_url":"https://api.github.com/users/wchen-r7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wchen-r7/subscriptions","organizations_url":"https://api.github.com/users/wchen-r7/orgs","repos_url":"https://api.github.com/users/wchen-r7/repos","events_url":"https://api.github.com/users/wchen-r7/events{/privacy}","received_events_url":"https://api.github.com/users/wchen-r7/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wchen-r7/metasploit-framework","description":"Metasploit Framework","fork":true,"url":"https://api.github.com/repos/wchen-r7/metasploit-framework","forks_url":"https://api.github.com/repos/wchen-r7/metasploit-framework/forks","keys_url":"https://api.github.com/repos/wchen-r7/metasploit-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wchen-r7/metasploit-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wchen-r7/metasploit-framework/teams","hooks_url":"https://api.github.com/repos/wchen-r7/metasploit-framework/hooks","issue_events_url":"https://api.github.com/repos/wchen-r7/metasploit-framework/issues/events{/number}","events_url":"https://api.github.com/repos/wchen-r7/metasploit-framework/events","assignees_url":"https://api.github.com/repos/wchen-r7/metasploit-framework/assignees{/user}","branches_url":"https://api.github.com/repos/wchen-r7/metasploit-framework/branches{/branch}","tags_url":"https://api.github.com/repos/wchen-r7/metasploit-framework/tags","blobs_url":"https://api.github.com/repos/wchen-r7/metasploit-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wchen-r7/metasploit-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wchen-r7/metasploit-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/wchen-r7/metasploit-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wchen-r7/metasploit-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/wchen-r7/metasploit-framework/languages","stargazers_url":"https://api.github.com/repos/wchen-r7/metasploit-framework/stargazers","contributors_url":"https://api.github.com/repos/wchen-r7/metasploit-framework/contributors","subscribers_url":"https://api.github.com/repos/wchen-r7/metasploit-framework/subscribers","subscription_url":"https://api.github.com/repos/wchen-r7/metasploit-framework/subscription","commits_url":"https://api.github.com/repos/wchen-r7/metasploit-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/wchen-r7/metasploit-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/wchen-r7/metasploit-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/wchen-r7/metasploit-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/wchen-r7/metasploit-framework/contents/{+path}","compare_url":"https://api.github.com/repos/wchen-r7/metasploit-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wchen-r7/metasploit-framework/merges","archive_url":"https://api.github.com/repos/wchen-r7/metasploit-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wchen-r7/metasploit-framework/downloads","issues_url":"https://api.github.com/repos/wchen-r7/metasploit-framework/issues{/number}","pulls_url":"https://api.github.com/repos/wchen-r7/metasploit-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/wchen-r7/metasploit-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/wchen-r7/metasploit-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wchen-r7/metasploit-framework/labels{/name}","releases_url":"https://api.github.com/repos/wchen-r7/metasploit-framework/releases{/id}","created_at":"2012-03-21T18:19:05Z","updated_at":"2014-08-01T16:20:50Z","pushed_at":"2015-04-15T15:20:27Z","git_url":"git://github.com/wchen-r7/metasploit-framework.git","ssh_url":"git@github.com:wchen-r7/metasploit-framework.git","clone_url":"https://github.com/wchen-r7/metasploit-framework.git","svn_url":"https://github.com/wchen-r7/metasploit-framework","homepage":"http://www.metasploit.com/","size":294557,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":6,"default_branch":"master"}},"base":{"label":"rapid7:master","ref":"master","sha":"b5ae3fd62ca28d3d666259b561eb3a9a2aa593e8","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-04-15T15:34:46Z","pushed_at":"2015-04-15T15:20:32Z","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":1055201,"stargazers_count":3609,"watchers_count":3609,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2978,"mirror_url":null,"open_issues_count":211,"forks":2978,"open_issues":211,"watchers":3609,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/5150"},"html":{"href":"https://github.com/rapid7/metasploit-framework/pull/5150"},"issue":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/issues/5150"},"comments":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/issues/5150/comments"},"review_comments":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/5150/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/5150/commits"},"statuses":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/statuses/19ab71aa43a3c726e4280bd6b5851202b27bb54d"}}}}