added fuzzing encoding test that removes colon #4
authorMichael Rash <mbr@cipherdyne.org>
Fri, 26 Oct 2012 02:01:12 +0000 (22:01 -0400)
committerMichael Rash <mbr@cipherdyne.org>
Fri, 26 Oct 2012 02:01:12 +0000 (22:01 -0400)
test/fuzzing/fuzzing_spa_packets
test/fuzzing/patches/encoding_rm_colon4.patch [new file with mode: 0644]

index c684b2b..67247d9 100644 (file)
 [+] Invalid_encoding msg_type: encoded_colon3_missing_3, SPA packet: /fUgQRGKlciaMXj1EOA/JI0Mk/LW7rSu1ZRKxZkmN/7jiCWAmsu7tri6UfRZmMfwLyCN1ToirMjLVfuVlUM/W5m01SZnk1ap2xUtKHzTF/ptKq2vF6Vqjj0gLFA5jREkeLxMfHPkrHJQURgIIww8Pq2oYmsLP29Lo
 [+] Invalid_encoding msg_type: encoded_colon3_missing_4, SPA packet: 93Ow8bPkFNbjLlavmK3/jr1YedFf8UPfd7rtGxFMKHxlbkJP7pB/Byyba7Zp3iUs3niMTY365VnTlhVjZisyOl2X2bd6GYi9sli6PsCD+rRLadhTq+drfLEYWVfyd6W8Md0Sp9gEQLgiNprEij29LQ00wI7UxNguk
 [+] Invalid_encoding msg_type: encoded_colon3_missing_6, SPA packet: /qeeMVMHWS9Cd258XaGXTV46mLoPucYlLfnM9a7wBZOGyUMTP0qL7hV6touglctvch4UXGvMrfOV1XII455JGQeP5b3kxaDfvEpHMADuIldxOED41Ia2ggSR+G0xvd5y/5y0b8dtsHPu+Yeh+d1X6d1dzuClOXYX4
