added fuzzing encoding strip eq return packets
authorMichael Rash <mbr@cipherdyne.org>
Sun, 28 Oct 2012 02:34:52 +0000 (22:34 -0400)
committerMichael Rash <mbr@cipherdyne.org>
Sun, 28 Oct 2012 02:34:52 +0000 (22:34 -0400)
test/fuzzing/fuzzing_spa_packets
test/fuzzing/patches/encoding_strip_eq_return.patch [new file with mode: 0644]

index 52cc602..1eee68c 100644 (file)
 [+] 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
+[+] Invalid_encoding user: encoded_append_b64_strip_eq_return_test, SPA packet: 9cgRkb71bcSoHtQwftPx2BHAsuFT3zpt7qv2hWSHnYoXxOUhn4ZxyGPWW2n79Ju9+vRDzjQXtQPIEdA3R8a5pEWlXGociD3K0mD0Tmt0YhVnwYoOHa+XVUCW4cLnL6WiKsT7zekzrTAyzc1xQld8ynPNlczDjoFfo=
+[+] Invalid_encoding user: encoded_append_b64_strip_eq_return_root, SPA packet: 8Je5Gtd1qOvPgWf+xQgDZka+TeKh22xBZ8lVRnAcosm/4q0ya5VqDQq9QAPfTh0DZtzQ2F1lHCtMP1PxwrwvZH0KcCyAf4ReiRYm93azpBfuYffTpPshEZM3u1yZJOK+7TxghYSdpgBvUXzrM87f38PtSvj+pl3JM=
+[+] Invalid_encoding user: encoded_append_b64_strip_eq_return_mbr, SPA packet: +nEDitusayQsZ4NRqoWcqLycwm/E54ccWsmnpS7ZSS7Ra2GV2iqXv+W1WRHN194CLfT0Ml6doCSFUIRydlM+D7oiJQMouA5SCufxdxYT6ONJz7BynMq/eK9x5gPVkVtETMIfvZXAvHSCGHMFEeTdx2jEBThcI984w=
+[+] Invalid_encoding user: encoded_append_b64_strip_eq_return_test-test, SPA packet: 9e2nbKlyDX3FdZxP163fI0XM819YuWtRE3Y0pH92xMVE3eKnc/4KowzTMKPykoftj5DShZpQPAJ8opBUcNrs2XqGFgA6oBrUTSChoe4eG6VYjs3kUmbBWdjTPoFruQvt9f/jl9HO5D/3XMMsdCQiwCu1THtYVpHgPpZQn7oIScP5Ok/rE5kOoo
+[+] Invalid_encoding user: encoded_append_b64_strip_eq_return_someuser, SPA packet: /lvzthipQvAD6/59vzxnE694eu75g7/Abe4qXFTHOs+3kEXx+QORKjDAGzf82U4vlJYtdOWlCshZP6UBSEEsYHqE8lya/PUB80Aze/x6h/bkFu5u0vxejvO/75wWAc+5UzZI6HoI89WpJD/a6Wtvbu1ObVlaMpODCmj5pQv2qQAKtqqjtxmul2
+[+] Invalid_encoding user: encoded_append_b64_strip_eq_return_someUser, SPA packet: 9Gd8TSBxuNWztHoO/yeET68xOYwaBjlRoA7iJBUG1OKF973L18qR4FZByugvk/6/gj7fyYIlKn4N08wp1m2JM/rjlPi5xzFsDAVjCiQWk/P+g//kC1+N/iZWcHAiLmxQ1LtPHuARq4CVLviZiQv2lbT5wHXCLFBTricMLrumbs1CPma7QpYA5U
+[+] Invalid_encoding user: encoded_append_b64_strip_eq_return_USER, SPA packet: /pvLx0UQF14IB3fJjZS96TKnSTNlXfOUFbAeblAZa2ml12qia+qw/tSRHAs9GgWwuWDYnfDUgKivMqCw54PKFFBuFB2LbvNuexD0ARVU4S4eMzyYUlOlZxMe5rEzmCjQhx+bmAoZ7rDlSyF3P0stcGlt1AkxEs61M=
+[+] Invalid_encoding user: encoded_append_b64_strip_eq_return_USER001, SPA packet: /+lwFSBAHlEllsKnp8buzh4LNzRxEatHSOdmeCuZHMuOcP8E1uGhDBthxx710/z3Oi7StFicRYzM76h/tkyLuxFvHmGioodbSSugk3ORC0rOO0zy1FGt4cdNSJgUlT8b+kIE/sq1V6334MiOlevcL3EI+xGfy/nt5DxDRFYqVWObnCx77PNIg3
+[+] Invalid_encoding user: encoded_append_b64_strip_eq_return_00001, SPA packet: 90lKXcCR/xTp9tbcAkG79xwnj/ZZ4P37bISL9VfA4in/W8Ej5HuxoE5O2JIsvcoKFZN/4BVnWE2OahhRM1866hL2+D2v07tDp8Nbh25qT7oU9oYQpBc3PJwY8RROeKijYaIiZq8IvIxdB6C5RooLIfdna9ukBVHHQ=
+[+] Invalid_encoding access_msg: encoded_append_b64_strip_eq_return_1.2.3.4,tcp/22, SPA packet: /OhGkVxbU+UApfm8LjPQbxj/jg34vYNv7HE1/4RkMqSUs0t5/jhY2yU50z1uhhq9PF9SMng1aPKYp+fkJ8Qc9bQjbdZDkxy5yfeHuMydKjb+y37/OcUonNXx4RzeROUnwQH2h7nPQpb16m3GUvuXn0ORnLh0P51ws=
+[+] Invalid_encoding access_msg: encoded_append_b64_strip_eq_return_123.123.123.123,tcp/12345, SPA packet: +wTtb7ZzijL+IJHDyyL6n/h7L1BSIJt8Gle8+LHG6IFKZbnnXnUO1V9l8PSVA8j5xi8969o8UxWg2FrZCSPK17BzGSKj5SqXqK2o7NjSL/lZNdcn8w2WJ5pkzRGF1SLVxcFF6NydOcDDtwFMRKIJiv6RzDFwIsk62AuRer6u7TI7DleAbeCIy+
+[+] Invalid_encoding access_msg: encoded_append_b64_strip_eq_return_1.2.3.4,udp/53, SPA packet: /ywRh52g6IEHOBED6S+e/BzB9RhirGCUZ3nnBS4FvztK7U2eXw5uqntSBDgzapBueQKN420kHJtojgXq8XsVef9HJlPJzvNB7m4ttGLRelImSIsfgRnyE0lVnxGFyAf8LYbYzm3RJGZfwHvVhYd2hNFYfdu6PtXIU=
+[+] Invalid_encoding access_msg: encoded_append_b64_strip_eq_return_123.123.123.123,udp/12345, SPA packet: /JoY4KW6o1DNBMfa84ER9HiwPENIRHYCRwMTCB+tSqJDa1prg7FjPURMb+zTETF8NeiG/8MTT201EnVn6i0k0n9eylLbz9qXfTU1AxbH1ThxV8Im/JjSamvpj6SL66AtTf7/jAildnqei/p4mqo+RRlIx4T6gFiywFUTbJBsX+C24UwDlNHjTM
+[+] Invalid_encoding access_msg: encoded_append_b64_strip_eq_return_123.123.123.123,udp/12345,tcp/12345, SPA packet: 9XYKmiOeOT3FsDp5s+rmm1SuJ7h5mwNI68Ib1bssvUQIHtJx9HkTeaW2z0FHNNeGMDVp1V95JuXxrmCuno1T6x0MUPsBjQ6Y251HNGarsLUJiu3x6+2zPXOZRuvKlOb/+xoUvEp2vNppy0bHqir/hIe48QLNyP0elUxu544WMIxTyuqnu23U60JPTD1EHuKtplKyURADmkow==
+[+] Invalid_encoding access_msg: encoded_append_b64_strip_eq_return_1.1.1.1,udp/1,tcp/1,tcp/2,udp/3,tcp/4,tcp/12345, SPA packet: 9qbGhnVlw8d+bEKzaPrkkpBxdhtwSSS/nbTJajP5z5oS0ztDqyJFrr1H+XfOTjfE+g8lXFt4lgH/Urd9AsSr/Y95yAtU3KolFt0bRlPVIHIhOM+JjrqUkdkCMOzMqg0rzCHRO/5vN3RnNW0kZ9aB6vBqFWc50aC01MIWg9GpXqktPmbwrUx0p3JTpJ8yVjCupvei0t87AKq5zPSiiRnTu26HD7cxSi23s=
+[+] Invalid_encoding NAT_access_msg: encoded_append_b64_strip_eq_return_1.2.3.4,22, SPA packet: 9UjKmfmHQl9WYZq2w7Yx5HxociWhRq8GLHIOI/OsS8ksFpicrHCBaHmhspju/xvJ6upvZk1UqPmBNS2EB9Lx/ebdtRdjkDtYLlQegc4Wl+WISCu7UDwss5vH7NorJMknUbm99N8agw8eo/ZtjXtooe75BUJsNw++KqC/mRqTUeq3F8msiH7pmA
+[+] Invalid_encoding NAT_access_msg: encoded_append_b64_strip_eq_return_123.123.123.123,12345, SPA packet: 9t22jzF3vgbrRZz4EAeEAly15a+WOqh5OyFkVj5X61O0B012BFva1EQAbOTNWuGvQUEf7Noz/9FkDuOsjS3m+jY+9OkKMmrX1re/x8oaIIfP7uM4OHEhMoM1VX0ZL4o5vQRe0zqm/NBOOtBLmjBNYq0xe++EEGGUI9LW6U/ia6B93NvM7jt9QDGylHncy5HgpfSwhncN+LPg==
+[+] Invalid_encoding cmd_msg: encoded_append_b64_strip_eq_return_1.2.3.4,cat /etc/hosts, SPA packet: /U0yZl1HUdz/+YPAoFOf/9OwGLf32C3u/13PtZGqS8l+72oZ61YDze7O88C43fePdREBZ2vbl/zi5wrbuHmD4RyBEbR7DBKZQ4+2pzx0KOmIM4AuGRdR5xI99Ds46oId+lzi5lAMvbbmRgOH4N6+4GagNtNbAbYHMLdJokw9oWnU/+eiMkAW36
+[+] Invalid_encoding cmd_msg: encoded_append_b64_strip_eq_return_123.123.123.123,cat /etc/hosts, SPA packet: 9DWr3hrLcvhO+6ncDKySwbt6EdoZCVePfBFLMl5RCtZ2mpCESMteUaHkLGginFJxE2Z8cbGcBZ9ilH6hcL/rSoSI0wfP7DJNM6IVdNaT20YTbq1hgWKk798V0VddnuEbwoaOMrI8s09u8nlksHQmDzkwOpmKgIwMdgkbQG9T1tOM4m3Nzh9D1RTX6LjoDSh8ahDFWvNWF4DA==
+[+] Invalid_encoding cmd_msg: encoded_append_b64_strip_eq_return_123.123.123.123,echo blah > /some/file, SPA packet: +ef77yck+NZxaGgG7C0PPRu2QOKuVvVphRAJOQkN8tQyXVHSZeGT9/Aeict9bA6MJ9+rMKVzVfLQz/a1c+jd30ZfQzS3O9OCF+FQoYR4vPPJM0foBAacH3HlUDqAnYDl+uAxER2+QXFd0okbtf+4JnYm4DOO3lPEWgNVoAae7hYi9PcW0FuQQA5OOMO/hVePdBzhAhl5qICQ==
+[+] Invalid_encoding cmd_msg: encoded_append_b64_strip_eq_return_1.1.1.1,echo blah > /some/file, SPA packet: 9W4f+pBzcA2KwSepWwsSu6J+0b4HCxqhaR3SnPeG7HEePb+FRg4qmcxZne17C2scjc+dXExUAVRRSqN3aUHqXQsANcYBrqmF3alcMMuEEeF86HZ1eBOEEtnEJsMWLHAhjMkLo4BfQmD4dSqOL5CfI3XE+/icvPTTv08Y3drNICCg31ilauTsjkLU+pfKuCXj5VdaQd943EFw==
+[+] Invalid_encoding cmd_msg: encoded_append_b64_strip_eq_return_1.1.1.1,AAAAAAAAAA, SPA packet: /F17ZI8sIsATtaqe55YH0fzj+r51QTSVTKGvVnqe6oeWREnocIYNuOzmp8qj7bPniICHIRwT5w4yFfXXxE5Rj59sHpcaFHz2MpIxcj3snRyqKl/0HavXIHnOya7m37HG1ElykPiDFZEzcL/BZXo4EAq5pFgeUD9nL4kvVv/39VZRzcCW8cH9xS
+[+] Invalid_encoding cmd_msg: encoded_append_b64_strip_eq_return_1.1.1.1,AAAAAAAAAA:, SPA packet: +BaJQzglHhIygQcH2E5HH9uA/WWdSn5LLM610SXB3yimEVJQt1dNnwngTo9PdG1pvWcVfsRJ4acC2GIgL+AmUcJrAg+DMgNQz6EeSLkJx1bvd5iUQibOLRte2IoMJqaDo7Jn8d1ZBMMCXda6GuSSU4VMZJysya8iIIbsY1JbLxDvBMnGylD24v
+[+] Invalid_encoding msg_type: encoded_append_b64_strip_eq_return_1, SPA packet: 8Ebe6zt0BRfnBsMfQFEWXIdr5RLtozRhgktQKrX7neBO03gdi78Mh3tbSuy0EAYl2pBYelbMi1GYmz4cZIBxncg4JMPe4byFFH+lzsslR5cgi1Enj/9sdVdLJfPm6j/jPQUudL19crvjOEnQCG50+HfIDfzWakJvA=
+[+] Invalid_encoding msg_type: encoded_append_b64_strip_eq_return_0, SPA packet: +kZTxUW1NPStcYWK536dRwMjFKgat9htJvjPS3wwokIIk/5ulUDoAz67o2s3mAyz2JM1VgFwSzJz3yktyrvXJ3T+7ygfpTqBCqwjl4NOCkGzO8dGOpQmNOSP4+gKQl3CtkZNI8H3qZzalDFLWk1JXtwYmCmr3jwGA=
+[+] Invalid_encoding msg_type: encoded_append_b64_strip_eq_return_5, SPA packet: 8ZbfsFHV6ZIfSaBYarZKJ2nNU0NYZcynVR6EUUIOs9I2hcCUMfKBXX2ULoqLZM4qEMsAJN6UF/uCpz7MCpfPTTxpLdKgtQAqNOPwFgI7H1eBHe7NInDfi3qTp3+434hGI9Et0OhabG0FBmze8EVw+wjQW4jq7XHtM=
+[+] Invalid_encoding msg_type: encoded_append_b64_strip_eq_return_2, SPA packet: (NULL)
+[+] Invalid_encoding msg_type: encoded_append_b64_strip_eq_return_3, SPA packet: +Q5Th5Xm9QpLcOFL1Wy8YgdoJJASmR0BlQy23nsZ6xDNAsEHaWhd22MHrz2slv1dHmOYU6lMPaYkkbY950nYAcUS6Ho+mVYY6FyB6opHL2EgOw0HKu2KvERlUCHVCt47JruCjdFdH+ITA/0LuQqpPyhJcEIOeG770=
+[+] Invalid_encoding msg_type: encoded_append_b64_strip_eq_return_4, SPA packet: /Qu3EXTwAfxFdNsBFTnOWT35slJy1oBfS9NKaFhLrUiBT+nEX8hLFvR4KGPC6Wg1E4U4q2cjfLFLhO3SanE0UJwScb6nidnHu3eyUnELan7v0a0BL5A1NldlB+Mwz+yqq0KW7hPC+3nrZDENL/uPGBSgvb0XfevQE=
+[+] Invalid_encoding msg_type: encoded_append_b64_strip_eq_return_6, SPA packet: 8qrlzmOu4qfwztgJ1OZHDO5FN1rg9V7EiV5b1oOowrP3GjziiTXJq2FjTs3TUBnyXrSLaNFJf8MF741Q6sIGPyA8efEQUOi5Rpt4azvFg3/UItdPHDQ6lFDPvFVdZhEElSDAmGMadvklUbJ1VTV8lJGezISk4WpS0=
diff --git a/test/fuzzing/patches/encoding_strip_eq_return.patch b/test/fuzzing/patches/encoding_strip_eq_return.patch
new file mode 100644 (file)
index 0000000..3efd739
--- /dev/null
@@ -0,0 +1,12 @@
+diff --git a/lib/base64.c b/lib/base64.c
+index 824a519..952b106 100644
+--- a/lib/base64.c
++++ b/lib/base64.c
+@@ -115,6 +115,7 @@ strip_b64_eq(char *data)
+ {
+     char *ndx;
++    return;
+     if((ndx = strchr(data, '=')) != NULL)
+         *ndx = '\0';
+ }