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

index 67c1baa..344a2f4 100644 (file)
 [+] 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
+[+] Invalid_encoding user: encoded_extra_colon3_test, SPA packet: 8GkO1N0l+CEJdObpDslfaSeAgvlxZmXhyq2vLxgcNeos5wohcejdLhvmJDbIvj+5TmUnR31iVXdSmlzCJ7lUKcFU+TdT5AacUe79EmzcOhi6vy0bY9lAiLFCO74TGqHa1+e/Y2FU/2klekPgE/CD4FsrGg4cSDTxA
+[+] Invalid_encoding user: encoded_extra_colon3_root, SPA packet: /ATNirE0NnrC25nyW62+hEoLv8aF7yKfwjYysPepG3QwcuPqmNry9MpwuR+tEQYYEQobHJ8xdS6+NYQ84XCGzFc6tAcQc1G3Pb+0QefVd6fGmDB2BW+/tyUR2IfC6ClUEs/sULyPF/M+l69PfMfoTDvZ2F9luyTbU
+[+] Invalid_encoding user: encoded_extra_colon3_mbr, SPA packet: 98ttAGJ0S/cP8O4oRhyi4UBhggpEMNzMiMvKSSD+9SPy8EEQAThnBw3ywOO7gTWOJO+8sOkBdpNTRFUon9rL4aMQPrqGc3noT+0+HZRP+UrTWHf/uBBDbIZvoJ03hkydAm5jKgrkAdhATUQfqGRgp5Ed+v5ePE6QE
+[+] Invalid_encoding user: encoded_extra_colon3_test-test, SPA packet: 9evGft98cH3kpEf0s6ivLMrwmGI6BcNgcRBQiXeArBr5xdAhCbPMkxKuzjriBAAuw7qvAwm+lfYp5OIvIAPO6SU4IffBdrtvRpfsyMZRGrErZVIHsmSKK0p3oIlB4vUMi39grVz80Z0pi0vAaV7ZW4wjiFhs9BOcpWljSuKqhqUZrSws2K5UaT
+[+] Invalid_encoding user: encoded_extra_colon3_someuser, SPA packet: +SBl6oJzZZm550PdJjP7O5qyRaY7yVu10Qp3KOk5R1cnKfd9Ja/rFUeraUust3cdH1F0YWjwF9lV7QQwGpoRu9bWFy77WBpeEURXJ4jcTkLrZGvE+JROD+eQ4RxbWXFj0rlntSfuMpdwP4gXR+kQtVTzR9AscPn+4
+[+] Invalid_encoding user: encoded_extra_colon3_someUser, SPA packet: +dnAfp7BXUiExQGN4tcJ+/quzaqFcdeBLRck780itQjtMTsyuqlTZFz8aurDguDte4qrxrb14JIAmPmhHYgey5b7wPsW5IwDNT3aap6BwcO4yfPllNtbrvqqlF0K92MC1I7QYbhyrhzorjf3EwyKaJR+ocNduxM3o
+[+] Invalid_encoding user: encoded_extra_colon3_USER, SPA packet: /KpbtMf1qwcLROHGeaMqIcKGPQ184qV8D+oAZh/6/q00wrP/vWH6zLOCZjHOqMfrw8bSvnoJV5tvIZJG5dQC+IscRnxMcJ0zjBibeMTRR4/SYHbspVDaKQPEXpmikhWBcYZ5YI6Rj1ReDBbqjsYy+SJNUd7nHF5ag
+[+] Invalid_encoding user: encoded_extra_colon3_USER001, SPA packet: 8dXTDaoYaDrJkYOiS+k9HMRtwLCqPy2NZ2pgNnBnaEvxv1cl837n6zVeDyBUby9J66QSwkZlLNOKociqi2RRl5O7xEofdrTVkn+LcYZ7DZZbgJAnoleySh7vQ4z8cfZ9QZNdQ4w3fga2BnMvk0IMTN9eBYCdEoX0Y
+[+] Invalid_encoding user: encoded_extra_colon3_00001, SPA packet: +wrTZoPxB42Vi8K4BLzHyd4czd5D35z8SGkiQHBKATB//+XPBW6iE+4ky1B3YoRBhCWkbtDEQk7qxdYjqX4HAFhkyuW80TQUFqbO902Wyo9cSc22wZgyjvPPbhqiz3PFC5GK99nVm4S/pSaaPyKR4CbrQeW4jXrdw
+[+] Invalid_encoding access_msg: encoded_extra_colon3_1.2.3.4,tcp/22, SPA packet: 8RKToHYDa57yjyZR6oOLwqp3f1y3OdtZgy0zvOW9p0pVAnZ8vWywa7s7RSsH+6jt5OHzOhrEVzCTwRBlDl8c7s9BvxSOcPA5iBkrPJz+YsX8421mwfw8iycdzckcfU9oW7UjIWvQCmM9hBST2BmZyVz0/bUyTpXNA
+[+] Invalid_encoding access_msg: encoded_extra_colon3_123.123.123.123,tcp/12345, SPA packet: 85w+KYKjcXk3MSXzCv5NCFb918Ojq9nChw4Vs7LQYt0/xf1dzEtJZDd3kndVLP3vPl2PAEx7+efZQXBfFH+rRJBdHrUbwqXsWhs5tZG07gtoOJgESTTqT3t1j9MtjR9XCaCzFh7v+WrRWbol0mpdSAbtgRfJwSHZrgM9MdWxaH2nCEMxwEh4hk
+[+] Invalid_encoding access_msg: encoded_extra_colon3_1.2.3.4,udp/53, SPA packet: +xjSMvtdSUdtc6aZ88U5ql7sae+HlabZ1f6BZCZMC9S+rOWDJKmEvHg4kWpsSSc4Y0Ls9vmVN4KEplGWQHP36dS/BygD0vP1AfKlD0S0OyHVIVvpkfDfTLud64sUqeRIdTY7sj2UF3iFS+IkmF5K+5vS+XcOekvnQ
+[+] Invalid_encoding access_msg: encoded_extra_colon3_123.123.123.123,udp/12345, SPA packet: +c4Pu1bE+vPqv3I73HvVAsdXxbczxduZAK4dbckGwb3UcS6n/bDQA7e9SpBxLL22muG+irqtv72ZtnqJxUUd+mXPZ8+8KpT9XsQ1Nb7OYswtl2obixSpfGIjj2toSXXZ9ON8EOFnoBVkM1mJWiJKNNwEhp77uCc9CE6Y+3D2+T1p+fRSmzMAG3
+[+] Invalid_encoding access_msg: encoded_extra_colon3_123.123.123.123,udp/12345,tcp/12345, SPA packet: /VyQEa90A/ss4VDCcw0lTC7tH6iADLv3ElctxvA/REcr/ENF12lw9MKuM2oC9cAcxulJdScOkEatTOk1dj3/cxBxU3rdPvqFluKb+6B7Nd1lZ3VHnPfYm5vpHu0WcQBC/9+MIqhWrOc/AK+w8I7RCF0USI+Ch6HgAra58sZbynVuV950ZnM5mghyHs0wzYnPza43Q7BvkZVg
+[+] Invalid_encoding access_msg: encoded_extra_colon3_1.1.1.1,udp/1,tcp/1,tcp/2,udp/3,tcp/4,tcp/12345, SPA packet: /7IR+HoCOLPAZrBVMuryiadU4JYKmzVIUGaPa5R2n+wcoKNlZiIc2OQWCVqpkWHQrqTy9P0fcG38hvd8NmosmgsyI1/00xHCgtoXF4VhGGzmvoOk6tkp4z/dJpLUKvL2HiEqDplpNj2g1QTwZOyGS6Dgv59oXrq9G1d3F8IjcurYflFDOtHJIXPtBS00hpL5EkCWda9Mvps1Aaj137iYzzuEssssrFp/M
+[+] Invalid_encoding NAT_access_msg: encoded_extra_colon3_1.2.3.4,22, SPA packet: /Mn8lV/q8GrggE2+ENPXnK9udX0TnjUwfHxIMDSjYaYHHSYt77ees9jt9SgZz1RnfgKLycMP5RuDxctiLa9pyBXXdE1zuOU6GtVlFgNA9vR4fx5TVqt4TNj5kc+8WgltWIO4tBuviye73dsZLU79rIcsHYNVlEMPvNgrXakya71NUtwDjoa+ZO
+[+] Invalid_encoding NAT_access_msg: encoded_extra_colon3_123.123.123.123,12345, SPA packet: +qbONwEC8YC7ONGS6z/LVCQnzYX+EVwkn3qTxZqoAPoVegsw5xH8QitSn/2DDVw+IYTnnD2nn+Qg00DvIIoncAG90AZwkMUVFTuhC/DuBCyYigmRkcnj4NnbQe7vN+5cJVulCTCb+DiToZxzHmCLBVrCREgEN86m0P1RljJRtw8TZ958gjq79yrbVSq6/jIBY64kyI0du06A
+[+] Invalid_encoding cmd_msg: encoded_extra_colon3_1.2.3.4,cat /etc/hosts, SPA packet: /cVXf4jE+vSWtvpqLIGIcRr0TjT2zXdCTDiF2AQu0IRo+7+aXdzPv1k4IvwwPXreG981eRqaRc2gWCJWiEFB2S+PUyiicvtxvsVvh+HhLaYBb+OFI5u18sK8XtcZD3zXXmoEiCq0bQ09St/tMdcNEArrejQ8vPI3TRDR59fe2IpQACYHqtgmoW
+[+] Invalid_encoding cmd_msg: encoded_extra_colon3_123.123.123.123,cat /etc/hosts, SPA packet: /DX7T8BogdN3DMAWLaXGEDCjvsxqJPHEcR0x97HUrteA21RXYEjAfzvABeBpKk7aXdsrji30Ig2jO05MPWPH6kHsEW1vjRw5REwV2aWdkssq8DwcwG3gwk+iq1rCeLxYGKkQ78BHF0sP2IbJhfpCvugcacvD2dE69a4yEm04PIGlDTuf3PL4I0
+[+] Invalid_encoding cmd_msg: encoded_extra_colon3_123.123.123.123,echo blah > /some/file, SPA packet: 8SQoah+yE8l5X3HnwIMkg2Jvdipivp+/QhHh3BaOOp1a2NHxykTU9DO/1q2Ov0R5E3A3TIMr43NoNAYUeitZPObyK5fO/6fwRU/8BCeXUTldx+7mLFzT/rM/1UiHtQOdzJ/CNSV6RSbsEYUrHc4ZJd5dRaQ48ten2PXzDJnrir+qfE+sKal0VUs9Akvgk58uBHa0HZQ0werQ
+[+] Invalid_encoding cmd_msg: encoded_extra_colon3_1.1.1.1,echo blah > /some/file, SPA packet: 9k/dCaISou8Wncky8TFRuTIv83zavPkGfG3Z5DOnL5HRT+7l51nHmF6YnNDthfa3mj9wXdBuQkkaryajBiEI56+CxJDuhqlceX7Tn1dBrYdDPZ4q9IHHcow5xXhsN4KxNRiFlazK6zNTz27mxPmA50lqai1KEkEe0RiE6rJ7yfYflWWp6cw0kK
+[+] Invalid_encoding cmd_msg: encoded_extra_colon3_1.1.1.1,AAAAAAAAAA, SPA packet: 8RAea3fm9Q1amD7BUYMGDqJTtnWLAnQkPKN3RBZUsGdGs+eJN2Ws3peIBwBO4GlJ+SeXX2amuquqWFcL1WcSRoGUyrP4mwNrEZmLrqWgzLrei8xhfd0bQT5KKwkehrg2qKrybKs62w6i1EnvxMLowwIuxvJrfjkfg
+[+] Invalid_encoding cmd_msg: encoded_extra_colon3_1.1.1.1,AAAAAAAAAA:, SPA packet: 9YUt68Rvf+tVeCYmNiL6Ayp/1tot3mKLBz5TrunYloQR8Dpt3xg9Tp1Hz66G1MkuxH75iw68C51yvH9cLbqZIpbqPZV8lw9I9R4gLO4OCs3QrWAeixWk0BIKSBRvVIm0zcam2UjCXsNkKG+3Gor3eWYCZYXOtFKK4fMvd97hpO6NicsagGf8G6
+[+] Invalid_encoding msg_type: encoded_extra_colon3_1, SPA packet: +2rwumPLG7rDl+3n8afsVc0klumcFmiQiO1cQnfreMBguFa9pwzfRlE2hx186+Xbg4GB4Gv6bp9GlGMTXlG15iqWy5Sl9dOPh4gq7wp7TIvWMnTy15A+bwPR1Bcd7Ik7Otu0hwMCYdBbHIZkP0SUrUGAHERu/B7SI
+[+] Invalid_encoding msg_type: encoded_extra_colon3_0, SPA packet: /WsgxSeF4PH3c+cwRzrZivIA5o1L/tLGNPboWSA/hjLyfDlqVYTHGR4xyHtFj8vrcUfmVFznqOy6kRT/oHyUZ5p1gadWg1GSGeS3uVVN9mwoTLg82POJV3mlYfKHyFSw9dEaC+kMTcq6+WoNb8EszRpH1vPBO4+fE
+[+] Invalid_encoding msg_type: encoded_extra_colon3_5, SPA packet: +L5D2+0qQKrsBjFh/1Z3C9PLOM73R6mA1dmGYgIPJhdtj4kcx/MLfV54J+AYWf0ZAwcirIdOPB9rJivLNcO+R6GuGXbu0LB3/dDp1zXRTlVxaN6BzDuTnFiQCdQREVygaBBBBDoTXt5hu7kSQ/FauMr4AjcPi8Ezo
+[+] Invalid_encoding msg_type: encoded_extra_colon3_2, SPA packet: (NULL)
+[+] 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
diff --git a/test/fuzzing/patches/encoding_extra_colon3.patch b/test/fuzzing/patches/encoding_extra_colon3.patch
new file mode 100644 (file)
index 0000000..c7486a5
--- /dev/null
@@ -0,0 +1,13 @@
+diff --git a/lib/fko_encode.c b/lib/fko_encode.c
+index c92d421..43bde03 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.
+     */