+[+] Invalid_encoding user: encoded_colon4_missing_test, SPA packet: +0tw2NN3gwzqi4UhURnIqUZACibHc/qNHeR4B1SCwzvNwup5bjcZoiBmVVfKuBg42M/Wg3NHzEX6TtFdVOjv0LH7epw4c3a1fwylDeIrtMBDw/I8Y6fAdmNgCaNhKxZZ7wmze6Lvd8jwkWRA83JAiSC6LNd8lGJHo
+[+] Invalid_encoding user: encoded_colon4_missing_root, SPA packet: +EmDzw7opP1h/+El4JNzxAI3Cyc7oiEMmVLKQacwbKQa/2M2kfkbyjeSZxTiPyHXEa5EI9LajI/53ffdjyr4D7r0Tx9N/rd/7S6G2YIKAcujUK0oII5mtDxcxfQ44qAecmMedvhW14nzl/YsnXdnx63pKwPTN0tHU
+[+] Invalid_encoding user: encoded_colon4_missing_mbr, SPA packet: /cMLSgm02qkD7eXclWPKvLy437WMUp6KMJWSmTjB7WkCIhbTRWm82qxoU/Pnj8S4zGniwqCqGV8cvR1VLejxwJjw7O9woTlCbSwgOPsp1z4HYepH7DKm5Ji3oCJ0yQkaxu6CtPxE6adNDGuOwLu5iOB+R0t0/9hN4
+[+] Invalid_encoding user: encoded_colon4_missing_test-test, SPA packet: +vzzZCmGb1IQFrHF0DBvN2mUo7pFYiTUW8ytCeLWWG9l/MzgUqAgETD+MxdzTJp9MySC8ETLWVaSBzb7mrCb6A2w6y2k/YMphkNIHwtRaG6vqbZxz470bSN/md+V1lHAfGcEoujHEeKHWcK5AmpFn8o73uLnaxalY
+[+] Invalid_encoding user: encoded_colon4_missing_someuser, SPA packet: +k9EsGPsmNXDbqGbcAfRlSz2ysrgV2Tm2V/JI6M5JaUAh7mj6Dl4cDNIBv0Ij7lDjgQ7c0BG4QgXV7ygyfP64fMnL7FULBe9XkLuFR7UYER9GRAwKt07ameIA2hzcXLTdl8kVeJlwK9gvdUfXUVKCOfvmnnuhLRq8
+[+] Invalid_encoding user: encoded_colon4_missing_someUser, SPA packet: +EbEkOp2NTs35tSMevhWubM27hJ6nUGA5/Zy6OXLk73xQlmoumYY8xgmG6zgYNv7JJNPQ9vklySwmVuskbJmL/hX9SIz0rtD8YmE9H8X6MqZA0ScblHOVvXvfOk2hn6OcReYdx9aX6HfET2sFW6HJzCxsXYXDogR4
+[+] Invalid_encoding user: encoded_colon4_missing_USER, SPA packet: /pXSnLA/wnxkDXd9xOPzCdX7eS0Aqj/Lo+Uw8B/K1NaMAf1aOgOCggeCyHNNa7aS9P6LwSu6Beaeyv+QKSmiDLNVWQtWQPq9KU9D8MP6d4UUpU/I1XuKvrUuUSPFhxo/lCP3WCSj1H2E8+Yylk0mma5M4hvqB/DN4
+[+] Invalid_encoding user: encoded_colon4_missing_USER001, SPA packet: 8JCkphkRxnvCN3/xdZCnTDMYZoR0gCKW8Bphzs/dx9JBTgFeahGioc1/UUD0QS5upbt2otZeqvMXlpLL8m2hT0ZqhbTjOPg7cUFDN8jUtp4U1BYXO68KPbf1iVA2W/v1TVXyKxqycgsmKiZCi1Bxacl7B1uByLztM
+[+] Invalid_encoding user: encoded_colon4_missing_00001, SPA packet: +WRBHPNSCuVw8wMeIR9BupiH0Y6CRgiw6N5BlTdR1nSHueNemP1fleXtMaWJaUl9t6ZkdeM3H+YTL8D/alPL1m2980gPNVaJSFAO0yd8pxfQnwHUk7vmTrbcTi63yHZykC6BOr2LAuP6XdLfcOPCwKgqneg+2Sg1I
+[+] Invalid_encoding access_msg: encoded_colon4_missing_1.2.3.4,tcp/22, SPA packet: 9/MyiMzP5fitvFJdcESLPINXm6ICpflJrVeYvyV3OPWK068Fs/OUtAdGaLuJujbIR0ZBLa4oq/hoV1tOIaocYBPU32Tigq31xn+TK2SqyiWY/uilzmyQUde6MuD/6bODKHpLYxigXyFfMLNpMRHvrWIKDCd6Wdb9U
+[+] Invalid_encoding access_msg: encoded_colon4_missing_123.123.123.123,tcp/12345, SPA packet: +ZA9DbDBAJMych7jKillqq6+sSGIV7NSD7mOyAXaeZyBozl86ObDVTVyn5ISf5zqW7iCUYc6vS3ep0ZU4jSAZk5daKGdbjylIirovuVzKUAAmiM7Wu8Qnf0F7I3qLM1qvNxagtD9eo001YPE4HXJn3Dar8XOOk6Ai1tQqEu3RUD37j8xXzs5Zt
+[+] Invalid_encoding access_msg: encoded_colon4_missing_1.2.3.4,udp/53, SPA packet: +Iq62fR8bzA5nZ/E+u6/YRgCxwCa6HZauWTtPUI68D22dZVlPm6A6E7FfHDVJneJFJWTUv2uX/HfBD701qbpD3s7NOfHp0nbwiQGZ+iJ3bGXuB51PEQ686WAS7KPRAYgdJV9ftM51asqwAhZ2rc94psXX2q6YxEFM
+[+] Invalid_encoding access_msg: encoded_colon4_missing_123.123.123.123,udp/12345, SPA packet: +o0qATL38pDCBfsWrYJtnNqLCql6i7OMe2h0RgicEBwkWWfVJvQautSKMRFBXQrB/TTuVAIUSwwBB8Z0WknK+bRhfxXhi7T2ldl2IzGT/6jRxEvcBjtyQSNPd2e5OdmbCg3d+FRwjWtQ0XI3xZsEZaJ5DADn7CyRkogwBgdSJ9ufpSWREFnZh2
+[+] Invalid_encoding access_msg: encoded_colon4_missing_123.123.123.123,udp/12345,tcp/12345, SPA packet: 8Z/KnGl0cSDeHrCGTprM0bQV5Y+k/CFw0PCUbsKTeMpxnbMy71TXVJ2bVrmjbUyXclkaHJRE93E+kd8jU/XBzxVt6quFY80m1k159/E9OLNwNVM+JOa1lPU/PlfW74CQKDNUXrqzy3Pk+h+Dukcn8eAsDEhgRGsQoYIOx4qhJcy9TVPbrmvixDjIsJBvkxowJmX+hTsnZPEA
+[+] Invalid_encoding access_msg: encoded_colon4_missing_1.1.1.1,udp/1,tcp/1,tcp/2,udp/3,tcp/4,tcp/12345, SPA packet: +iteLuzcVq4psxMTZxQnFwu3lvZ1AAeu80MThHVYE4ctDrXO0kEzxNlu02KKsooZ7BlDG8aG/AZz12q6jwx/rqW79jFSb+tSQAd+iXKfng3/SFYnZYf6AqoyUYzCohqB5TZyUmWuIS4cTXqqiCyR8Is5kXgN7y0qytO4rLxv8a5/sFqa+hVps+RSIaC8LYMTEb7fUMJpleIJnd+rmFcFqyzdMEgpPPKCA
+[+] Invalid_encoding NAT_access_msg: encoded_colon4_missing_1.2.3.4,22, SPA packet: /saLmCCroz4uiVFx/FiknfxgwWi8TMqr+gaP0WUzT2z6OYb6h62zhJytdU5Bey5nOPKWpblzwSXTlbovU7MppHyDcz0hVhLDdUbgjwCTOzpy5AlguXx1G8chHEWZ2Xpzkn2RL+yfBNk2KKPGh6BV/r7cpwJAP/tgaeCD0GiOHFgRfII1bmFH5A
+[+] Invalid_encoding NAT_access_msg: encoded_colon4_missing_123.123.123.123,12345, SPA packet: 9IayAbDbh8OIPhRMnIQg0NHeSUIcopKMGVQdG0S+uCnsqcjLTq36jMj/BwthzCezWwxdAfeIiZJDVvICqkkXsiawlOi/hIFcTK//EutDcxjCxGbjzb/nKPDdIUr5uKtZqDpLA1RGgTPSCTqB01IykKPB+Ic5ThvXJGzGtINS/K5LLeG2tm+mUc/Zrr7WdBLSJsa1PhCtNr8g
+[+] Invalid_encoding cmd_msg: encoded_colon4_missing_1.2.3.4,cat /etc/hosts, SPA packet: 8zlTSJKOADgWTd6FtCOKAfNk3ydtn72TxUuFodRnXs3Lo7K9040su3kw9BeAwh9RQgo5WC961z+sGm6ALi1aWc8wkUhBF3+d5FsShC8yNnPhbwWCStXKygJiQ1TuA6ITdNiiXdg4itUHAyNKjMwSL5wd0OgHZjM8mrqPRFjTsBqKLHNne2EKvs
+[+] Invalid_encoding cmd_msg: encoded_colon4_missing_123.123.123.123,cat /etc/hosts, SPA packet: +/Wf6fLpaQojm1JJL7La1YE0SsLodoBi/UsSKaltMcMzkqf+p9xFfmczJJYNfWddmXhCTRUq2TJrnUcD5wxLp5R9x/I88TA97j5JHPO14lrJTN6X2kLWDCMycOcsjbZT4O8kwgY+tAHavrh8ozEj4M1vJPnGjeA+C8UdbprrAa+7WHxBkfXsn8
+[+] Invalid_encoding cmd_msg: encoded_colon4_missing_123.123.123.123,echo blah > /some/file, SPA packet: /B18O6v7JcnWYTZb++DEGUSaBGkIxACxFOFIzYFpy53LsZp8/V9WGjdi2PhX6WvSYbrUyyRNuxwfZ/b5A4l3jzp87KnHdP2biivLXUctGV5uuFTU9zT8Hp1FsED1aDuzihemWIYN9RZv5vZykCssCaaA7Mk4SVMJPz8mwaSq/A8dIRK+M5oud6BbhzaDDNVrRSmbZePOBrzA
+[+] Invalid_encoding cmd_msg: encoded_colon4_missing_1.1.1.1,echo blah > /some/file, SPA packet: /40CAfdgmUmzz9eEKuoAQW6ApcnQvJT0nABwKqwUHRXeFTcKj33KUq+Rgl5CoiOnaJa02qCl/IndulhAZMkweoTV4yQC7Qzgg+5FnTPFKDsE6zK1tO0jdypCzSUjiYRyV+xbpgF+u9bno0d6WC5WZbS94MuH/JTeSFilyMMh6duobhHLXeIM2p
+[+] Invalid_encoding cmd_msg: encoded_colon4_missing_1.1.1.1,AAAAAAAAAA, SPA packet: +S4fXOVbX8yrEz8/HoU/czmo8AUTLGshUFZqy6OqPW83vs3ThlKwchIbhhYsLcDq4UMa5qrzQrM6urikRsqGmwS1RAFH8V888IF50N3f/AJGkVtrlB61gELRrLvRnTNBhTSb4Xn9TOxxqNeTM/hLPR4Dmd9BEFVgg
+[+] Invalid_encoding cmd_msg: encoded_colon4_missing_1.1.1.1,AAAAAAAAAA:, SPA packet: 8i1G5KqAZ/cVlfju6F+4qgua103jp6YtxT3uTfBdfcAEk1NsEpwOg9KSr/CPDwkvWWFBriMYFNzozyUHLJpD+4c80Wcrqhef6WYoP3tBykZq3Gp2yhT+YMk7/LDdmYHsiD18gVD6JSpDwW4c7KDlG9mYTN1AQSlqQ
+[+] Invalid_encoding msg_type: encoded_colon4_missing_1, SPA packet: +5fxgDnyJTyIQDViaHppeO7NyNncKxtGaXJFlQ7mJGVBLPCRculjPjCnv3UNxt//P7KVHnhf3jFa5SUauKPcARU+uKaerb8eGgC1aIaMbaMlqn9NLHTpvB3vtybh3wqelCNdk9HclWZrv88mDv1v5YdNw/7tcd2X0
+[+] Invalid_encoding msg_type: encoded_colon4_missing_0, SPA packet: /xuRUl9LZ5ie1LwHi52iObw2Su3SFdWbS200ydzYEQDJ/jVnNuABHrUBYqhM3W3+BSPi7AuChWkyogGfvYNoFCL5zIY0Nwb7B5RMAhDNgf/HyKh7BRTSLick5tc6ku93JDqOU79SbPufyNb/6ilOVvvYpsylRn/iw
+[+] Invalid_encoding msg_type: encoded_colon4_missing_5, SPA packet: 9Ax2coyV/zC8ax7QEFSJtoqP/8vlEebvIGOocM+czmgBJH1lol5ztcJV6G1hUQjXztw+6Xp/BVPe5jRCcWrNFPh9Au1Zp3D/w9vJgrCw38UIISvnVZ9fu5SYz9ybyW4funpCJEK8SdMULk8WKAFlt7v7dUkWRzy08
+[+] Invalid_encoding msg_type: encoded_colon4_missing_2, SPA packet: (NULL)
+[+] Invalid_encoding msg_type: encoded_colon4_missing_3, SPA packet: /cXAsTDhScMZpq6v0fefJWk70Fkj4nd5zL7P//AOLm4s+DnpkainGg85cHOzptHASIAB12426sWV2hf2hcESnj4WbfEce4c/OSz5ogarc3Prn6UyJ7t0EoP+mexn19ajy+38Ri9/laqRSeao1ahHhoHMOB9nhXVcY
+[+] Invalid_encoding msg_type: encoded_colon4_missing_4, SPA packet: 8eheOyFdx5Ee5xL1J5oMHMrFpdR/5bAdIQDewBaDfaNqxvAQeU+OKf2Y3DAvy92P0cB4OO0RQP7U4Ziq//5luK4LjXnmPOlzvsViHmtTrRD93EY+clisYh+1lkIRqxsFxPGtvci7PVbbxl2ZC8Vk58fuRYxH/Y5xw
+[+] Invalid_encoding msg_type: encoded_colon4_missing_6, SPA packet: /oS2vOsB+5XEbvPP5riPSvA3L9LivjYKXNbR+PQn1ZIlBKbCL+m0zUW9HI7GbGggP9a2uvVJT8Wg94Gn0RLwXpF+SXw3jv6YphG4vhbX/si9tyH5X7O7WQNzfZ1g7BlDQXSg24U35ROmI6h07LiiOLSow55Ij3Qec
diff --git a/test/fuzzing/patches/encoding_rm_colon4.patch b/test/fuzzing/patches/encoding_rm_colon4.patch
new file mode 100644 (file)
index 0000000..a58ce09
--- /dev/null
@@ -0,0 +1,13 @@
+diff --git a/lib/fko_encode.c b/lib/fko_encode.c
+index c92d421..8eb981c 100644
+--- a/lib/fko_encode.c
++++ b/lib/fko_encode.c
+@@ -135,7 +135,7 @@ fko_encode_spa_data(fko_ctx_t ctx)
+     /* Add the message type value.
+     */
+     offset = strlen(tbuf);
+-    sprintf(((char*)tbuf+offset), ":%i:", ctx->message_type);
++    sprintf(((char*)tbuf+offset), "%i:", ctx->message_type);
+     /* Add the base64-encoded SPA message.
+     */