Rapid7 Vulnerability & Exploit Database

Microsoft SQL Server Escalate EXECUTE AS

Back to Search

Microsoft SQL Server Escalate EXECUTE AS

Created
05/30/2018

Description

This module can be used escalate privileges if the IMPERSONATION privilege has been assigned to the user. In most cases, this results in additional data access, but in some cases it can be used to gain sysadmin privileges.

Author(s)

  • nullbind <scott.sutherland@netspi.com>

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use auxiliary/admin/mssql/mssql_escalate_execute_as
msf auxiliary(mssql_escalate_execute_as) > show actions
    ...actions...
msf auxiliary(mssql_escalate_execute_as) > set ACTION < action-name >
msf auxiliary(mssql_escalate_execute_as) > show options
    ...show and set options...
msf auxiliary(mssql_escalate_execute_as) > run 

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;