module

Windows Manage Local Microsoft SQL Server Authorization Bypass

Disclosed
N/A
Created
2018-05-30

Description

When this module is executed, it can be used to add a sysadmin to local
SQL Server instances. It first attempts to gain LocalSystem privileges
using the "getsystem" escalation methods. If those privileges are not
sufficient to add a sysadmin, then it will migrate to the SQL Server
service process associated with the target instance. The sysadmin
login is added to the local SQL Server using native SQL clients and
stored procedures. If no instance is specified then the first identified
instance will be used.

Why is this possible? By default in SQL Server 2k-2k8, LocalSystem
is assigned syadmin privileges. Microsoft changed the default in
SQL Server 2012 so that LocalSystem no longer has sysadmin privileges.
However, this can be overcome by migrating to the SQL Server process.

Author

Scott Sutherland scott.sutherland@netspi.com

Platform

Windows

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 post/windows/manage/mssql_local_auth_bypass
msf post(mssql_local_auth_bypass) > show actions
...actions...
msf post(mssql_local_auth_bypass) > set ACTION < action-name >
msf post(mssql_local_auth_bypass) > show options
...show and set options...
msf post(mssql_local_auth_bypass) > run

Title
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.