[39770] in bugtraq

home help back first fref pref prev next nref lref last post

SQL Injection in Chinese ASP Webcounter

daemon@ATHENA.MIT.EDU (r_i_t_b_15@yahoo.com)
Wed Jul 20 21:15:18 2005

Date: 19 Jul 2005 08:51:41 -0000
Message-ID: <20050719085141.4539.qmail@securityfocus.com>
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
MIME-Version: 1.0
From: r_i_t_b_15@yahoo.com
To: bugtraq@securityfocus.com

I found a vulnerability in a webcounter quite spread in China,
I was not able to retrieve its name (if someone could help...).
You can find examples of this webcounter by searching for
&quot;StatDay.asp&quot; (hourly statistics for a given day), &quot;StatMonth.asp&quot; 
(daily statistics for a given month) or &quot;StatYear.asp&quot;
(monthly statistics for a given year).
From some URLs it is possible to download the whole package.
This software is written in ASP (there is also a PHP version),
and it has a SQL Injection vulnerability:
for example you can call the script StatYear with parameter &quot;QYear&quot;
[...]/StatYear.asp?QYear=2004
and retrieve the stats for 2004.
The input is not filtered properly, so you can send a request like:
[...]/StatYear.asp?QYear=2006%26%22%27%20union%20Select%20asc(mid(PassWord,1,1))%2Cnull%2Cnull%2Cnull%2Cnull%2Cnull%2Cnull%2Cnull%2Cnull%2Cnull%2Cnull%2Cnull%2Cnull%20From%20Infolist
as Infolist is the (MS Access) table which stores the informations
about the site being analyzed.

home help back first fref pref prev next nref lref last post