From d02163546de7a42367c5762eab577d41ee7b3881 Mon Sep 17 00:00:00 2001 From: Yuvraj Saxena Date: Sat, 29 Mar 2025 19:32:54 +0530 Subject: [PATCH] fuzz: Add ProxyJump misconfiguration cases to ssh_client_config_fuzzer_corpus This commit adds test cases to catch issues where ProxyJump configurations lead to infinite loops or incorrect username usage, as reported in issue #287, and issue #291 Signed-off-by: Yuvraj Saxena Reviewed-by: Jakub Jelen --- tests/fuzz/ssh_client_config_fuzzer_corpus/infinite_loop | 5 +++++ tests/fuzz/ssh_client_config_fuzzer_corpus/wrong_username | 7 +++++++ 2 files changed, 12 insertions(+) create mode 100644 tests/fuzz/ssh_client_config_fuzzer_corpus/infinite_loop create mode 100644 tests/fuzz/ssh_client_config_fuzzer_corpus/wrong_username diff --git a/tests/fuzz/ssh_client_config_fuzzer_corpus/infinite_loop b/tests/fuzz/ssh_client_config_fuzzer_corpus/infinite_loop new file mode 100644 index 00000000..f1b37a52 --- /dev/null +++ b/tests/fuzz/ssh_client_config_fuzzer_corpus/infinite_loop @@ -0,0 +1,5 @@ +Host ssh-host +Hostname 10.1.1.1 + +Host 10.1.1.* 10.1.20.* +ProxyJump ssh-host \ No newline at end of file diff --git a/tests/fuzz/ssh_client_config_fuzzer_corpus/wrong_username b/tests/fuzz/ssh_client_config_fuzzer_corpus/wrong_username new file mode 100644 index 00000000..d766c61c --- /dev/null +++ b/tests/fuzz/ssh_client_config_fuzzer_corpus/wrong_username @@ -0,0 +1,7 @@ +Host jumpbox +User oliverw +Hostname jumpbox.example.org + +Host myserver.example.org +Hostname 1.2.3.4 +ProxyJump jumpbox \ No newline at end of file