Exploiting MS09-004 via SQL injection

简介: Recently we were performing an web application penetration test to one of our clients and identified a SQL injection vulnerability.
+关注继续查看

Recently we were performing an web application penetration test to one of our clients and identified a SQL injection vulnerability. The vulnerability allowed us to conduct a degree of fingerprinting on the remote server; however, the Microsoft SQL Server back-end database didn’t allow to execute commands via the well known xp_cmdshell stored procedure.

Based on the fingerprinting information we identified that the database server was running an old and vulnerable version of MS SQL server. Microsoft SQL Sever 2000 SP3, to be precise.

All indicated that the server was vulnerable to MS09-004 vulnerability. However, it was not possible to get direct access to the database. Moreover no authentication credentials were discovered during the course of the assessment.

This is how our newly released Metasploit module was born. We coded an extension which can be added to Metasploit to exploit this vulnerability using a SQL injection vulnerability with no need of using credentials, as the web application will authenticate in our behalf.

Penetration testing - SQL injection exploitation

Penetration testing - SQL injection exploitation

The screenshot above shows how to get meterpreter (or any other payload of your choice) exploiting the vulnerability from Metasploit.

If interested, get the scripts from our security tools area.

目录
相关文章
|
SQL 存储
SAP ABAP SQL的execution plan和cache
SAP ABAP SQL的execution plan和cache
SAP ABAP SQL的execution plan和cache
|
SQL 存储 前端开发
Query Optimization in Microsoft SQL Server PDW
最近一年一直在做PolarDB的并行优化器,过程中调研了各种分布式数据库系统的优化和执行框架,后续几篇文章将一一分享,首先介绍对PolarDB MySQL的并行优化框架影响最大的,也就是SQL Server PDW。
252 0
Query Optimization in Microsoft SQL Server PDW
|
SQL 机器学习/深度学习 关系型数据库
RDS SQL Server– Best Practices of Execution Plan Cache for Missing Indexes
Execution plan cache is a significant part of SQL Server memory management. It can reveal to you how the execution of a query will occur, or how query execution took place.
2627 0
|
SQL 数据库
Executing Raw SQL Queries using Entity Framework
原文 Executing Raw SQL Queries using Entity Framework While working with Entity Framework developers mostly use LINQ to Entities to query database.
1087 0
|
SQL
TRS WCM SQL injection
来源http://www.wooyun.org/bugs/wooyun-2013-019753 首先是这个页面,好像是越权了http://xxxx/portal/db/dbupdatelog_list.
750 0
推荐文章
更多