当前位置:网站首页>[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


边栏推荐
- Redis的主从复制原理
- BAT面试&高级进阶,文末领取面试资料
- C语言进阶篇——浮点型在内存中的存储
- Downloading and using SWI Prolog
- Tron API wave field transfer query interface PHP version package based on thinkphp5 attached interface document 20220528 version
- 【数据库】navicat --oracle数据库创建
- imx6-uboot添加lvds1显示
- 2021-11-16
- itk::SymmetricForcesDemonsRegistrationFilter
- NewOJ Week 10题解
猜你喜欢

Matlab install license manager error -8

Downloading and using SWI Prolog

SEO optimization of web pages

一个ES设置操作引发的“血案”

Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inference

C语言深度解剖篇——关键字&&补充内容

Lightweight ---project

Influxdb2.x benchmark tool - influxdb comparisons

Performance comparison test of channel and condition variables of golang in single production and single consumption scenarios

元宇宙是短炒,还是未来趋势?
随机推荐
WebStorage
Dom and BOM in JS
[transfer]placement NEW
A short guide to SSH port forwarding
元宇宙是短炒,还是未来趋势?
【C语言】关键字static&&多文件&&猜字游戏
用vector保存对象时保存指针的优点, 以及reserve的使用
JS string array converted to numeric array and how to add the numbers in the array
【vim】vim插件YouCompleteMe配置文件
AND THE BIT GOES DOWN: REVISITING THE QUANTIZATION OF NEURAL NETWORKS
Promise+ handwritten promise
Typeof and instanceof, how to simulate the implementation of an instanceof? Is there a general detection data type?
[an Xun cup 2019]iamthinking
Downloading and using SWI Prolog
Video speed doubling in PC browser
Imx6 uboot add lvds1 display
机器人雅可比求解
二叉树(序列化篇)
鸡尾酒排序
sublime_ Textuse