mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-08-04 16:38:49 +00:00
Guard against shell-chain bypass where an attacker appends '&& malicious' after an allowlisted prefix. The allowlist check now splits the command on top-level chaining operators (&&, ||, ;, |) and requires every segment to match at least one allowPattern independently. Fixes #4521