Lucene search
K

Microsoft SQL Server Unquoted Service Path Privilege Escalation Vulnerability

🗓️ 16 Oct 2016 00:00:00Reported by Saeed HasanzadehType 
zdt
 zdt
🔗 0day.today👁 28 Views

Microsoft SQL Server Unquoted Service Path Privilege Escalation Vulnerability, affects version 2012, allows local attacker to execute malicious code with elevated privileges

Code
#########################################################################
# Exploit Title: Microsoft SQL Server Unquoted Service Path Privilege Escalation
# Date: 10/142016
# Author: Saeed Hasanzadeh (Net.Hun73r)
# Vendor Homepage: https://www.microsoft.com
# Software Link: https://www.microsoft.com/en-us/download/details.aspx?id=29062
#version : 2012
# Tested on: Windows 7
##########################################################################

Microsoft SQL Server installs a service with an unquoted service path
To properly exploit this vulnerability,
the local attacker must insert an executable file in the path of the service.
Upon service restart or system reboot, the malicious code will be run
with elevated privileges.
-------------------------------------------
C:\>sc qc sqlwriter
[SC] QueryServiceConfig SUCCESS

SERVICE_NAME: sqlwriter
TYPE : 10 WIN32_OWN_PROCESS
START_TYPE : 2 AUTO_START
ERROR_CONTROL : 1 NORMAL
BINARY_PATH_NAME : "C:\Program Files\Microsoft SQL Server\90\Shared\sqlwriter.exe"
LOAD_ORDER_GROUP :
TAG : 0
DISPLAY_NAME : SQL Server VSS Writer
DEPENDENCIES :
SERVICE_START_NAME : LocalSystem

#  0day.today [2018-01-08]  #

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation