
CVE-2022-22963のPythonエクスプロイト。Spring Cloud Functionのリモートコード実行脆弱性で、/functionRouterエンドポイントを介した任意のコマンド実行を可能にする。
これは、Spring Cloud Function のリモートコード実行の脆弱性である CVE-2022-22963 を悪用する Python スクリプトです。この脆弱性により、攻撃者は脆弱なサーバー上で任意のコードを実行できます。このエクスプロイトは、脆弱な /functionRouter エンドポイントを使用して、ターゲットサーバー上でコマンドを実行します。
次のコマンドを実行して、必要な Python ライブラリをインストールします:
pip3 install requests
chmod +x spring_exploit.py
-u または --url オプションでターゲット URL を指定して、スクリプトを実行します:
./spring_exploit.py -u http://mysite.com:8080
or
python spring_exploit.py -u http://mysite.com:8080