提出 #861028: Node.js serverless-localstack 1.4.0 OS Command Injection情報

タイトルNode.js serverless-localstack 1.4.0 OS Command Injection
説明serverless-localstack passes the custom.localstack.docker.compose_file configuration value directly into a shell command when autostart is enabled and the plugin starts LocalStack through Docker Compose. The README documents docker.compose_file as an optional Docker Compose file path: custom: localstack: autostart: true docker: compose_file: /home/localstack_compose.yml However, in src/index.js, the value is interpolated into a command string: exec(`docker-compose -f ${this.config.docker.compose_file} up -d`) Because the value is not escaped or passed as an argument array, shell metacharacters in the compose file path can execute additional commands.
ソース⚠️ https://github.com/localstack/serverless-localstack/issues/303
ユーザー
 wjm2 (UID 99050)
送信2026年06月17日 09:18 (1 月 ago)
モデレーション2026年07月23日 16:06 (1 month later)
ステータス承諾済み
VulDBエントリ382620 [localstack serverless-localstack 迄 1.4.0 Configuration src/index.js custom.localstack.docker.compose_file 特権昇格]
ポイント20

Do you need the next level of professionalism?

Upgrade your account now!