819 Commits

Author SHA1 Message Date
Michael Rash
5c1979e16a Added test suite config file: disable_aging_nat_fwknopd.conf 2012-11-04 22:13:52 -05:00
Michael Rash
231be81f5b bug fix to include multi-gpg ID no password test 2012-11-03 23:11:24 -04:00
Michael Rash
df2bb3e3fd Merge branch 'master' of github.com:mrash/fwknop 2012-11-03 19:00:56 -04:00
Michael Rash
66467e9449 Merge pull request #11 from tomyuk/master
add missing include files to lib/Makefile.am
2012-11-03 16:00:57 -07:00
Michael Rash
dbf6dc8846 --enable-recompile try raw make if sudo make fails 2012-11-03 18:09:12 -04:00
Michael Rash
5218e52f9a added run-test-suite.sh LD_LIBRARY_PATH wrapper 2012-11-03 16:50:26 -04:00
Tomoyuki Kano
daa692caf7 Added missing include files 2012-11-03 19:08:10 +09:00
Tomoyuki Kano
cf783e075e add missing include files to lib/Makefile.am 2012-11-03 19:03:48 +09:00
Michael Rash
28b2787001 bug fix to include cmd_access.conf in Makefile.am 2012-11-02 21:07:23 -04:00
Michael Rash
7db2d1e796 [client+server] Added --disable-gpg to the autoconf config
Added --disable-gpg to the autoconf ./configure script
via configure.ac.  This makes it easy to not have fwknop/fwknopd
link against libgpgme even if it is installed on the local system.
2012-10-31 21:37:55 -04:00
Michael Rash
8ee9999cbd added fuzzing patches from the test/fuzzing/patches/ directory 2012-10-30 22:39:36 -04:00
Michael Rash
f488a8d75d added '-Wformat -Wformat-security' to compile args - no associated warnings in current code 2012-10-30 22:03:40 -04:00
Michael Rash
e103bdf4b0 Updated build CFLAGS and LDFLAGS for PIE support similar to Debian hardening-includes
The Debian hardening-includes package sets CFLAGS and LDFLAGS as follows for PIE support:

_HARDENED_PIE_CFLAGS  := -fPIE
_HARDENED_PIE_LDFLAGS := -fPIE -pie

The configure.ac file has been updated to conform to the above.
2012-10-30 21:40:21 -04:00
Michael Rash
8c3a67377e [test suite] bug fix to ensure binary existence check in build security tests 2012-10-30 21:23:30 -04:00
Michael Rash
aa74fa3eed minor fuzzing README update 2012-10-28 23:31:09 -04:00
Michael Rash
cefac6275b added non digit rand val fuzzing encoding tests 2012-10-27 22:45:28 -04:00
Michael Rash
dced7c6a77 added fuzzing encoding strip eq return packets 2012-10-27 22:34:52 -04:00
Michael Rash
4b25e1e242 added encoding_append_b64_modified_byte equals sign fuzzing encoding tests 2012-10-27 22:28:33 -04:00
Michael Rash
807dd315e5 added encoding_append_b64_modified_byte fuzzing encoding tests 2012-10-27 22:07:40 -04:00
Michael Rash
03255a5547 added non-base64 char to access msg for fuzzing encoding tests 2012-10-26 23:13:41 -04:00
Michael Rash
f3c9f49a67 added fuzzing encoding packets (extra colon 3) 2012-10-26 23:07:35 -04:00
Michael Rash
e89338c431 added fuzzing encoding packets (extra colon 2) 2012-10-26 23:06:09 -04:00
Michael Rash
69ed7ee635 added fuzzing encoding packets (extra colon 1) 2012-10-26 21:47:08 -04:00
Michael Rash
37048f359d added in new test/fuzzing/patches/ files 2012-10-26 21:43:24 -04:00
Michael Rash
830996b3ac added non-base64 encoding fuzzing packets 2012-10-26 15:52:09 -04:00
Michael Rash
ac38f8d993 [libfko] bug fix to check b64_decode() return value
Bug fix to check b64_decode() return value to ensure that
non-base64 encoded data is never used.  Even though other validation
routines checked decoded results, it is important to discard invalid
data as early as possible.  Note too that such invalid data would only
be provided to b64_decode() after proper decryption, so the client must
provide authentic SPA data.
2012-10-26 15:36:08 -04:00
Michael Rash
60083cc272 added rm colon5 fuzzing packets 2012-10-25 22:12:47 -04:00
Michael Rash
3ae583813c added fuzzing encoding test that removes colon #5 2012-10-25 22:04:09 -04:00
Michael Rash
91596f4450 added fuzzing encoding test that removes colon #4 2012-10-25 22:01:12 -04:00
Michael Rash
ef635d57e3 added test/fuzzing/patches/encoding_rm_colon1.patch file 2012-10-25 21:57:40 -04:00
Michael Rash
165e618bad Added fuzzing encoding tests that remove the 2nd and 3rd colons 2012-10-25 21:55:01 -04:00
Michael Rash
f6b0d23c1c Added fuzzing spa packet generation for invalid encodings
This commit adds the ability to generate SPA packets that are valid except for
the last encoding step before encryption.  This is independent of supplying
invalid data for SPA packet fields.  To invoke the test suite in this mode,
do something like:

 # ./test-fwknop.pl --enable-perl-module-pkt-gen  --fuzzing-test-tag "encoded_colon1_missing"  --fuzzing-class encoding

