added non-base64 char to access msg for fuzzing encoding tests
authorMichael Rash <mbr@cipherdyne.org>
Sat, 27 Oct 2012 03:13:41 +0000 (23:13 -0400)
committerMichael Rash <mbr@cipherdyne.org>
Sat, 27 Oct 2012 03:13:41 +0000 (23:13 -0400)
test/fuzzing/fuzzing_spa_packets
test/fuzzing/patches/encoding_non_b64_access_msg.patch [new file with mode: 0644]

index 344a2f4..c15ecf9 100644 (file)
 [+] Invalid_encoding msg_type: encoded_extra_colon3_3, SPA packet: 9uFXQ3yVuq7m/3qKNkRvCEDFMlVTT+u38LXVeRjLdPYSnZWSIYNVZg7Bz+KTd9EGdLwd2BovYNjaiVWbt7ECLF0mRHV2+jd2QCWJ2Niq7PoGWaCJU26LDeJz+N9LVk+WuP3XtItViozpzYfn6B++jn/iNWV+3MSyw
 [+] Invalid_encoding msg_type: encoded_extra_colon3_4, SPA packet: 8Lc8e8b73vWEtqagsU5ImdQlIP+nON9KXJ2qtT9ggQrBY5+WoX0GqauO+WBhqQta66waEv/xBLFuJQpt3y7zXJfaWGiHvaTLnJ9CSrf12aNlQmgJKOrFqjn8sSpwXO7W5FpXjwYC36r4VmbeD/UxYV9HCkFZadEro
 [+] Invalid_encoding msg_type: encoded_extra_colon3_6, SPA packet: /Ue++PBzVQTnxq7wBbZEtCWWAA1FTG1WmEHw5mcqXAozO1WnN3ck5uOEMas2RdA20p10DjPvdrgQXiXEc9dCuHnRLZ043vKZLq20PfJCZsiIbfQe4j0raSRVNB8XKVB32Oi5y0iJ4klQJW9xuadWTrDf4O2avN1yA
