added fuzzing encoding packets (extra colon 2)
authorMichael Rash <mbr@cipherdyne.org>
Sat, 27 Oct 2012 03:06:09 +0000 (23:06 -0400)
committerMichael Rash <mbr@cipherdyne.org>
Sat, 27 Oct 2012 03:06:09 +0000 (23:06 -0400)
test/fuzzing/fuzzing_spa_packets
test/fuzzing/patches/encoding_extra_colon2.patch [new file with mode: 0644]

index 701c98d..67c1baa 100644 (file)
 [+] Invalid_encoding msg_type: encoded_extra_colon1_3, SPA packet: 9dncfOufp5bLMMw8xu3wXAYPU2p3Q+cze2UUiz/20v7Djw8U6j6x9FO2ECo9gITS1dkan5yzC5GNHW01HP82/z+YnWDT7bXafhb5yeT6K8EsCwcN7Gf+yrw2Xf+qsg2+cnUOwDnp8TQyqgwX8xJtSsnPWbTTRaZP8
 [+] Invalid_encoding msg_type: encoded_extra_colon1_4, SPA packet: 98C5aaw2Fz63xNcXdhi9GmJbWaZPO4BayvtfILyW4DiRmm3qOAQZjyfuIEJrxEvLL1F4/JZLeUysBGHuvab/fq1cidpuk9FBJqMfs61se55OgBc8lGa6kSLX7JbvA2z9XHvL5JLaCvzM2CpTkTUl0wRlwxPZDUUfI
 [+] Invalid_encoding msg_type: encoded_extra_colon1_6, SPA packet: 9CxlGjInV5Fu4SM0vzanOVp3mcy/fkfhFSi/Rrm5CXRPaISFTcKqRgp0h9Lzd6SOVxvdZzWeXOjFW+SY8m1PXSXkKOa5UKkntjJ7Oiu4RRVAErcwf3cQ75Ww06u8E5vPbQ7ki4hVIUi9RoVKN9CY9k0KagELVacCM
