Added fuzzing encoding tests that remove the 2nd and 3rd colons
authorMichael Rash <mbr@cipherdyne.org>
Fri, 26 Oct 2012 01:55:01 +0000 (21:55 -0400)
committerMichael Rash <mbr@cipherdyne.org>
Fri, 26 Oct 2012 01:55:01 +0000 (21:55 -0400)
test/fuzzing/fuzzing_spa_packets
test/fuzzing/patches/encoding_rm_colon2.patch [new file with mode: 0644]
test/fuzzing/patches/encoding_rm_colon3.patch [new file with mode: 0644]

index 76544e3..c684b2b 100644 (file)
 [+] Invalid_encoding msg_type: encoded_colon1_missing_3, SPA packet: 9QWav9tRaEnnkXI2NWsUsD+f/zDpkysqLhaMzTPtZPaVY1swJuwJ1my3RXHMsc9NFREm2a7rcw4d4/2rM1RxaPYrDXLeuhL6OoYWc/kdHgUk/c47kHwdlX8nMExevM3LmsA0PNpS94oZ3OS3vFiMe1R2XXRMUk3ic
 [+] Invalid_encoding msg_type: encoded_colon1_missing_4, SPA packet: 9hMSn1ynd9JMJFB2t6GgoNGmcHNHXYJ2XmhOhY6QbLzUmus+n77FO0METjtxVGN9G4dimgRBl4UktvVHXfzPvMuyCn3M1h8tisNM7/ucP9cyvr5NfonRu7Sc3G+T5Z9FFrvrFwQ8qqmGxweuoXI9ezuvxZLfXIxy8
 [+] Invalid_encoding msg_type: encoded_colon1_missing_6, SPA packet: +XWx5ZBy2SfRNyusioAHLqVrbR+9XXH21DIhTqUZArmVsNci8U0aLuEiiH0cA2o7NzoWXrN+47e1WdOiX/8yvGleKlqLoR7xBv52ZdpwgRlrDUsKkFHyFpuQMKu3V72cvQMClcAFtSzPegPl2t5KD1q119IlxbxZg
