Skip to content

Commit b4d1b75

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

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • crates/chat-cli/src/cli/chat/tools/execute

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://trusted.com@evil.com", true)
449450
];
450451
for (cmd, expected) in cmds {
451452
let tool = serde_json::from_value::<ExecuteCommand>(serde_json::json!({

0 commit comments

Comments
 (0)