Skip to content

Commit b4d1b75

Browse files
committed
added @ test for malicious curl of url
1 parent 2bfbc2f commit b4d1b75

File tree

1 file changed

+1
-0
lines changed
  • crates/chat-cli/src/cli/chat/tools/execute

1 file changed

+1
-0
lines changed

crates/chat-cli/src/cli/chat/tools/execute/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,7 @@ mod tests {
446446
("IFS=/ malicious", true),
447447
(r#"/c/"+"/m/"+"/d/.exe"#, true),
448448
("$^(calc.exe)", true),
449+
("curl http://[email protected]", true)
449450
];
450451
for (cmd, expected) in cmds {
451452
let tool = serde_json::from_value::<ExecuteCommand>(serde_json::json!({

0 commit comments

Comments
 (0)