当前位置:网站首页>xctf attack and defense world web master advanced area command_execution
xctf attack and defense world web master advanced area command_execution
2022-08-06 03:21:00 【l8947943】
0x01. Enter the environment and view the content
The title interface is shown in the figure:
Title hint:Xiaoning wrote a ping function, but not waf. Teacher X told her that it was very dangerous. Do you know why?
emmm, waf may be the key to solving the problem
0x02. Problem Analysis
0x02_1. What is waf
Web application protection system (also known as: website application-level intrusion prevention system. English: Web Application Firewall, referred to as: WAF).Using an internationally recognized saying: Web application firewall is a product that provides protection for Web applications by implementing a series of HTTP/HTTPS security policies.If waf is not turned on, there will be problems such as web pages being tampered with.
0x02_2. Related Commands
You need to be familiar with linux commands here:
Under windows or linux:
command1 && command2 execute command1 first, if true, then execute command2
command1 || command2 execute command1 first, if false, then execute command2
command1 & command2 firstExecute command1 after executing command2
command1 | command2 only execute command2
Command execution vulnerability (| || & && is called pipe character)
0x02_3. Command Test
In any case, the ping command must be able to ping the host, so it must be able to complete ping 127.0.0.1
, and the command must be executed successfully.
Secondly, using keywords for full-text search, we can construct a retrieval payload: 127.0.0.1 | find / -name "flag*"
, as shown in the figure, the word "flag" is returned.
In this case, don't be polite, construct the payload againView flag.txt, the content is: 127.0.0.1 | cat /home/flag.txt
, as shown in the figure:
The final answer is: cyberpeace{140607f89048a8ce053e9fc36fdb34c0}
边栏推荐
猜你喜欢
3D激光SLAM:LIO-SAM整体介绍与安装编译
如果一个国家市场效果特别好,我们如何加大这个国家的投放比例。
预处理(C语言深度了解)
美国国立卫生研究院(NIH)江晓芳组诚聘生物信息学博士后
KU115 PCIE总线数据预处理板卡(多LVDS接口)
实心轮胎的优缺点
谷歌分析中的转化目标设置后,大概多久能显示在Google adwords后台?
Detailed description of hand-eye calibration (introduction of coordinate system, two-dimensional, three-dimensional hand-eye calibration method @ nine-point method, AX=XB)
2022 使用Go语言构建现代 Web 应用程序实战内容课程
ctf (finalrec)
随机推荐
leetcode:20. 有效的括号
3D激光SLAM:LIO-SAM整体介绍与安装编译
学习MySQL的第一天:MySQL概述(基础篇)
Android数据库框架之greenDAO
入坑机器学习:三,非监督学习
C Student Management System Print/Modify Designated Location Information
MONAI_Label 安装试用
6.软件测试-----自动化测试之unittest框架
leetcode 15. 三数之和
智能合约安全-整数溢出(SW101-IntegerOverflowAndUnderflow)
The second day of learning MySQL: SQL (basic)
【深度学习21天学习挑战赛】备忘篇:模型复用——模型的保存与加载
泡沫填充轮胎
js_array object is changed to be sorted (including parallel sorting)
物联网协议概述
FluentValidation
Find the Nth node of the linked list
firewall and ufw notes
A tester in 1995, he wouldn't dare to ask for 12K~ Looking at his resume, I have a lot of thoughts...
美国国立卫生研究院(NIH)江晓芳组诚聘生物信息学博士后