added encoding_append_b64_modified_byte equals sign fuzzing encoding tests
authorMichael Rash <mbr@cipherdyne.org>
Sun, 28 Oct 2012 02:28:33 +0000 (22:28 -0400)
committerMichael Rash <mbr@cipherdyne.org>
Sun, 28 Oct 2012 02:28:33 +0000 (22:28 -0400)
test/fuzzing/fuzzing_spa_packets
test/fuzzing/patches/encoding_append_b64_modified_byte_eq.patch [new file with mode: 0644]

index d9ad35e..52cc602 100644 (file)
 [+] Invalid_encoding msg_type: encoded_append_b64_modified_byte_3, SPA packet: 9BO6B3nxSr7tWx+/REIEK826HadPekLqcgYg2d1L59ONFtZEas4DGEhToplV5kF7hw9rV45yPNRu16jr3FyT8Ar30LlN/GpeZzIggM9g3Uid3/pd3WPrNa40TYH4APJwQt4cVaC/DR/U/xBXs/n9R18DNEnKC2+ws
 [+] Invalid_encoding msg_type: encoded_append_b64_modified_byte_4, SPA packet: /q7YxjLl4DuMnM7bVZ751t5wRb2FMKepxrG3UwGWAW4taYiUDhOWi8ZsH+mPUTNkKNKj3FVIkAT7bf2z7RyKRfCJv7oG/owJWzwpBREUsTRaTjevVH7k6nZs2P7XHqdgXTfpQUltPSAUVHtmx8dTc6yDboj8K5caw
 [+] Invalid_encoding msg_type: encoded_append_b64_modified_byte_6, SPA packet: 8I9AKT1MQxSsPiZrm5+TN43A1OZ0llVLtxuHJGPIS/+gK3W/9nEWkJ6M1FTd8bi7pF4jfulSUWSRbEkjgTZUkLdPldaEZ+W/AcplnlE9eEPWmPkG8ojzuPAwrQU0LhC7LdEN4DneUOTNLB3ywPGX8xghpEJ0ACPBQ