+[+] Invalid_encoding user: encoded_extra_colon2_test, SPA packet: /DL3Q+TSnVYepeIJlZNojOYW2iaO5S5X5BCCINHvnFo4g6EbpkjEL/t3tN/LDAF/ENMcUNhNPSq+MHGYHe0G/RIzO1Xhx9vOdOtigwbi1TiMhyd1OomPCe9v4Jga1mGtVJobf1nBTedkn/KwesNWaaZV9oJjotbBo
+[+] Invalid_encoding user: encoded_extra_colon2_root, SPA packet: 9xNmtnXOMFxD/aFjfXENWhetslgt/Tr92Fe3PM/XjClAciEW3WEGfBOMfhXGkXNfe4CfvLoKmeyF3Nf/RbVXUyaDNsHS64lulRk9fSqeenq3db9PauSpoQJ54k897yO0k/k/CNG+7xLmy+vkhjOq2Dnter9zSBKCM
+[+] Invalid_encoding user: encoded_extra_colon2_mbr, SPA packet: 9ZSrAWF3spbEtsvuJooYkmTRaCQPDACwfzrGTycYVMVas1tqFQK7+mlH0a6NjR/B4DWjQKN7aZop1xC53fTAEbRStOEXi/4T1sNTGE6N9xD1AKHzdQULhiDLJC+a4+VQBr1dBwGZvmAHfREryPN5f/0woHDEnBCq8
+[+] Invalid_encoding user: encoded_extra_colon2_test-test, SPA packet: +WYaPgegKl/Tc0Kge9+5X35mWXSPTpz+FErauuEdMBMuzvdySG71JNJgcbiWWVuBP0xI4coyokfhGUiUOJXC0L/qU72diisDw0ORSElmaOc5ioX755cvNYZCLzWtqNhgCMgVYFKLldTYrGAXKreybAgwJZIrD/8d0txEUbMY2RAL60JWlYS416
+[+] Invalid_encoding user: encoded_extra_colon2_someuser, SPA packet: 8EzDmC8/gXCX/16lqbnFQUzgaiWniW5v9Bh5nCWGhlLBg5bbFEcaySxsXxyXwgqpaIyvTG42vMO7tSbxERZauPgtNLmNlzB5DjzDDTuJSGFPKzYK2hWGMAPbzxNh67kg3REly7/rV3pvS+RhhzPbJlszbh44blJOU
+[+] Invalid_encoding user: encoded_extra_colon2_someUser, SPA packet: +3A/w5ex6bS9+7HK0n/aSKcuhq+UtbnA5Ysyl1ExctVmWpqGNvV1rxH0xWvdZJHQLfbto1LDT4co/Yh0aeBBfAsImVPxYb+kM6YGXGDyavbgEjGANu/YaECjyRKtDGhS3mc90sJLhA1JGSkocDQBaiLtv9rGaDxNU
+[+] Invalid_encoding user: encoded_extra_colon2_USER, SPA packet: 9aBNphmjjm3EUYfLYN+CvZU+obfzQhRvXuYk/TYsTwPzuFd0W9AwqVYepCnXK/amw8vod5pr6Y/HmdYBpTvNSnJA3e/wfBNA8U5i9Br51a6UChPw7z0claGQ8l1QDjg0xI+WEJie3mzk6gDMDe7fYlbu2A5menBZg
+[+] Invalid_encoding user: encoded_extra_colon2_USER001, SPA packet: +eURPfNLOH/XSLOLHV9jG9Z1EXAC1pFe44y44oBlFEfMkpyk+pQiRKcRddI4EQAzEgf0By8kClLhcJTJSAGodrM0ZCbyhYfDabRDWg1reaHOm86WcpzvXitQlEC6Ug2r5ugl6bBjvW5m3PIQIDzXfDfFtnKcCoLWc
+[+] Invalid_encoding user: encoded_extra_colon2_00001, SPA packet: 8vllmEnxv5uyX8D4j+pnJxnmdOTy2/KPGtsDLrKZl9X66dFRBNhmWStYVLlphnQeL23DYRfuONtHWni//tk0GteEkwtQRDrMUJesOpeUQjmIuiKHNmUInwk1kV9E/Goh+gXw2v84UCQ2OuBMEQCmCiOO0rInL4SlY
+[+] Invalid_encoding access_msg: encoded_extra_colon2_1.2.3.4,tcp/22, SPA packet: 8PtAfHMwlWwkUEREPk5jh6ntEUj6tN2X7uL1C7CfYn58ibE96Gy648DYS+CqOJuARH+nPzIigl0irctdy9gpW/TVQx5WM++3cXobXNZmUxrRgfEoU0h6TBij/Yaq6r0drfP7Ij9IvS4+XXcv5vpOmon43HCxurpgM
+[+] Invalid_encoding access_msg: encoded_extra_colon2_123.123.123.123,tcp/12345, SPA packet: 9YfmyuA0xePYL7JMmr+2Wghzuv16BaqvKDLXLwY6ihsvOBTDXIbWCD1TYef/xk2UhM0NXijbhll+xPkcV26BVkgj5C11ir2ZC0uny+VqJ2ynDg36inqjvGljYfJ13vOYGkU4VQWWturC6yofg20J2iWMjwQZo1tIVHFvRVVnZIH/OJ7MAoSLZz
+[+] Invalid_encoding access_msg: encoded_extra_colon2_1.2.3.4,udp/53, SPA packet: 8jXre8fltrxnaAkSCdlO88vSUq6iDOla5BKRsLX1f3Fznn7m2luGEEgGp/EpMSnqiG29KuZHp7mEmfPTLcT4hs0u4Fb/arz/vUL/YkBa8KK+pM9SHku2u/K0cGBkN6466MQRdb1XuBhSQxIi7qcPthBrnHdvY2h0I
+[+] Invalid_encoding access_msg: encoded_extra_colon2_123.123.123.123,udp/12345, SPA packet: 8qQFNwiaAeMGowliu8CAG4zDg0uzYuXC6xhG8Wt4bcKoUQlZlJhHbGImqigbjRopLE4XchGkY5fTli/WvB7kmXHDCWo1TIKdnRlf9PJCUeI+K1mClBqiTDOpjH30AF16Rh2fD5Xn0mmRmwPw7Nd9m4TIb07HCVLxBnXr0H8gos95+gx0p9VbwZ
+[+] Invalid_encoding access_msg: encoded_extra_colon2_123.123.123.123,udp/12345,tcp/12345, SPA packet: 9hYC4CtiK5OqrSQGHb3xpb2lhnbmqstW8mIPYOaXtdz58ZqzyPy0v3HJE4MgwYWtl6t3530YxDlbTES+IQAId0k1iQC4ntizSuCqXdhK8WRfNbQbQ8ExVpkakYKmD088nKKGE8tBc8zdMzQoSvdUw1a6jcfyYgVxC4TziGQub2RhFKrTIdCidE/X56vlGzRWpHgvZKpM1loQ
+[+] Invalid_encoding access_msg: encoded_extra_colon2_1.1.1.1,udp/1,tcp/1,tcp/2,udp/3,tcp/4,tcp/12345, SPA packet: /wz+6r9lQ2G9R5HX/ZFgqNEnZ244ATnqaL3oTra+qS/+47H4t41qy6bGdwJy7LcDB6+fnGTAANybhr61xIpcpKfv5nv4RCYNAkmFHgEPOqtPNeZLpwn0ifstpW/jKy8w9rSVug/Hewqyxa2KoLbWr3bUidb3BIoXEX3c2DpICgxXKptxSoAOOTmPJdRTjlZhTCREQNfc61Rfg0kAAy+yB4O8R+vhvnDpw
+[+] Invalid_encoding NAT_access_msg: encoded_extra_colon2_1.2.3.4,22, SPA packet: /+tNFEoDDeoxvHgY04Tkuqr+xCT2i5WgILxLrfFvzbUUMDn5otl4DbA5nQAJQ2XPuuvVDY/X3IRWTNC7p70FyQ2a0QLZl1Wx872LBGRau3puqOoIy/Uzmd20ubgsN2PkLAjXE4jSxJoifg+puBhYx3egIOc+DWg/bKifjeYtyPRzWglKoOMZEa
+[+] Invalid_encoding NAT_access_msg: encoded_extra_colon2_123.123.123.123,12345, SPA packet: 9M3ZfZP1NXIdq3sO/5x/6p/S5IeZ8r09/fri5+1UFe0kbXbcUjJDg9N2EYppUkHRI/BdDKr/DWJj7ldY44HNvSI8BYJsNxpWnUTsOPaCRNfpW9UDFgggL/DBs2Ww3y5TYwGauBrLXlsn+rYIc2ivdJVKh5zS3LrZyV4SmjfdMlzr5uQyp48/doROZX7BSGxTKMUCPGHPV/QQ
+[+] Invalid_encoding cmd_msg: encoded_extra_colon2_1.2.3.4,cat /etc/hosts, SPA packet: 9ccNtEZAZF23TPqBB6wrT5iau+35NOgmEZ7R+RoOJxrlLw+kNyfWkeqZidhmVuHOIIDg4/W/P9QK6jur8O4NPu5WB/nZphNr50ntLrwiquVkMSmnd5Apkw0Yps5iW3QiquZ0RDb5xwbOTzgfPvJlyStCiWgNiL7ock3mjZYA5gYF3BsEGEbldJ
+[+] Invalid_encoding cmd_msg: encoded_extra_colon2_123.123.123.123,cat /etc/hosts, SPA packet: 8EV1uKQ40qxZmVJNDLyB+VupkCcYztR/3uWw/tf17pSVzZXXWqnYiBMBBsp1eWJY+8C/Jv0vV4XtQvSHz+ni/t9JVBE/AcbpqJjHdWz+ifNUvib858w+0Oicn6Vj4z/9tk3hcDIAiFUaFX5GUfBB4skRodIGMfQmucGM+ZOq+4WtC4xC1IhCht
+[+] Invalid_encoding cmd_msg: encoded_extra_colon2_123.123.123.123,echo blah > /some/file, SPA packet: 9KdSA665GzKyKv9sxNNhR5bBQEYZU4d0G45IKyQjfxVs3bftXDnTufxFB9zxpYTTwMb6d536l09x9aMxmOfBT9NfktVytRvQQ5790JHcDqJX4X/W0TW+bgrbCWWQmmf9tDUq8bejDFkUZKsm//ZNldTVbg25R3DTlQJch8FzNcCgzSN6Xr5fMajZDu/zhK8O3cmoGSJcphZQ
+[+] Invalid_encoding cmd_msg: encoded_extra_colon2_1.1.1.1,echo blah > /some/file, SPA packet: 9TRrHnPVGj8FuCvyzrSVALOwc6Z33ABRmHnerc/z69e0IL2dQdcDhdamC7vW1a4JIaEor1LyvL6NK4dSIWBZg4Q0dsna9oX9FSGBnRBFWLIY4wmtATrBs6Fq1lv8B6xrdIOPmwgSt1besgY6qa+oTKMLTTvA4PdMzzHGbtW7KBJ9hO6ZToWDaZ
+[+] Invalid_encoding cmd_msg: encoded_extra_colon2_1.1.1.1,AAAAAAAAAA, SPA packet: 95C/QLE/Q9I/n0lVcWIWOp7++tlif5KFHJnd0198/AtQzTwYL0K/oP49RGyLkmUgNihjbURa42752mophboAPoGtzwFusjVCHlvdNk7NL38n9g92T6tqwp6rvdE+fUIaQTflclL/17uwLjg9qtCz23/hLgItaSO4Q
+[+] Invalid_encoding cmd_msg: encoded_extra_colon2_1.1.1.1,AAAAAAAAAA:, SPA packet: 9FjXjRjrpj+q8YCUP+WtnME5+0tsCSMo1okeRtYbCqif5I4q/gi4W06lpHKRAqVhVN2bbIKgQWF92HA8nzH6Fqi8AU9N+Gm3Q0wUyB6+55XXmSBKz5Pt7fISr27vEk/IxVrRGHfBSD+lvUvJXhQAzfPiiEcCmmm5s/PQ5I686qpzAkUF68Uqzs
+[+] Invalid_encoding msg_type: encoded_extra_colon2_1, SPA packet: +il30RXtmVGERuzqr2Xi1LQAWqGeD0UtXsxLUjyl75LgOgU2X9vBrmla9bYnApJNmUrTOtUfS24iw04xPrwIT28XU1gDL4a6cZOsfPokMz1SBngiU2TMDoZGrMgLZ0TuOHWhECM8fVHeoa+Mm6Hdxn6rq69vlbRj0
+[+] Invalid_encoding msg_type: encoded_extra_colon2_0, SPA packet: 9rU/tmq1tcrAnSYDbRp2fl8m/dlo8EYDH0IZahc8RL32+dnK2qJ0nlibsOlhCJP3Q0GQ9gb1YA3wf9Fu7RK2gmPEramvEComXICjw9dwOpL92pAw6gUEBPnQXlcJ37aqSOnhx3VuzKa7/z22aAXcQjASxPKCyd/qU
+[+] Invalid_encoding msg_type: encoded_extra_colon2_5, SPA packet: 97koTSVYY7kmk41T+nisq9FWcw6X2sOgFtg+lBlnhL1xJRbrtptFzMCp0vGbHVG4YxYcBOxN1f17t2pX1v8a4L+s/PXpWqBE7r+zZA9/NhpQ5yDAh/AbeCY+upcFXE/FZOdts0DPwvj3ShWvKpqgjKTqmEcI7GZtc
+[+] Invalid_encoding msg_type: encoded_extra_colon2_2, SPA packet: (NULL)
+[+] Invalid_encoding msg_type: encoded_extra_colon2_3, SPA packet: /wN7LQWA8ORK61wzVSrxuqVSVhq1AZNluLdF/PMqHx5Voz+0hdLx9ETBT5OxnkpXWlBFrmMBL/8WPh1z6zAZ45oI/G0Y83v10ar5wagNkEipqffAmCpkeOV2EwgVEwV+UQJbmOFcCTOZYE+Duq8lX4WqND+vBLfoU
+[+] Invalid_encoding msg_type: encoded_extra_colon2_4, SPA packet: /95c9RnzycDH8rxKB+SEKC2GYPhBLULCJrrH4Rvbl9j2D7FhMHPmGzQoeQsWh9+jlntA72owuwMUgLogzz/GhEINdECjb673DNeTNaQWC7/03AuxQLbS4Vy8PxVamblIfytFvPgwzpUQcd20HPllB2wspnwj1axd4
+[+] Invalid_encoding msg_type: encoded_extra_colon2_6, SPA packet: 9k7RVq5YYBCdJdS8s4Pg78aK+4YFQxWD5G5X6mdHn8SomV738LDM3jiFucnXNnKH1rLrrr3x8QZKf5BDW4OhD6oHHGQo0/X1giTpKKqdpCMbU9v/aCGTuwJQoA8L8BiCdEjuWzW+apbfGx3VgmeUxHm/iI5zBimlc
diff --git a/test/fuzzing/patches/encoding_extra_colon2.patch b/test/fuzzing/patches/encoding_extra_colon2.patch
new file mode 100644 (file)
index 0000000..9ee984e
--- /dev/null
@@ -0,0 +1,13 @@
+diff --git a/lib/fko_encode.c b/lib/fko_encode.c
+index c92d421..ab150df 100644
+--- a/lib/fko_encode.c
++++ b/lib/fko_encode.c
+@@ -115,7 +115,7 @@ fko_encode_spa_data(fko_ctx_t ctx)
+     /* Add the timestamp.
+     */
+     offset = strlen(tbuf);
+-    sprintf(((char*)tbuf+offset), ":%u:", (unsigned int) ctx->timestamp);
++    sprintf(((char*)tbuf+offset), "::%u:", (unsigned int) ctx->timestamp);
+     /* Add the version string.
+     */