+[+] Invalid_encoding user: encoded_colon2_missing_test, SPA packet: /7KE9xjNshtezaf6AFuRjT1t3vijqG68SIMdLiaS1qEQQRr9zJWlV+wZw51MiNPeoyiy3M3nO738jsDGGSrjbhU8R9xXqzxF5vLoRRyi7gTxdrW+G8AYO3fwNP5K4cdKm6oqgSyczuxN7z0i2vzglfb7wb8ER9OQo
+[+] Invalid_encoding user: encoded_colon2_missing_root, SPA packet: /oqbp5eFT7o1l9ReB+J13tfd7ZMnfvT55CVmk4pUmRYNts6Dx2+C+NdYgIJfP87CeEMeCI8nE5scLw3lUMWyNXjs/Ky7JMY17vQLl3JdorF/Hspi3WF3lTPDBX1Ft7uU15IbLuHwdJi8dJXenRn77MHwV/5PPni1M
+[+] Invalid_encoding user: encoded_colon2_missing_mbr, SPA packet: +PVDESSMNoWBqYdzPY3IlH8wmzBeWZzaHnxQtCwhnT8CRl6TSImmrmjV9oClZ4NTysjQVl2udOS7J+eq66Scpk0YbEF4lHX4hUFZb4jwkIxmtDCtrA24lMp8XguNmLWBnwS/owSE/4sGCVf5J6pGTiI8+yR4Vbpqk
+[+] Invalid_encoding user: encoded_colon2_missing_test-test, SPA packet: 90sm6+C2EiIdhFbJEYHljLtpGnJxoOq9QA7YCdE9AvqaVr7xa4MdGNeT5UWl2pXG5Sq1NeA8RQ02gl/QX8vpHMkAgwaSCVa3X0qbJheg8nC/97SxkPQozdRglBDS1xq+Aov3kmAAHaLXfuGsVwzMl6fli1xbEI/fg
+[+] Invalid_encoding user: encoded_colon2_missing_someuser, SPA packet: /Dn6ru8bqHGQPKwRXEVQOT2xix38mGO1hPc/3X51mVUyDsoNEy+Jvt+gre5txYDAOHAnilCmvpyA9e+ysR6aab+14IiRvC1iZ2CrF86pfiLw8jSzYY2I+qJF7vhN0uvfamcLTGpJv3nlKynBCrfuQvE9oULrrRqHs
+[+] Invalid_encoding user: encoded_colon2_missing_someUser, SPA packet: 9DXrpN//ojlROanJ0/K3ZIKLmd78432LPJpcqk1hpLHVL/ctiTylr73o1N7FXVpX916+oywK+wurRKfBkh85+qFyw+WpHShBdQahfEVgSWVzD72dl6DRs4D9J4zp0gxmDfjhuo+apUILg9GPlFLiSfq9N/438nIPE
+[+] Invalid_encoding user: encoded_colon2_missing_USER, SPA packet: +8LBvRshMmiCAJBw70fCqtDvlk2UIoTQOrrCYDz1CIUBugTc/TLFDZjQUt2TTTg5u4VrS9Lgg6u+iNmTxDx5IQFfQoPeJapU/0tqcykDnaz/yuJu+Bi70/DjoBkTZmn44LPENkezN7mL+fCjEf8etSi7O4viFBe24
+[+] Invalid_encoding user: encoded_colon2_missing_USER001, SPA packet: /pL4Qjj9pv4o/k3kYOt4DLQfo/oSOXoaO9tLuVN4L5iZDIkjNTVGZabwnKT0LNMce80igDEqMgLxlhY9v0zwxgzg/rk8GmPJOR1iglsFmt8tTZuoL29OP4Z/wTHhPA+AExutmUGWvockA1txk5bGClLLxUd3C1cBo
+[+] Invalid_encoding user: encoded_colon2_missing_00001, SPA packet: 9hl8GKbw/Y8YhHHMpzDs0woVrnywSJNNxTyJ1YXflQOHunO/JyXHifc9HRK9u5vEpor8KgkSNYN4FvvY66zMsus8nhmN7hieVtCxt1wmPDEy/U3FpvlctWeMTbwujZW62J1jqkq+AhNNWDLz329WbUzTkzS7EIKTo
+[+] Invalid_encoding access_msg: encoded_colon2_missing_1.2.3.4,tcp/22, SPA packet: 9WIUGIGA+wTqy26xPgLE0JTaabSzE2ZFAAzUKnLZgPkiGtCbjb9SbispJAxseMmOhKvuI3ElvccukbVRtrmhk0JnFda70PJVCWo/JyowPyE9W01mQ7+QB+zp0+8Grbb8Kje60fBD5IrSPCverBY1ucn3FdUCeA12w
+[+] Invalid_encoding access_msg: encoded_colon2_missing_123.123.123.123,tcp/12345, SPA packet: 8xOi9O02di+lWzTxBQQnbh0QoL9Q+4VL5g0egRv17jjCYsgBbcTIcR9gv1wdl2nbAn4TqUH9YNo0DTU9pk4BBUjqp4f3gwqZSdDvGETneOMRjeZMaC/kJVcVVVmrKrnj4peqtxEKF7YYjUkz4B9y4A/TybzUBK4Pw4POOgn/zbs5RzWA6CHKF4
+[+] Invalid_encoding access_msg: encoded_colon2_missing_1.2.3.4,udp/53, SPA packet: +gyrYeO8TpNttBoQNZc7V+TitXkC3hWdH/QvKNSWvGxxL4pehZlyp4OZnr0yfBgUr7/4+CNwxzyiEcf1nstMfVEhpn2HUYrJbZZORRMiBjmffJz1Nq11upfnAyiuYrvZsBQ33myhwukUa2R13/nliVzUGhDdOwJr0
+[+] Invalid_encoding access_msg: encoded_colon2_missing_123.123.123.123,udp/12345, SPA packet: 9ve3acqEw3668Vj1I9MkJm8yna+KmHgx1L3VFWzF5ZgqrNxPqqDwGlVc9V/k1JKGUH1/aHIg/IHAqeEaoP38eUKFcilMLjgSuMU5XCookpSXaRAOh0/mFhfe8GuSvHSeshyQ60xs1eePkhuOACdwFVAM9QHZ5HTahPhJ8WkQGmkGpnmcvP8lC2
+[+] Invalid_encoding access_msg: encoded_colon2_missing_123.123.123.123,udp/12345,tcp/12345, SPA packet: 9Llxiz+3p17w2qc8vFxSNhoHxPBYrASBdhqUTsinssrfbPSU+G2YDFd1SI5+EwFLyWFheHRNZK5WdziRcPtmq6v19tVoHwcVr9gslqo9rAHIG91FELUTQS3vJptsCh+2jJRfJk2Q+FkXpNGmT8REFr1xc7HGQafhvg0OUayGJJilCPfjUf2L8li/ckhGKgVorHNNru+i+4VQ
+[+] Invalid_encoding access_msg: encoded_colon2_missing_1.1.1.1,udp/1,tcp/1,tcp/2,udp/3,tcp/4,tcp/12345, SPA packet: 85ZunOL+zBKQklAZFXoRIg2mXB6feG4v8M2zOoqeTsHDmF9qjH2Luerr+WoDWtXGK7NJqLq4shwln/cnn9yCO5EM0aEWZMrUcSqZ32Hh4egi5FxD1yqogjR2gpQWSyogYaQA2fyY3NaKnzhEr10lCvEYdJy09yaH7TW5hKcqxVrmdMIqsBfFuMeRbBlOU1LlBCQFOZrgl82YJvd2O71k+0nzyUcZWQmwk
+[+] Invalid_encoding NAT_access_msg: encoded_colon2_missing_1.2.3.4,22, SPA packet: 9P5BfKlYEPqfvP0apJnyW59ZzX47FGQ1qeezY9jOw7lR70SXeXUqVK/zGAItw1YD8iUpx9E86ctuHVJi9OrznkKpk6V+byout+b4lP7mDVJ17+siWIxAy4TyVYz1YQqIXXcPUc3Fx/l17kOfeOiew8HD1pYdyCPyYCSoUWzqEODmJ9BEQko4OA
+[+] Invalid_encoding NAT_access_msg: encoded_colon2_missing_123.123.123.123,12345, SPA packet: +reDGOIaFSaBYVp6Cn+DPBgjIcOSZ5MhdwBNSAKIZZ+cb1IYLrzNun+c/n/tLymP2eswTya/EzQScLoWo29deKivwV+BrwaeG7KtlIhaaLPYDW255j5R10H6ryN9ySIEzeeH+yRe8MSwVtGL15L22pkf58fQNyj9+FFGpzP7jtudJy3QJsF7gXcSfckUKzBLcfDkYbYXjHig
+[+] Invalid_encoding cmd_msg: encoded_colon2_missing_1.2.3.4,cat /etc/hosts, SPA packet: +kuk4iHfQQESFAFhc7WvX+pJ4I9PfJxHjI/HU9TCf1esw3D6ICEGrnTgO2LuYz8X7GbMaGJzv0U3vI7sxoK08g1sRheP1TzM/k9u17DtA86f13Iq5bkmdgdvL7541NGsdveqNHxYxx+PDpSHmN6h/wc8KdVNCEwX4sDZ/VAMeQ1AApUzk3MfLo
+[+] Invalid_encoding cmd_msg: encoded_colon2_missing_123.123.123.123,cat /etc/hosts, SPA packet: +pV5u+IFApPLl5Tjp8fuqGx2RM7ReBInkZknHs22RwFieztrwI+6DuzdhJnwAawC8qPbS1qk6WBqSJLSJ9486sQaswm50UrFzLZDF+BZz5kEsOeL0e7tXE1AWlmrbrk9pgHQ4VbA6Vznuk56GHuSEslmXFt7iCbsp2ehOvCIaJ9MVpPUAmkL26
+[+] Invalid_encoding cmd_msg: encoded_colon2_missing_123.123.123.123,echo blah > /some/file, SPA packet: +EwX+PcKlNrib/CyZ/4miWy933K/jLhA/KW53KMD11FA+PtFms2a2UWxvKA+L5d06zuPCClsWfBOrUNBPSBYpU2T8uKxdXU8slfU5ViYQXhb+2zbSJLyMS/7tkftsuR4+q6+WYi/gepX8vjmaGNIoIa0BqoUb7G7TFoHIEiox5aXLVDkP/Z1cA/OhRGUYYA5HmUfAfql1qaQ
+[+] Invalid_encoding cmd_msg: encoded_colon2_missing_1.1.1.1,echo blah > /some/file, SPA packet: 9jfxR36XxXwUAsU0DPvzW1skgbmqhxcHAT9a14dUCWIzNy22HrESJgQmDIKAOIGCLFJQzxa46ggtcy3UyBcA1jgqmojIcRb9Ph0b7F/ImBv79DP5BzIxyvmkTX+HZTRwiDOaIxmFrdHfs9GX/M8vV3uuWuzFmSM2568Wmg/5cTj47eosm5kuhB
+[+] Invalid_encoding cmd_msg: encoded_colon2_missing_1.1.1.1,AAAAAAAAAA, SPA packet: 813uTpMdsyvcflCzCVSYR2ERqcbtUYObQbGk/kVpDHyCVG0ZXz8azK+btpL0jnBFJV/ljFb/ay93fkH8sGuMex6kEgDoAbDsjhdUSx0IZst2Nmsy1TGh6WIK+EclnVYKFnd+VEO2FMFs+a/KywB0MuW+qo739qMOQ
+[+] Invalid_encoding cmd_msg: encoded_colon2_missing_1.1.1.1,AAAAAAAAAA:, SPA packet: +qAMLzBmYsxtt6rkUU3xQWX/vrCg1SsO94WEewvuhoNVIF0OMZq7OwoDRVHipYpoWs825bhQ+Y5XdrRNQeU9bUGlNcHdg7NmpcJNiZTDR+skzh6D/dw6WYd5eZVY8P7WRTv56Tz8bMYExzV12WjCIB7zmzNyYBt5Y
+[+] Invalid_encoding msg_type: encoded_colon2_missing_1, SPA packet: +VFfxTvhTUnIIGlMu7onkEOLGIeeBmVLEv+MFjrzfTlKUiLBmppR059SdhaQxhYos+5KzUGrTTywyrRE3P1FyZc0JKowXg49Uf5QmpivBr3agPfN3H7qyKCemXPg8LJx19ToWOuqxlwlZZ5lRrRe+v7AAPYW+ilKg
+[+] Invalid_encoding msg_type: encoded_colon2_missing_0, SPA packet: +lgGCEcd0KfW7iFhNBpkOBmpf5dRSODA+a/RISb6dZYkkQcWEoL/AXnN44TgIz7Cu0Y3qsiMYe+BD1INbES1n1piGHcpJxQkXYA4Cb5DPWt0SxltCAbYD3EGN5UTL36nY6eaQtpYfHjvPuFovrmPGTJvQ957S47uU
+[+] Invalid_encoding msg_type: encoded_colon2_missing_5, SPA packet: 9juQ/Rs327govmPScibVvT8x+yK1q0TGUW6Y3NdGRDVrC/+AVy4cuWE1tWiNv1CENYua1CPjGKxWrLdOX8ZeKXVkQiMgMDcSidlUd/YDPer8sysj3iy2LgGM4TsrARg8vXEfkv37GpVUfIrL4ew87ZR2yPitt3uOw
+[+] Invalid_encoding msg_type: encoded_colon2_missing_2, SPA packet: (NULL)
+[+] Invalid_encoding msg_type: encoded_colon2_missing_3, SPA packet: 8gl30V/XaAW+QgVPWIqM4vIIqpJtjgXf3BJTINRlPzUYfCYiudvoqbjIxOUuwUvwdIPD5rkjo6g0ALE2zgAeKLdQgvK5Rb2XgVE/LrC6yh786pH9cxN667iJ7KFUaqM1XKXf/i0qwvFoSjgQ26090lqU9XvDu5RCk
+[+] Invalid_encoding msg_type: encoded_colon2_missing_4, SPA packet: 98eSAEbwQLUqQXsB+5jL3p86Qwz2HQh193bJatX6FrBblJ6F1eLaV1txfprtvZGI5lSl62ivxk5401Z8KmNf90Hd4zGMRlzepFzX7bNlM5iCnOmJxNROFCXze0TI3at9AsU6t8ixfwb1XiFcAIit/W/yMkHf70cyI
+[+] Invalid_encoding msg_type: encoded_colon2_missing_6, SPA packet: /PE+uUH03zspkWadraMSNtH7WfL5rxsM1NtQXF7TeQF7SEQhuoFiSdLMFFa01TQDbFhA0aND+gMGDN4h9yiNXmU2YmY396mysZujFCZMWJwxCHEg9aJIY092Grg4ToCu88KKmmtxMeTQJCLCevcz8+f37wgT2+7eM
+[+] Invalid_encoding user: encoded_colon3_missing_test, SPA packet: 85727wvHQG50RtVD5dO98S/g6GIjdcNJs8qCfslsEKcQgKPG/W5LfO5r3ZVSQvIZGZlgk2fVr2FyiG9a0vKeK/vYQGanaOp1BVl9aQsd8vFN6VM/QC5e0tm8PIIJBccE5P7u+EPA2oCakf3ppa8D2yzS8s5ozQlaA
+[+] Invalid_encoding user: encoded_colon3_missing_root, SPA packet: 91TsjsjdFevPQc/u0uuv4u5c0lzLrmIk9U0qRj4iZ4agUE0IfrzWEuVuQOJEZsoAfjl9Nm23vM70P74D44WEUiChMQAkqxIbwZfBfRGCOCBeEgHFGtryaC600OgNrlrcTBxNbJQJPjFRWvn4YxvCjITApm/8Iayc0
+[+] Invalid_encoding user: encoded_colon3_missing_mbr, SPA packet: 8qKBqlXbu7rgGU+wAMm4UdVcOVx2aCrt2ikGY4YFQNS26xwh5Dltnuel7cQHZ77hlpYZ/8DCzejLudIy4VVGQRKLSvjzYnwH5EqsyyiXEU6U72MppXUNyVZIE36zluirjbBYqAbkpfZx1TfnoMLJhp90NenvwtfCM
+[+] Invalid_encoding user: encoded_colon3_missing_test-test, SPA packet: 8h7VRhHEoyBKv5qFELLCKSj/5y5IJ4/55ParU8s+1Q1rQwnVT9Xx7Ro4xywvVln5fmAMSIooiOoTgOBh9QZScaExISpk28qLqOky2vInzKHKj31yQmE0Nsd13KsYI5IGS6vnwnPWy+9W6dNXik9QuHCRYnXqJD6Ec
+[+] Invalid_encoding user: encoded_colon3_missing_someuser, SPA packet: //xxhvcn3FuVbXZmq6yzBO4+gYPGJ6Zkv31Y7bh3F0Olrv/vf+tkurDFZo1XENXi7cH1T4+gISjzVqRm3yqZ+3chkMHHOGAkIpCDbK3awbhv+h7FNkuc2698vNx+hnvIxdwf0WNBrKs+1UuNWmREzg97ZNjSHWf4Q
+[+] Invalid_encoding user: encoded_colon3_missing_someUser, SPA packet: 8i9wJU3eQF7dq3TXf8Uu9pgO0NuIiLGTGuA/Oxzz7EOnqmr9BHCTujJXhsKStucIE+pgKpz91iSRzsuy4qOnvIBOLscO/Ju6TMSdwyTJ11Whm7a9OeDJShibsY4XqcXRA7mADAIo8RvBf0+hW8eU9UMDOc7E59dYk
+[+] Invalid_encoding user: encoded_colon3_missing_USER, SPA packet: /4/CNnlOBYoCOrk6kFCW0fgYGrcFytYnkY2G1cs5NGqnM6Q9zHP7k3su7mEvgaVY9FxErXSugm/0muyvZR1arDQpXO5BJ+j7ifz1MiDOIUGVwO9pnbOzMLeUpbnnv4S8QVMercmEiJPAFWaG3dKEHoe+9Fu9hDhaE
+[+] Invalid_encoding user: encoded_colon3_missing_USER001, SPA packet: +hc1UQdzFswLHUjeaVAnGEYkzhnPQlh6HBD9Z+9wxTWO3jW594ySO4uuYhRcwSNG8XHoMJ6uVkLg54fmkHzhfxzuqB2pxbu+R6I6Lh2G7gIZBnIAGzT8mLI/LO9V+kRm4bakwrWj+oq8Ero50sGFGhLj+6xGP3qFs
+[+] Invalid_encoding user: encoded_colon3_missing_00001, SPA packet: /M6VDc7WQq7YhciIbJY4CzSjfivqTGRxOXAaRnPlDFvRpE44p93uJ2ubuu07cA3nlGnt93H0cEuz6LL0Na1HwZwPMLvtuPc0S2IpjPqvDLUkLUNudUwncMeD+yJiv5BKp1as9Rwc/h1GfIgbF3mWEMCQ8E0nfzAyI
+[+] Invalid_encoding access_msg: encoded_colon3_missing_1.2.3.4,tcp/22, SPA packet: +hqOHwt8WUkzoWBGBKQR/PzDB3/HAVoRlxhJgwlAbBNRr2Jtdmgf/FY4ZbZOpJNpJU7biLkTBmNU2F9XC2YIllM6yYdlSmSV73Px8CU89YCKPhON9JcIRytFR+TXYJsnPOOR8YQhDG8XNjCI5Nvmximg8VD779OoQ
+[+] Invalid_encoding access_msg: encoded_colon3_missing_123.123.123.123,tcp/12345, SPA packet: /m0TZoLuaCN1pA17/weza6QRayn1jYDC0wZ1Zu9lE90m4GNQO7JiDCEZo2wSF5d/ZJmzqQOj7UFJTJx1X+gDcZJTYEshLVxrFMy5dz0/dnJMkxQGkPvQ4jAF9lJSYQ+tx3JmrZ+kAYcoSwEfll2/bJq+Hy9IylsmU6gFU5QBtvqxLxOv7wo1+/
+[+] Invalid_encoding access_msg: encoded_colon3_missing_1.2.3.4,udp/53, SPA packet: /bJox140NjUwG5hVRCGhIotufTM7RdI59gvQ3MO1AAZxVrrOeDmB2w24bypObdtVhhmoGxxcOJYQOVKk97wc3CkpXueszcV+HE+0wy+VBiVEtNsIPrOF7K/G2U4jYTHUAoeMxRozaBdiYtmzriSX4QMgOnS+WgE1M
+[+] Invalid_encoding access_msg: encoded_colon3_missing_123.123.123.123,udp/12345, SPA packet: +ufVeoODc9RNZIVttOqT6cFL0e0qfWN2pK5PQ7JDxgwm/Ul9SxgMLAGQjN15MJn6T8wkMye3JDFy7UtjVj5eMpJXIUfK8G9EUkFNk0nF8t43bapEmWViKgB+UOwfdPOjLT5zU8qOiQCQqTXigkUc7pZI+WmhrgroouhiRTCV4lsklL5gqZgwve
+[+] Invalid_encoding access_msg: encoded_colon3_missing_123.123.123.123,udp/12345,tcp/12345, SPA packet: 8yGAgwURgwLm6r2cZbsILRubLhor0gkUrl1Co4Ux3iSUxdSSUdeHoQvGjGM0YwYbzbWDgsN6bsAk282c3rpHqtyt/tnK8KN+oY2IKMUZ8eTNQUeX35hyrvWMnfTqadlAUX8MhQMLCHtc2my87JZyGCnFqH4TVl/yY2+y4Amkg9vR85/QFmUGYVapUAPUlGrrj9csNTBNTZNg
+[+] Invalid_encoding access_msg: encoded_colon3_missing_1.1.1.1,udp/1,tcp/1,tcp/2,udp/3,tcp/4,tcp/12345, SPA packet: 95ydts0LfPjNz+TyPiJdycf2wJjuhLpUc4r5Firw8RPBBa0zVllSPunS3xOlYicqk+budbPzpfzbGLXFBr6eVdi3lNCwe0oa+VBG5DzzbYEW15u0Bn6qwjYTcEdhGj/3S9JDasozUcT/RBgjliq5ilvPXrPfdktk/giBVNewkjdvui7F09Qj39eTXOv51tlpC/H8S2mYSLxFzVx+hPlLUPYfCb8RCGv8I
+[+] Invalid_encoding NAT_access_msg: encoded_colon3_missing_1.2.3.4,22, SPA packet: +E8D6p4F5ZBbjD4iLBL6ySAMlM+BRDUtttiiObyyX/7rEKGRlsuQSS3kFtn2ssKcrzOZjoHsTXQOlSdyp5Zl+Z90wUcZXpGqndQyGM/AcmVyfiLowKl35jQU6tiWLBraS7DisvGc056PKijklQCRGZOSl7NENQI3TyF+L/pVeZnw96rcd0i3WO
+[+] Invalid_encoding NAT_access_msg: encoded_colon3_missing_123.123.123.123,12345, SPA packet: 8+dUV9EO4AQ/axN2ubNcXINLh8ZcUZ6VrUuOKR4Zw9FUzY2nlHyOG8PeRb/VrPwkMDRjf6aU7YlSmLLShO0LL0nPizkTYR6fzYAgJjX+aZ2p9o3VZc2UeMgMVNUjjdTSafIQ2qbJqJzxgaHLSnZd3RUBJbZ1ICC657EkZCKCV1NWXNezh6pN9k4LQCHOd8LTX++q9oLFMAUA
+[+] Invalid_encoding cmd_msg: encoded_colon3_missing_1.2.3.4,cat /etc/hosts, SPA packet: 9Vba2jr9wrdsNuHpqqi+ILRyonSbtpRDHVubDECRw/0/QdchN00VkUr8ajYLpIT+YECoGLoiS2Z41E9p+W94UPX4YG4X66wH78iGa7RKutb+jYYklJxBB/OB9ImVsmbpcj0C5MgCbQltzenBoSf/MROmQaldzLDoXon97FWO4dbARmjmC9FYy7
+[+] Invalid_encoding cmd_msg: encoded_colon3_missing_123.123.123.123,cat /etc/hosts, SPA packet: 8eNwAB79z4p8+rgySOa834EhDCrJi0yI53s1q4iMDKk2k1zyq2tZXsMgN/FICEbrFUwRdh1Lm6PKQeCm18BIX/Cm9aH4Bj4Ww7kRHVn2dc5M/O4rHwhO/k7/6RfudFeZb2RG3xJAI5o32r3gDmTX/1j3WtnOOfKWgom2IAAZfh2nOoOgCqv0ZM
+[+] Invalid_encoding cmd_msg: encoded_colon3_missing_123.123.123.123,echo blah > /some/file, SPA packet: 9+py7CFCIA2qAiTEHtfPnprhsZKwAOKWtxnzHBI5RPemUMwrth367YHutYDgWBjX1U1QAyRp/0ORhfHhmH6bUWOocuXcEruYjXkLSfh8WFP9masJ1QKrw7POZlpl4Vm8ZQPRIhbLk+qJa2hQ1PCw+iSrhCqsWCJUX9zfDgFjnCKwx+1BEszJh1Qyy0y0gQsQ6ry3dKycfp0g
+[+] Invalid_encoding cmd_msg: encoded_colon3_missing_1.1.1.1,echo blah > /some/file, SPA packet: +yCItY9ag4oA0jCLtOo9idT9UZzTSqit9vZ8j6vIOug8w+2/SGHG3VaH07AquNK/h0yx+yPUQXfElmJAaCvjIrncR9VVoKDTXc7uDvEfQb5LRmF+1SoKjHhYam386SILFW1kOOrNDCCdttNV5huV6c+pUW4asrq7AHxMcewsgEGVTtcy2ESRkl
+[+] Invalid_encoding cmd_msg: encoded_colon3_missing_1.1.1.1,AAAAAAAAAA, SPA packet: 9UZ8IaG62meCxYhfDsU6+jmPkxKCrIKaYI9BmEcWdiewizGbC+i/uHN5gQClgWOQd41reVyMkQXoGGdxX3Wcb78S+EipfM3GpnbCAhyVndjIMLVpTOggvDOtiJ6Eir37o0wJb4VkvGzOozkfdRjIdfLDTugmfAF5c
+[+] Invalid_encoding cmd_msg: encoded_colon3_missing_1.1.1.1,AAAAAAAAAA:, SPA packet: 8bhbon1uUMlaiyOCzVJTqmoL/CnFcdFOJeekajKuYGsMjG4kD0ysQUmyREBDexzwgwBwOQ7IeAQER0D4IgNm5tcwNZ3hue1QNPupZT/6kC8q2FjGDmD8V7Uji54sgntgPevd947qtjIO691C6ZgithgbNm9xYo0BM
+[+] Invalid_encoding msg_type: encoded_colon3_missing_1, SPA packet: /ZAr4LVYDJekEvahTPESwhI7OIj0YNZWXXSgOp0qk/ctI//w6e4vpdheUi90rDiRCCwL6Sj/AWf3oXU6aCf4uCcYNPdn8h7tmjGj8bz1Kz+b2VGe8a0ecU4IQUbwzrebnGrVd0YAJ9i0reISYbohfD7ZvtyEtGXMo
+[+] Invalid_encoding msg_type: encoded_colon3_missing_0, SPA packet: 8WH6AgwZnSVQUnkGvD43Ot/dZmB5961lJ5qFKfOjL0EXlgXBtuIcuMgyXSVOYtCQ3ZnB+/T8ruJVo6tyY/9L03ByBfk0shju2US9O9YXM77TZ4MQ6afR6jidfAGHou8S8s8AkhLCJgo63+UP7WSc+dRB0Ud0VT1SE
+[+] Invalid_encoding msg_type: encoded_colon3_missing_5, SPA packet: 8a0qE07LuYSa9zmBAo/yH/7X25QADPpdtJB/o/KE7fx022h6Wgs0AFNruVYNpeAzKSZk14cBuI5FA5G0YAQPijFwcd23mFSiTZZHYsVxbDqpuOTfuJmrU3GeOVnXYzWbX5XFwX8+l43Vn4hjCaFY5rlEuUx64feRw
+[+] Invalid_encoding msg_type: encoded_colon3_missing_2, SPA packet: (NULL)
+[+] 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
diff --git a/test/fuzzing/patches/encoding_rm_colon2.patch b/test/fuzzing/patches/encoding_rm_colon2.patch
new file mode 100644 (file)
index 0000000..020b73b
--- /dev/null
@@ -0,0 +1,13 @@
+diff --git a/lib/fko_encode.c b/lib/fko_encode.c
+index c92d421..5f2ff15 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.
+     */
diff --git a/test/fuzzing/patches/encoding_rm_colon3.patch b/test/fuzzing/patches/encoding_rm_colon3.patch
new file mode 100644 (file)
index 0000000..cb70c37
--- /dev/null
@@ -0,0 +1,13 @@
+diff --git a/lib/fko_encode.c b/lib/fko_encode.c
+index c92d421..f275351 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.
+     */