Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler. Number of rules (primarily dangerous function names) in C/C++ ruleset: 223 Examining data/globus-gfork-5.0/globus_gfork_opts.c Examining data/globus-gfork-5.0/globus_gfork_server.c Examining data/globus-gfork-5.0/globus_gfork_states.c Examining data/globus-gfork-5.0/globus_gfork_lib.c Examining data/globus-gfork-5.0/globus_i_gfork.h Examining data/globus-gfork-5.0/globus_gfork.h FINAL RESULTS: data/globus-gfork-5.0/globus_gfork_server.c:192:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(gfork_l_options.log_fptr, fmt, ap); data/globus-gfork-5.0/globus_gfork_server.c:558:14: [4] (shell) execv: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. rc = execv(argv[0], argv); data/globus-gfork-5.0/globus_gfork_server.c:1147:10: [4] (shell) execv: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. rc = execv(gfork_handle->server_argv[0], gfork_handle->server_argv); data/globus-gfork-5.0/globus_gfork_lib.c:455:15: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. tmp_str = getenv(env); data/globus-gfork-5.0/globus_gfork_server.c:75:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. env_s = getenv(gfork_l_keep_envs[i]); data/globus-gfork-5.0/globus_gfork_server.c:554:13: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. getenv(GFORK_CHILD_READ_ENV), data/globus-gfork-5.0/globus_gfork_server.c:555:13: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. getenv(GFORK_CHILD_WRITE_ENV)); data/globus-gfork-5.0/globus_gfork_opts.c:630:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fptr = fopen(opt[0], "w"); data/globus-gfork-5.0/globus_gfork_server.c:1229:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(msg2, msg, sizeof(gfork_i_msg_t)); data/globus-gfork-5.0/globus_gfork_server.c:1256:21: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(msg2, msg, sizeof(gfork_i_msg_t)); data/globus-gfork-5.0/globus_gfork_server.c:1268:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(msg2, msg, sizeof(gfork_i_msg_t)); data/globus-gfork-5.0/globus_gfork_opts.c:127:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). opts->crowded_msg_len = strlen(opts->crowded_msg); data/globus-gfork-5.0/globus_gfork_opts.c:688:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). gfork_h->crowded_msg_len = strlen(gfork_h->crowded_msg); ANALYSIS SUMMARY: Hits = 13 Lines analyzed = 3667 in approximately 0.08 seconds (47099 lines/second) Physical Source Lines of Code (SLOC) = 3047 Hits@level = [0] 7 [1] 2 [2] 4 [3] 4 [4] 3 [5] 0 Hits@level+ = [0+] 20 [1+] 13 [2+] 11 [3+] 7 [4+] 3 [5+] 0 Hits/KSLOC@level+ = [0+] 6.56383 [1+] 4.26649 [2+] 3.61011 [3+] 2.29734 [4+] 0.984575 [5+] 0 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.