This assumes that lib/fko_encode.c has been patched to subvert the encoding
step itself before encryption.  In this case, the first colon after the random
value is removed.
2012-10-25 21:37:52 -04:00
Michael Rash
b3889289b3 added non-base64 user character fuzzing SPA packets 2012-10-25 00:42:02 -04:00
Michael Rash
d16643affa added extra_timestamp_digit fuzzing SPA packets 2012-10-25 00:29:01 -04:00
Michael Rash
e8312c26b9 added colon_1_to_a fuzzing SPA packets 2012-10-25 00:24:19 -04:00
Michael Rash
de512e7d8f added fuzzing/README file 2012-10-25 00:20:55 -04:00
Michael Rash
6a649e26e7 easier SPA fuzzing packet generation and importing 2012-10-25 00:20:08 -04:00
Michael Rash
627035fb22 Patch from Franck Joncourt for setting permissions via open()
[client+server] Applied patch from Franck Joncourt to remove unnecessary
chmod() call when creating client rc file and server replay cache file.
The permissions are now set appropriately via open(), and at the same
time this patch fixes a potential race condition since the previous code
used fopen() followed by chmod().
2012-10-23 21:47:56 -04:00
Michael Rash
52d023ec60 added validate_username() call to SPA packet encoding routine 2012-10-22 20:31:31 -04:00
Michael Rash
23eefbdefa added MIPS compilation bug for todo.org tracking 2012-10-22 20:30:42 -04:00
Michael Rash
691d9503ee added test/fuzzing/ directory for fuzzing data and patches 2012-10-19 22:14:24 -04:00
Michael Rash
95001b7da8 minor ChangeLog updates 2012-10-19 22:11:27 -04:00
Michael Rash
54297086ba fixed --enable-recompile argument for OpenBSD 2012-10-18 23:10:02 -04:00
Michael Rash
3eaa7dcb5f added libfko validate_username() for decrypted SPA data 2012-10-18 23:01:54 -04:00
Michael Rash
692e336880 added 'Rejected' messages to test output for bogus SPA packet perl FKO tests 2012-10-18 22:24:48 -04:00
Michael Rash
d5c3fc4b1c removed non-SPA packet lines 2012-10-18 22:24:11 -04:00
Michael Rash
cc58adc7fc added bogus_spa_packets file for perl FKO fuzzing tests 2012-10-18 22:08:38 -04:00
Michael Rash
b218977c61 continued validation code driven by perl FKO module 2012-10-16 21:23:43 -04:00
Michael Rash
e0d86f9a33 [libfko] validation of NAT access strings
Added validation of NAT access strings in the various NAT modes in libfko.
This applies to both the client and server, and test suite support was added
as well.
2012-10-15 20:52:23 -04:00
Michael Rash
bf22778ada added perl FKO module client timeout test 2012-10-13 14:08:38 -04:00