+[+] Invalid_encoding user: encoded_append_b64_modified_byte_eq_test, SPA packet: 9TSWToLo0j9HiwvIEi8wq8liLSGGEcqcAVS3wS5eF9+dVaNsI4Z7o0RUzbmuhi6UdgeE/n2Q7J/xMQ3pf2HwtDUZalcTKNwepC446ZFna4NwXwgvvQq1/zIv5zV86KFlV9M2o9dVJsGuXO/8JC7pqMM6BfNyiDSFU
+[+] Invalid_encoding user: encoded_append_b64_modified_byte_eq_root, SPA packet: 8vxS0PctG95tzPqcb0a/UjgJN+yGuR4zeGsinXFW1sVD5PYdBCrpwzh+lssVQ0zD8XryqVG+emRCQNNNl0iKHP++rDAIgcgf4ZRXQoVwMUYdrJ67DyiBocY1AKIYq0t2gHQchDD8ig+i0PnlJe3g0nAlifBJSZeFQ
+[+] Invalid_encoding user: encoded_append_b64_modified_byte_eq_mbr, SPA packet: /ZvPxkAfqXaKp8LaEU/PPXLK+U2D5s9jfRfULGbKZiYUbvbDoXIWaKbkhI72AUcxq05acrbJdc2LTZMe8pLv7wy/qMV9n0RKoDta/mIC6Dk737ZTeZSdaRQOCizYukURzlakZKd5BSAfbOEqYFk2iRQ8shXxd5jbY
+[+] Invalid_encoding user: encoded_append_b64_modified_byte_eq_test-test, SPA packet: 9dImukt+wtK0ervxE4Y8nbtsfqAzZlDan9k+wm2BA6yqgdb+b386dxw9kYG7AenMrnMUfPu51KoK7+ozvljhUCffggVa77yJ1O3ca0i3dZmHBHeshKzqo/Wh6JCy0wl0lXDNjpwWgsz/3DL7LhWrKR/QAIY9+M2s0
+[+] Invalid_encoding user: encoded_append_b64_modified_byte_eq_someuser, SPA packet: 9isaupt1RqPgBI40MMcUOqm8WhhzQzmRai3cTaz5fuSZ8J0KEtIeaTP5uSwe75R7utELKeolh6A6NiREoq7Xuyx79Y1iOhgJeb+wSVr/47EJrbFKClcgAtJoyy0WpFvvd/VKdnulRm7A5UwTv2orPtzw4es9CEbmc
+[+] Invalid_encoding user: encoded_append_b64_modified_byte_eq_someUser, SPA packet: /lund1y0KuVItwQVaWDY/OVZSfj6R0d0NxxY0wtiBwyA2FlibK9A2iaNtau99hCq0Rs82NlXBQ9qPxNqdCehi9aPBH1n2P6Hntsw8lF9E1m4mNT8gunCWVx78THOto+7fOTORL7r9o7hqi5lPjsKh8laRqpr8/FYo
+[+] Invalid_encoding user: encoded_append_b64_modified_byte_eq_USER, SPA packet: +DbfyKStH0F1OL4qcjAo4MacF6TbSaf3ph/wbDDgr7XPuUHPlvqk+12sNlOdylKz2vFESBtliIbAlTKwTkGaaC71rkwAsbbxjHdsa2MN7R+lYpuUA7+yJkPJQt7e4pcvPQS7y/cADSXPW9ufffzCJHWqIlEPXZ+hc
+[+] Invalid_encoding user: encoded_append_b64_modified_byte_eq_USER001, SPA packet: +sUA1pMQaiFsfl+6pm/W/WI19CFOjyw6FbGB1fxbtfsnTC+Gj7/zkNuALgwSwxR/3Ev1GzxRBdX8ijvw+BIfsxrce5DPKSV9LIR64W4aDjRpe/NMzhDQ+HEPhwUqWi0qHtcZNRsfQ4B4hqNigKysJvgedFVTtUZNc
+[+] Invalid_encoding user: encoded_append_b64_modified_byte_eq_00001, SPA packet: /Ena8eLCq3GPpijwHVFXTz0cIjTafi84CaTxm8gdtNt2CC/tue3Buc9V9BolMcXSFqGXkTn3aOnXRiVdy/F/jg+PKs5yShI68QUf+4OlIW1lCBWImp3qy69uNlIYeaW4kX9KMMZTGl/rnEg4o4SCV86Ks4m7iwHmw
+[+] Invalid_encoding access_msg: encoded_append_b64_modified_byte_eq_1.2.3.4,tcp/22, SPA packet: /eqZ1Tmf03XjGF1ycpHV47rKjkytrJ0+/O0C5crwAfO/MsSCTN0e/29UZcKGljAJkQXT7XyQp5iNYu3SAroMjayf2PUw+WttrkleUGQBir8slkfH0kop3XvEnqG3b8ecimlI77JzqF6mw5r82XNjGtONhqWiicwl0
+[+] Invalid_encoding access_msg: encoded_append_b64_modified_byte_eq_123.123.123.123,tcp/12345, SPA packet: /jNcB7kObna4bvFAB8vxPMfqCC5tADJ8oPCd0w3qDw9itO2LjGfGphQyeIpCL6bblMwzXDny1GPgJFaGQlbC6pueKy2tYJFmrm3iAiQm94wg2XB2K7CxOfC8TjYGZ8dwNcyaeSobTR7hqU9AZ1UbPQ+hJUG+NPRbq4sXkefadYLJPDylioUfY6
+[+] Invalid_encoding access_msg: encoded_append_b64_modified_byte_eq_1.2.3.4,udp/53, SPA packet: 8GJXkHzXSYJIu4iQTKGEQ8XhpQ64M+5t2n7lCK5KCLRZaX/Qlgoc16MVg78ykSj3ydCT36dpuD88MTbheuYwq6OV5e3/hS2fiYAVnJzLH4nnu12R/Aj0E8AA2Wcke2ZKcKorLS7NMI0sGmTy30Kw6chNc9aTaJf5c
+[+] Invalid_encoding access_msg: encoded_append_b64_modified_byte_eq_123.123.123.123,udp/12345, SPA packet: 9OkyxPGCDalZIAJGkzzVj7BzI0T+phL55m+9NxX9LQXQMTBEOwuu1Y7So1HOiOASD5qvOi8VsxsmWdy5Yzp+koCrk9MBs2Ss1AHjoWTodJh57upa4M179Mi9Aq43dOLgrLSRHhPLz7w/rtdMrtg+JxqBwNcKkT/9/GDgv/eeIjmUIfBcXM3B5h
+[+] Invalid_encoding access_msg: encoded_append_b64_modified_byte_eq_123.123.123.123,udp/12345,tcp/12345, SPA packet: /utymVmvw1Jz9+ViIsbl0dDNAczLv7mWdFXVznvSeDs+9KipqWSq9i7spA9bNoKBXFQ51vJzVXrq5gBdOwfem/Tan99J6cr2waEn00mcOlqVq2JYJt8Uj3Al3FhEImkfwenF2jWR83N+VIMIoJEyKjhbY4ybXq1BfCXZIAtaOt7xImhOSa73iJEq/ua1OoL/lj4VC4nn6HTg
+[+] Invalid_encoding access_msg: encoded_append_b64_modified_byte_eq_1.1.1.1,udp/1,tcp/1,tcp/2,udp/3,tcp/4,tcp/12345, SPA packet: +JJidg2VRufBRF4J4lSDEllXVM43KRB5UqeFgnYIXMR3UTU7C2SKordJ5g9OuBAgsV8FwFiYPAcx4keZZzzs/fIHUTUQ+aAavqeEJavLft0yRjnd4PovQmk6HX+RnfO883PHkXModpzdvhRdq80YNYd2jWbxAbSp366X5V4OzgQ7RCKbGE4A0qEqps/Eu9w2+yejTCLp3IQ0inIA7Z9TGwUEXO0cuYNiw
+[+] Invalid_encoding NAT_access_msg: encoded_append_b64_modified_byte_eq_1.2.3.4,22, SPA packet: /5pzS1by3fkij9yJ4ek35tukWYG01FACQyDy0ETeJe7AO8lgbjNkCGG7AsG6NU6Ev2IiCDj9xAKGglGp3X2i6gBs7eKzd0DC/WJd3JHSyKKWPH6d0bYBN25az22V6laJfHskRzNndJoHuxLpQU5+G1vZSPMj3nMrb6aS7LPKQletQUtCLHSw0J
+[+] Invalid_encoding NAT_access_msg: encoded_append_b64_modified_byte_eq_123.123.123.123,12345, SPA packet: +lH3HijMXUWhVkD+5d0xw/og26+O5Lpu8tzQ1m4KRqIkPnCelxj1/FQwgDOuGx9p4ryGUEtyLOqNwJQXRF1pFextV2GpTujf3sqjZdkSHI8pEDZCJP2U6KqLk3XYtMjESccao+VivfjUJI4Z1p/2m2XFdItXmQSWdyf583MxwZ4orGEYHfyU5DHxXh0BIkukcBRaKzigeCQg
+[+] Invalid_encoding cmd_msg: encoded_append_b64_modified_byte_eq_1.2.3.4,cat /etc/hosts, SPA packet: +QvFDItR9FnnWCOndGuBeUJS7vxP4IO7xdZsGQcXPJLiW7Pr51/mKRMKeOi7/j+tSi6QLvpWIbr3AWk49ttrytZ6jq6GTsPXhvia+Yy+OtZ5KlLx3mvhy23bm62/I69CallKmB6C0vFfnBuKPXvBtNHVT4vv62/zCQwDQdR56k1B51wLgzIWdg
+[+] Invalid_encoding cmd_msg: encoded_append_b64_modified_byte_eq_123.123.123.123,cat /etc/hosts, SPA packet: 9bE0Kj3VOMcdbhUgdGCioQopQ0CWvhtX98lHevGzZ+p1CFdU/7CxunflPURIs8NB/ZtY3mlY13swOU3vYXY74BF//CjcmQHHqJnjL5KWKaJkJmfqjxrksGLl4w8M40DNA8gpy9c265CdofhT7Ua/wI5cCTCo6ssadmpr3QbVz6HsKH9SsXFl3O
+[+] Invalid_encoding cmd_msg: encoded_append_b64_modified_byte_eq_123.123.123.123,echo blah > /some/file, SPA packet: 8qosxlsXPZeEEuk0VawgA+EqJdHiaX9F9f/gDFGxQYh0bPETG7A7kVbzlsPzOYzrwBg46iape8T6x7WO4qDQwUDGgMMCpC2nWejV3fINwuRDQjFKUEaD8Wi8Ko2khwf4OUB8G1ine71i2ylaGAMhVbm1fHYjdiZdjfq6XMO+2LhS+Y88JPc675Qil+CyZvisjS8EgrxKtEKA
+[+] Invalid_encoding cmd_msg: encoded_append_b64_modified_byte_eq_1.1.1.1,echo blah > /some/file, SPA packet: +3oMxoEP1OOK2AecvbLttFlTa8yu/ocZxvMqWj2klthh/f5v867lPFnVOBacUbCVi5KIAODYiiB6+bA7dURG7VdoKcu7k9Xy/PLUQOSUAb8uhpS9OIZhKKOeVsqs9zgS0RDrmNMOxvlkxRmRjJIfx38slbKhwxBlSMdgNCsaqlahy5cvqeiUdb
+[+] Invalid_encoding cmd_msg: encoded_append_b64_modified_byte_eq_1.1.1.1,AAAAAAAAAA, SPA packet: /N8s2jqzS8J0AKg2llXGeoE4x1lqkao0XQdEsddNupaLwX0aGO+QYlDXLXy6ZV5zva+TtMeUlQ71LMx/Gdt1VlvxZnIFZYayxY54NfX7c+Nx2560++TtpQAMD/wSa8DTCadbjuwMGzACdAeyS+Nu8fYgA917NzUfg
+[+] Invalid_encoding cmd_msg: encoded_append_b64_modified_byte_eq_1.1.1.1,AAAAAAAAAA:, SPA packet: 8QFO36gqJc2SXpBjrcOmyY6Zq3G4OidtqcC6UrLG1Mdryvq6QaRTMHeWilPwWNPwuOYb6xRumThRAxkls070MdOdgJ4MUAI90YpQQK13/K6fnVVttkI4grSnrw6QnobP85RKQiCF4yDkvI/JbQhEFzxbZWfbcljJ25fHFF14QLXdESmz9of+Uc
+[+] Invalid_encoding msg_type: encoded_append_b64_modified_byte_eq_1, SPA packet: 9GzNe/RZrf8x4SJ/GfvCVsm4aIoQKdnJTZXNIMUFFOTYGFWkCk/5Zi4Izc7bx+PzJCm1B2HMGvrrDUvX5AppMpbssnDWOgQXrcqf2Gs/PTynmsRn3uADY8F6zNzoeRjqR1pX2O1DB/+te9H+AzO3YhdCbJlycK2Kc
+[+] Invalid_encoding msg_type: encoded_append_b64_modified_byte_eq_0, SPA packet: 9dBPNw1LBifnAwFW060ThWHEBs0iBIMlIYC3ID+7Hr+jD3XbeVmLJ4f0TdOHrjJTr1tLJiOyHt19ru7ru8osMw9vhsRG+RKd4XHf1BSbhUqskoEGPu3PKgNOzN8tZA8uzHodNDxP2MFHPKAlcL20No6bjC2nkSZpc
+[+] Invalid_encoding msg_type: encoded_append_b64_modified_byte_eq_5, SPA packet: /F2k59LDBdpINrD4AUMZPB9cTTACiP0D2ox0NA/MNVio6v8lsTQoH0rIDMzO3LvONl52rZ03vdTLFZfTwbkZW8ccsCmaldnkw0dMt7cnbz945C1K/ock2AvnXMQqLWHVE6SkE7zFMSp4AzYXg8qmRWdRE/50QGpBo
+[+] Invalid_encoding msg_type: encoded_append_b64_modified_byte_eq_2, SPA packet: (NULL)
+[+] Invalid_encoding msg_type: encoded_append_b64_modified_byte_eq_3, SPA packet: /sEWHfk32h5tv2bPXHpjxOgZp7QBSPPTzbKLqN/ZFFrEk3PTG68EYqz7SzCAl2XCawsqgJmuJXhFAlx+8X4RP/KEeQvXKJKj3nwccm8dg5CLdQlXPQCCGsJgat8sq9VtYLk5D7AxsC28eOX0xkz1ig/tjI6q226QE
+[+] Invalid_encoding msg_type: encoded_append_b64_modified_byte_eq_4, SPA packet: /VE3De3qD0afJvDYr790nSzLWhsJnmMX7pCt6Z0JODL9v8tWMIMdQcF/I5qx3TSVmZcgAsatlkDAXjBAxULm2CP1G0oMYMpRKztE0yhYJUMwajemGSmKWsI15qM6tt0gkQMQ7r9cn9Urup+wsjzFr13TJfv4oDFls
+[+] Invalid_encoding msg_type: encoded_append_b64_modified_byte_eq_6, SPA packet: /6WU/5LWV4YF0ag0V/Ti3QQmUemtOJM1NQMgqbLi13LKmeeqoKEZkFfIo0jhRU3nVLAIFudIS3ks+IYDmepA0fISsBOaq+G7RASfAFyUw7KXD8TbCHhJaZSXQKz46h5fblj6XlzzLHzlz1d06DZ2eMkriBF/vk0HU
diff --git a/test/fuzzing/patches/encoding_append_b64_modified_byte_eq.patch b/test/fuzzing/patches/encoding_append_b64_modified_byte_eq.patch
new file mode 100644 (file)
index 0000000..760115b
--- /dev/null
@@ -0,0 +1,13 @@
+diff --git a/lib/fko_encode.c b/lib/fko_encode.c
+index c92d421..5775943 100644
+--- a/lib/fko_encode.c
++++ b/lib/fko_encode.c
+@@ -59,6 +59,8 @@ append_b64(char* tbuf, char *str)
+     free(bs);
++    tbuf[1] = '=';
++
+     return(FKO_SUCCESS);
+ }