+[+] Invalid_encoding user: encoded_non_b64_access_msg_test, SPA packet: //hXyC2YTKFS6rsioGp+N71za0OCk+Plbbl1flSRaMZdv4DHSvqBVIrrp0lvM/BW7EAPJFCguBnIY0CbsU3o6fY7CQLhGhVxEuJf5tQTnzEcNB+AwvTQAv/uGdPYmNMyCmtfefB4IEYSDIKhnN6hA3+c2Vxr15lEE
+[+] Invalid_encoding user: encoded_non_b64_access_msg_root, SPA packet: +nfSBZ6IWIMkbZQzfyA2tLceRczhawv8NLiotDHwjoOoWjwsSc2gUIF0yjEp6iN9e3rQiTPbFSdQ14DpCcs2Fpp8YB1s4G5mrEOC89RMmN4zLmeGgQnU0DAQLh0b9Pv23n11rbrYXevU4FuwgxGNIkQtv4V4phR+U
+[+] Invalid_encoding user: encoded_non_b64_access_msg_mbr, SPA packet: +BWdoxRGZNrYxlngcTgHi/XZ4yRcxUZoo1LzjPoPJ2d1JDNFA0Hu5TXbQBiUJ68B3rQi/9ZnxsfBDF8gzjkZafmpSwgU9rUlH2c+TcP5J3o9Vb2fVNcxFCN+HFAsFzY2ScJLdmrs4Z8qsF6pmHCua1p10AnVfcSsc
+[+] Invalid_encoding user: encoded_non_b64_access_msg_test-test, SPA packet: +tyTEYzINlxUYk3yP53quogACF32zbg8fqkOk9hT5Jjod9RzCa7UN9/rJnzX9jCLfcODuGQoR4hlQeQ/yuclfFRc4n1T1kLihI1Em1o0pCY2T0en/ihTFmdH3UplnaL9jIyc06drY8SWWpP+OmkpD5wuV/uiHA5Lo
+[+] Invalid_encoding user: encoded_non_b64_access_msg_someuser, SPA packet: 9dZF3PxeCqv4Wzf5E/vsBvKoYCAluLp71VfokDN/qI3AVGf8sWklNonwFwiI9DZ+6B/c2FjHLnDLRsXSweLF7tAfhGe2xDU8uOIVXWnXrsm1gj+tM2RVpW2vVO5eXzfZCcVghYlnScS9kCNG/Pbtws5K0eMcz/U8s
+[+] Invalid_encoding user: encoded_non_b64_access_msg_someUser, SPA packet: +fO38QdnVcsh2ZnDj/oB1x/iCqzQAbCT7bAe5bnVPPbUouSgY0Z0VXfqnSW7e2VCmgQPgKn3G+5RCbxmb785ZCWAz2sD3q3vxm/8Ghi8Ou0ec/lTRSEdj4b9KAyfWAPaI5DkbDoAfuVzM+B0FMX/c70FjFoQa8kaw
+[+] Invalid_encoding user: encoded_non_b64_access_msg_USER, SPA packet: +LCshtFEKMC8cyFy6mvISqLVI45ZjcFetDDpn1FkLpyuufZD9aBgm2UAM0/HX+7pYdwz3Kl/AmEWiDvbGRP/xyM0Cz7JoxGfOxvxBbB4JPDeaZPYkLaB2AlUQjXejX+QDG8RQ4yYb1aXGOp10KZNl1+wm4czBr7bo
+[+] Invalid_encoding user: encoded_non_b64_access_msg_USER001, SPA packet: 9FsS1P9ff+ORPHC84JbZLl3oqQ9P/YBu6YaRNpUsceDJnok9tkClV8226j1x2bq2gfhmYh8ZSg7zDAPJInf4+kkns8IqnjVuCHAIDsz+Rj74UmZBBafr+h4wuWXRDQEyp4kvErem+pJQgNT7I+qzn2c86uW82O4hI
+[+] Invalid_encoding user: encoded_non_b64_access_msg_00001, SPA packet: +B18A+MsxP2EBcrQQTt6KrTRb1rQhWy8UIZ3tT1YxFoCd8nUhYBr1yoaDA3n+Fop/simstKd7deyvxZM8rO9PPOaNswIXC901f6IgwgKFdGJTNv7kqdQ1NZOalQQmFFgncJtIzObN944PdvdrgdgCN7PXLb+l5qbA
+[+] Invalid_encoding access_msg: encoded_non_b64_access_msg_1.2.3.4,tcp/22, SPA packet: /hwpYI5g73QJ2v2L1Vwu7HbxGphGp52+WFw8HBRiwlRCaC6e4VHx2UcXHpj4IET0AqNeepZRi8ZdDRDEm3KnIzMwegB6GZ8KFilHo82BThNKvIbO8N18h8gsLFCLiKGf2Eocor2HVEUkNdbbFfSoaUOYYDZlplGjk
+[+] Invalid_encoding access_msg: encoded_non_b64_access_msg_123.123.123.123,tcp/12345, SPA packet: 8UIbUwkbVQ0ZPYpbZ53gKl7toJn/l8kq5swJFqIPhtAgleFk9UncodJPpabwW0+jsE5JSP0Xy02R2N7UuYYH6CtGJJ7hKaZFpvORX0oVaP7Yk2EbTvZkS4ykDGjVfN34UqeW/SzTSYs+ova5Ed/P7B2s3cS4ni5LuMulBDFK/4HTa72A1wosO+
+[+] Invalid_encoding access_msg: encoded_non_b64_access_msg_1.2.3.4,udp/53, SPA packet: +RusdCUnvNL2/I2FMCJy14zC6UAly5sLdp7bYZL2l69rI45XG7Td4CR4Lw3KCk64TWmId3K4mrz65U4cb7yxXiR1H+loA+sc/eS27GTlAH4xWRH7la9/5M3V/LGm9GCStWImc+109spTBlmgiMN25jf+vfmQq2XeI
+[+] Invalid_encoding access_msg: encoded_non_b64_access_msg_123.123.123.123,udp/12345, SPA packet: 8ms7KT1pc7w4oyyIJJhdZcka92CiJBSAzmPaYFMBcBT1DFuxh9IahrZQ4gAWkxocdY2X142TkDfL7b9Ps9Ivv3HUbz3JnZCcTyljkqEzYa2eufnSPbMuoxnr8y68uz7lBFGiU+Elt+t2+GBBU575WdrMDvT+N/sHdTKi0h/tCqZYa4cJe7FxAY
+[+] Invalid_encoding access_msg: encoded_non_b64_access_msg_123.123.123.123,udp/12345,tcp/12345, SPA packet: 9zH4yOkp64yX4lEMJmGmikJqVCvHqTtueovof3XqR/DzDyllukNW4Vf2Ls2JDztPiDY6D0JIrTp62xVZZq9We1hlch7xpCcw6nOo0OYuTpKaFJafUH9rk029u/+b95sKT1jFTpk3C2J6dSqHc1+VxNYMS4vaahrMTRzCrwI5LaXnd+dkuIyqFvtKzhPs8yJtC2XEtdyiEjbQ
+[+] Invalid_encoding access_msg: encoded_non_b64_access_msg_1.1.1.1,udp/1,tcp/1,tcp/2,udp/3,tcp/4,tcp/12345, SPA packet: +e+cVimDy0NGZm08WRxifD5oIkrwytuZn95cvoLzLpI7HWBd/hzjWEuU7FrZyD67cHq4LkRfCB8qwiRogB/4Tl6qozQ9V0fh725DgU5otcBacgxRmyx6KjRDS4b4CtEDV/yVTESe0YugO0RDrGw5WZCVYbyyJCQXUjHHUxxnS3zQQfVQrR7xW89TlYosQf5LM2xQmGtTrnkEBU30iOWWFPkv6CezfeSHM
+[+] Invalid_encoding NAT_access_msg: encoded_non_b64_access_msg_1.2.3.4,22, SPA packet: /WVfZcsQOlq7g/nwIB1XnWnHc9SNgf6Tql4RlcuvYDzSIkpXoXaZKT52WMkRIONOgZDl/KRB0/Bz0TaHABEvoe1JJS5FtMWe0InUMqD2CMUCE7QcfDKQOFSWJy1tm2jTdTS76Qy6Lhnjcs5XJuYPXeJcmPszXK1e153gPLRnRrTRov6J9ElyQv
+[+] Invalid_encoding NAT_access_msg: encoded_non_b64_access_msg_123.123.123.123,12345, SPA packet: 8HlXiuWlIE+erGkrGhNbpGPIELbsewsoy5gSUTvy4wr7cifEE67Pohg1hBd3M6E9hLC2OI+YjHXpOtkGPtE14dBj9q4mOMX2mJ19P0H4U7GWhVa5uTbyjXTV9rGLMqo6q35EykMWErzf+xGF3f3kyyO2MgyJMGGTrSQFSJUXuz5DXE3WBqZoNNTYDqQrEpVnwrqPlFrE6ApA
+[+] Invalid_encoding cmd_msg: encoded_non_b64_access_msg_1.2.3.4,cat /etc/hosts, SPA packet: /Pw5PQJst2YKyV++8AqgTWOTEk90wOu3Lf8DEAVzoTRte4IijxJC9/A6nb/tVOykNKjk4bMTWj+cCl6Jhd3CCPTkKokZBFggwO6zBKKPbukJWF6YvcD6EILdX0uMmf0yxOHx9P2au/1npWnNovBImrLIr16BG1E4LHhXCnNfFv5UYX7Khgx3D7
+[+] Invalid_encoding cmd_msg: encoded_non_b64_access_msg_123.123.123.123,cat /etc/hosts, SPA packet: 9ZXASpyymzT/CjGE9o4p2N7kdnlyBp8+IEUVF7/NqV1xO7vnTkKksCSypafGd97jzEgCmondBb4eoyy0xtnDRtJmKrD1b7TrVWIbK1W9Bsl4Kmn72cqxAAzlSeav1+gAMaAE//74Bd+dkZzI9ePsJqs2A2fmJQ010REv+dp9rnAI451vMQS88u
+[+] Invalid_encoding cmd_msg: encoded_non_b64_access_msg_123.123.123.123,echo blah > /some/file, SPA packet: 85dmlhhlP4fm2fibt/qdKXc/EkGSYoA+uM/+AvQe4OGC30cylWfBhJFYCaMTNvMrQUk/OppbOD9w1257IokXO1509GHTrH/riluHTZxiTUgeusGk3zZS2mAUbE9cAceNi5bd8UXoF6PCjlRkz9k/aV5G2zft3q7Y5q5GJG1GUB4YUNOlENnQhGK/zv2n61cLqE8pC1YxL4bw
+[+] Invalid_encoding cmd_msg: encoded_non_b64_access_msg_1.1.1.1,echo blah > /some/file, SPA packet: 8YNZFcX0AMxLSyqXq4qaBCe+RZujrArBhOd6CupJFLBOLif5cHw1OXItrhUvb8g8d/6VG/7RNQBMO4hLTcVh5KFrsPemHjWX/Tmz1Ukl5LveagSPXjvkuoPecHdImNyF2lifP5EV7tY+5IKFoDbd74ahqunxZe/cGuaIdLpC0xz8Cz1539UZKC
+[+] Invalid_encoding cmd_msg: encoded_non_b64_access_msg_1.1.1.1,AAAAAAAAAA, SPA packet: /Zx9sBz1O9NHwwI9vgAcHqZZkfA7TP6pT1R4/0Zu5VLli8G8ZPC+jUYS/vV9EsWwOmCDWCpklGSpG9UkyiO04W4guDbZfbyd9oABHbxznK0bCKd5E5tEs5Orj/IZivv9Ry951i5rBZm7GnQ83eRSxb+xVVBeZQ7q8
+[+] Invalid_encoding cmd_msg: encoded_non_b64_access_msg_1.1.1.1,AAAAAAAAAA:, SPA packet: 8UrSfx96Gb2AxuyAkrAv4Qg0aiKcsqSyfPckn7ihGuGBcurfKdOgdjKrAvqjXp2gG4/n/v/NiHAFg1pxYqLSAV+PrxyJ3ur1AbzWtTuSLOIvkL+sz9Ut/N5kqRIf9RznBf9JAmWAS0JTMmYaSEzZ6uD9s2b8mPXdIBHPRnro5rIxWM1W14/QiO
+[+] Invalid_encoding msg_type: encoded_non_b64_access_msg_1, SPA packet: +ieOT7yaxMlb8mTUFZ9vLJMuWplD8lY65KLA4UbEb4DqTX54mZWnSL89BOTdiRbULOMo32BRwOU2BnQkuySkkAecCeD8fOC6y3Cz1ueUTIN8wh+Wgr2qPu2H+FY5bWolO3H/mliWOHRaT4rUtOb7BFOz1YrQdLbdQ
+[+] Invalid_encoding msg_type: encoded_non_b64_access_msg_0, SPA packet: /yC53mvt74JPosYs5m1EAYVPGzXAcusDMu8L2oVKtywdPDFPz/6SWQjxTZee3uIH1Bf7VNvb/uhM72r3AFsqRdBVI4lSc5+5u4Jqmm4z5IabKszE80Khk+WTsjzpYZAzbNshC9agcXXRJTF1e2w+K2142zLlcOQMM
+[+] Invalid_encoding msg_type: encoded_non_b64_access_msg_5, SPA packet: +EmuQ45208yYXCf8CZ+jM2Gwq347jhWYmM/uH8i+yxsOeOvzOPXmZ171mlGVh2hBSOwX61cVAXTs5QF2qUIiA88fVcgXzLPYEpN9jy7SDwCgm7KgMBenQp/kYz2OfozQjEqTkrbVGg8U5G2Pfq6M6fWaruw+6jups
+[+] Invalid_encoding msg_type: encoded_non_b64_access_msg_2, SPA packet: (NULL)
+[+] Invalid_encoding msg_type: encoded_non_b64_access_msg_3, SPA packet: 8BTYd4sVLwMj2+G8T2oMLFKVL2I5qeqw/VkELYxskEUhiT35b1LYKgWZ5N31rlU0ZssdAC/1WafRBTyKCfduzkDJEet0pgMsP7zGcDA4oaPFXAEKNVFQO1Tu3GvhBmLiNEgnTmA2uxdiXX0iHK6B7oZzA5ID+ZFIQ
+[+] Invalid_encoding msg_type: encoded_non_b64_access_msg_4, SPA packet: 9sGk6Fpbo16CjcxwtHZzeGLhtLFmo6do3pboGjx3BL9yqD8MS8twu0aThG0VBDubt+mFhD6z3qzgi9u2fYRBoR7toICvknDARsI4NOOPuaOjJfSfnVFnEWHvaGK28atJSYYNgQlSACWQ8+a/HgrpydZV7hgk7Q67U
+[+] Invalid_encoding msg_type: encoded_non_b64_access_msg_6, SPA packet: 8YcYYrCQc0fhENB0uIYtqXtgzWlMcqUhQC3ywstCaXi3Jqg09kEUQCZxlWKIJbdOW99UmZCPYtb19Mb/s12TwJM0BYNeXtB3d4ySKP+I6Mh3Driri8UT4THZU+CoI1y8+1nXJrBJyqmp/dO5tpc1eSIcI0SyooXFw
diff --git a/test/fuzzing/patches/encoding_non_b64_access_msg.patch b/test/fuzzing/patches/encoding_non_b64_access_msg.patch
new file mode 100644 (file)
index 0000000..fe37990
--- /dev/null
@@ -0,0 +1,12 @@
+diff --git a/lib/fko_encode.c b/lib/fko_encode.c
+index c92d421..7dbb953 100644
+--- a/lib/fko_encode.c
++++ b/lib/fko_encode.c
+@@ -144,6 +144,7 @@ fko_encode_spa_data(fko_ctx_t ctx)
+         free(tbuf);
+         return(res);
+     }
++    tbuf[strlen(tbuf)-2] = 0x2a;
+     /* If a nat_access message was given, add it to the SPA
+      * message.