当前位置:网站首页>Getting started with rce
Getting started with rce
2022-07-05 13:54:00 【Cwxh0125】
brief introduction
Command Injection, Command injection , It means to destroy the structure of command statement by submitting maliciously constructed parameters , So as to achieve the purpose of executing malicious commands .PHP The command injection exploit is PHP One of the common scripting vulnerabilities in applications .
When the application needs to call some external programs to process the content , It will use some functions to execute system commands . Such as PHP Medium system,exec,shell_exec etc. , When the user can control the parameters in the command execution function , Inject malicious system commands into normal commands , Cause command execution attacks . ------------ Training documents
Divided into remote command execution ping And remote code execution evel.
The reason for the vulnerability : There is no input processing at the input port .
Our common router 、 A firewall 、 Intrusion detection and other devices web On the management interface
Case study
With pikachu Two lanes of the shooting range RCE As an example
One .exec"ping"
Generally, users will be provided with a ping Operation of the web Interface , User from web Input target on the interface IP, After submission , The backstage will be right for IP Address once ping test , And return the test results . In fact, this is an interface , It allows attackers to inject operating system commands or code directly into the background server , To control the background system , This is it. RCE Loophole . The specific back-end code is as follows :
$result.=shell_exec('ping '.$ip);// Splice variables directly , I didn't deal with it
Try first ping Baidu

Try splicing at the back

Try to view the directory

Two .exec"evel"
Back end code :
if(@!eval($_POST['txt']))Submit directly phpinfo();

边栏推荐
- LeetCode_69(x 的平方根 )
- Requests + BS4 crawl Douban top250 movie information
- PHP basic syntax
- How to apply the updated fluent 3.0 to applet development
- Idea remote debugging agent
- Primary code audit [no dolls (modification)] assessment
- 【华南理工大学】考研初试复试资料分享
- Those things I didn't know until I took the postgraduate entrance examination
- Solve the problem of invalid uni app configuration page and tabbar
- Operational research 68 | the latest impact factors in 2022 were officially released. Changes in journals in the field of rapid care
猜你喜欢

常见问题之PHP——Fatal error: Allowed memory size of 314572800 bytes exhausted...

Intranet penetration tool NetApp
![[South China University of technology] information sharing of postgraduate entrance examination and re examination](/img/a8/41e62a7a8d0a2e901e06c751c30291.jpg)
[South China University of technology] information sharing of postgraduate entrance examination and re examination

【公开课预告】:视频质量评价基础与实践

Ordering system based on wechat applet
![[js] basic syntax - for loop](/img/7f/6ddc47c062caa7d39538f88e12b1a0.jpg)
[js] basic syntax - for loop

Mmseg - Mutli view time series data inspection and visualization

Don't know these four caching modes, dare you say you understand caching?

Could not set property 'ID' of 'class xx' with value 'XX' argument type mismatch solution

锚点导航小demo
随机推荐
Linked list (simple)
牛客网:拦截导弹
Liar report query collection network PHP source code
Interviewer soul torture: why does the code specification require SQL statements not to have too many joins?
LeetCode_2(两数相加)
Network security HSRP protocol
Self built shooting range 2022
Address book (linked list implementation)
[machine learning notes] how to solve over fitting and under fitting
Set up a website with a sense of ceremony, and post it to the public 2/2 through the intranet
Mmseg - Mutli view time series data inspection and visualization
Source code analysis of etcd database -- peer RT of inter cluster network layer client
Laravel框架运行报错:No application encryption key has been specified
Selenium crawls Baidu pictures
Ueditor + PHP enables Alibaba cloud OSS upload
几款分布式数据库的对比
Request + BS4 crawl Netease cloud music popular comments
常见问题之PHP——Fatal error: Allowed memory size of 314572800 bytes exhausted...
2022司钻(钻井)考试题库及模拟考试
Assembly language - Beginner's introduction