{"action":"closed","number":8803,"pull_request":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/8803","id":134355725,"node_id":"MDExOlB1bGxSZXF1ZXN0MTM0MzU1NzI1","html_url":"https://github.com/rapid7/metasploit-framework/pull/8803","diff_url":"https://github.com/rapid7/metasploit-framework/pull/8803.diff","patch_url":"https://github.com/rapid7/metasploit-framework/pull/8803.patch","issue_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/8803","number":8803,"state":"closed","locked":false,"title":"Add Oracle DB Priv Esc via function-based index","user":{"login":"moshekaplan","id":810279,"node_id":"MDQ6VXNlcjgxMDI3OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/810279?v=4","gravatar_id":"","url":"https://api.github.com/users/moshekaplan","html_url":"https://github.com/moshekaplan","followers_url":"https://api.github.com/users/moshekaplan/followers","following_url":"https://api.github.com/users/moshekaplan/following{/other_user}","gists_url":"https://api.github.com/users/moshekaplan/gists{/gist_id}","starred_url":"https://api.github.com/users/moshekaplan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moshekaplan/subscriptions","organizations_url":"https://api.github.com/users/moshekaplan/orgs","repos_url":"https://api.github.com/users/moshekaplan/repos","events_url":"https://api.github.com/users/moshekaplan/events{/privacy}","received_events_url":"https://api.github.com/users/moshekaplan/received_events","type":"User","site_admin":false},"body":"Adds a Metasploit module for escalating an Oracle DB user to DBA \r\nthrough abusing index privileges to create a function-based index \r\nthat runs with the privileges of the table owner, instead of the \r\nuser who created the index.\r\n\r\nThis module was tested on Oracle Database 11g Express Edition \r\nRelease 11.2.0.2.0 - 64 bit Production.\r\n\r\nA user can query for their privileges with the following:\r\nSELECT * FROM session_privs\r\n\r\nThe user will need to disconnect and reconnect after running\r\nthe exploit to access their new privileges.\r\n\r\n## Verification\r\n\r\nList the steps needed to make sure this thing works\r\n\r\n- [ ] Connect via sqlplus, and check current privileges: \r\n  - Ex: `sqlplus SCOTT/TIGER@192.168.3.100:1521/XEXDB`\r\n  - Ex: `SELECT * FROM session_privs`\r\n- [ ] Start `msfconsole`\r\n- [ ] `use auxiliary/admin/oracle/oracle_index_privesc`\r\n- [ ] `exploit`\r\n- [ ] Reconnect with sqlplus and check privileges post-exploit:\r\n  - Ex: `sqlplus SCOTT/TIGER@192.168.3.100:1521/XEXDB`\r\n  - Ex: `SELECT * FROM session_privs`\r\n- [ ] Verify that the user has more privileges post-exploit.\r\n- [ ] The mechanism behind the privilege escalation was published by David Litchfield [here](http://www.davidlitchfield.com/Privilege_Escalation_via_Oracle_Indexes.pdf)","created_at":"2017-08-07T03:09:40Z","updated_at":"2018-07-13T11:17:17Z","closed_at":"2018-07-13T11:17:17Z","merged_at":null,"merge_commit_sha":"06efccf1c1f06a354a30d2a540a4b4cd126d6475","assignee":{"login":"pbarry-r7","id":19912177,"node_id":"MDQ6VXNlcjE5OTEyMTc3","avatar_url":"https://avatars2.githubusercontent.com/u/19912177?v=4","gravatar_id":"","url":"https://api.github.com/users/pbarry-r7","html_url":"https://github.com/pbarry-r7","followers_url":"https://api.github.com/users/pbarry-r7/followers","following_url":"https://api.github.com/users/pbarry-r7/following{/other_user}","gists_url":"https://api.github.com/users/pbarry-r7/gists{/gist_id}","starred_url":"https://api.github.com/users/pbarry-r7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbarry-r7/subscriptions","organizations_url":"https://api.github.com/users/pbarry-r7/orgs","repos_url":"https://api.github.com/users/pbarry-r7/repos","events_url":"https://api.github.com/users/pbarry-r7/events{/privacy}","received_events_url":"https://api.github.com/users/pbarry-r7/received_events","type":"User","site_admin":false},"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":125500911,"node_id":"MDU6TGFiZWwxMjU1MDA5MTE=","url":"https://api.github.com/repos/rapid7/metasploit-framework/labels/feature","name":"feature","color":"bfe5bf","default":false},{"id":103436014,"node_id":"MDU6TGFiZWwxMDM0MzYwMTQ=","url":"https://api.github.com/repos/rapid7/metasploit-framework/labels/module","name":"module","color":"eb6420","default":false},{"id":466360142,"node_id":"MDU6TGFiZWw0NjYzNjAxNDI=","url":"https://api.github.com/repos/rapid7/metasploit-framework/labels/needs-docs","name":"needs-docs","color":"bfd4f2","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/8803/commits","review_comments_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/8803/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/8803/comments","statuses_url":"https://api.github.com/repos/rapid7/metasploit-framework/statuses/9815c6b91df34df3a2525fb2052e75776db7ffeb","head":{"label":"moshekaplan:master","ref":"master","sha":"9815c6b91df34df3a2525fb2052e75776db7ffeb","user":{"login":"moshekaplan","id":810279,"node_id":"MDQ6VXNlcjgxMDI3OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/810279?v=4","gravatar_id":"","url":"https://api.github.com/users/moshekaplan","html_url":"https://github.com/moshekaplan","followers_url":"https://api.github.com/users/moshekaplan/followers","following_url":"https://api.github.com/users/moshekaplan/following{/other_user}","gists_url":"https://api.github.com/users/moshekaplan/gists{/gist_id}","starred_url":"https://api.github.com/users/moshekaplan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moshekaplan/subscriptions","organizations_url":"https://api.github.com/users/moshekaplan/orgs","repos_url":"https://api.github.com/users/moshekaplan/repos","events_url":"https://api.github.com/users/moshekaplan/events{/privacy}","received_events_url":"https://api.github.com/users/moshekaplan/received_events","type":"User","site_admin":false},"repo":{"id":99530120,"node_id":"MDEwOlJlcG9zaXRvcnk5OTUzMDEyMA==","name":"metasploit-framework","full_name":"moshekaplan/metasploit-framework","owner":{"login":"moshekaplan","id":810279,"node_id":"MDQ6VXNlcjgxMDI3OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/810279?v=4","gravatar_id":"","url":"https://api.github.com/users/moshekaplan","html_url":"https://github.com/moshekaplan","followers_url":"https://api.github.com/users/moshekaplan/followers","following_url":"https://api.github.com/users/moshekaplan/following{/other_user}","gists_url":"https://api.github.com/users/moshekaplan/gists{/gist_id}","starred_url":"https://api.github.com/users/moshekaplan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moshekaplan/subscriptions","organizations_url":"https://api.github.com/users/moshekaplan/orgs","repos_url":"https://api.github.com/users/moshekaplan/repos","events_url":"https://api.github.com/users/moshekaplan/events{/privacy}","received_events_url":"https://api.github.com/users/moshekaplan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/moshekaplan/metasploit-framework","description":"Metasploit Framework","fork":true,"url":"https://api.github.com/repos/moshekaplan/metasploit-framework","forks_url":"https://api.github.com/repos/moshekaplan/metasploit-framework/forks","keys_url":"https://api.github.com/repos/moshekaplan/metasploit-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/moshekaplan/metasploit-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/moshekaplan/metasploit-framework/teams","hooks_url":"https://api.github.com/repos/moshekaplan/metasploit-framework/hooks","issue_events_url":"https://api.github.com/repos/moshekaplan/metasploit-framework/issues/events{/number}","events_url":"https://api.github.com/repos/moshekaplan/metasploit-framework/events","assignees_url":"https://api.github.com/repos/moshekaplan/metasploit-framework/assignees{/user}","branches_url":"https://api.github.com/repos/moshekaplan/metasploit-framework/branches{/branch}","tags_url":"https://api.github.com/repos/moshekaplan/metasploit-framework/tags","blobs_url":"https://api.github.com/repos/moshekaplan/metasploit-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/moshekaplan/metasploit-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/moshekaplan/metasploit-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/moshekaplan/metasploit-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/moshekaplan/metasploit-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/moshekaplan/metasploit-framework/languages","stargazers_url":"https://api.github.com/repos/moshekaplan/metasploit-framework/stargazers","contributors_url":"https://api.github.com/repos/moshekaplan/metasploit-framework/contributors","subscribers_url":"https://api.github.com/repos/moshekaplan/metasploit-framework/subscribers","subscription_url":"https://api.github.com/repos/moshekaplan/metasploit-framework/subscription","commits_url":"https://api.github.com/repos/moshekaplan/metasploit-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/moshekaplan/metasploit-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/moshekaplan/metasploit-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/moshekaplan/metasploit-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/moshekaplan/metasploit-framework/contents/{+path}","compare_url":"https://api.github.com/repos/moshekaplan/metasploit-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/moshekaplan/metasploit-framework/merges","archive_url":"https://api.github.com/repos/moshekaplan/metasploit-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/moshekaplan/metasploit-framework/downloads","issues_url":"https://api.github.com/repos/moshekaplan/metasploit-framework/issues{/number}","pulls_url":"https://api.github.com/repos/moshekaplan/metasploit-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/moshekaplan/metasploit-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/moshekaplan/metasploit-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/moshekaplan/metasploit-framework/labels{/name}","releases_url":"https://api.github.com/repos/moshekaplan/metasploit-framework/releases{/id}","deployments_url":"https://api.github.com/repos/moshekaplan/metasploit-framework/deployments","created_at":"2017-08-07T02:48:32Z","updated_at":"2017-08-07T02:48:58Z","pushed_at":"2017-08-30T17:23:09Z","git_url":"git://github.com/moshekaplan/metasploit-framework.git","ssh_url":"git@github.com:moshekaplan/metasploit-framework.git","clone_url":"https://github.com/moshekaplan/metasploit-framework.git","svn_url":"https://github.com/moshekaplan/metasploit-framework","homepage":"https://www.metasploit.com/","size":325288,"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,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rapid7:master","ref":"master","sha":"f71ca924c4fcb2889d9a1f149852e3192ed75e1a","user":{"login":"rapid7","id":1013671,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMTM2NzE=","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,"node_id":"MDEwOlJlcG9zaXRvcnkyMjkzMTU4","name":"metasploit-framework","full_name":"rapid7/metasploit-framework","owner":{"login":"rapid7","id":1013671,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMTM2NzE=","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-07-13T10:34:41Z","pushed_at":"2018-07-13T11:11:41Z","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":350635,"stargazers_count":12899,"watchers_count":12899,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":6960,"mirror_url":null,"archived":false,"open_issues_count":562,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":6960,"open_issues":562,"watchers":12899,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/8803"},"html":{"href":"https://github.com/rapid7/metasploit-framework/pull/8803"},"issue":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/issues/8803"},"comments":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/issues/8803/comments"},"review_comments":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/8803/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/8803/commits"},"statuses":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/statuses/9815c6b91df34df3a2525fb2052e75776db7ffeb"}},"author_association":"NONE","merged":false,"mergeable":true,"rebaseable":false,"mergeable_state":"clean","merged_by":null,"comments":8,"review_comments":2,"maintainer_can_modify":false,"commits":4,"additions":117,"deletions":0,"changed_files":2}}
{"actor":{"display_login":"jrobles-r7"}}