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/libzorpll-7.0.4.0/src/blob.cc Examining data/libzorpll-7.0.4.0/src/cap.cc Examining data/libzorpll-7.0.4.0/src/code.cc Examining data/libzorpll-7.0.4.0/src/code_base64.cc Examining data/libzorpll-7.0.4.0/src/code_gzip.cc Examining data/libzorpll-7.0.4.0/src/connect.cc Examining data/libzorpll-7.0.4.0/src/crypt.cc Examining data/libzorpll-7.0.4.0/src/error.cc Examining data/libzorpll-7.0.4.0/src/headerset.cc Examining data/libzorpll-7.0.4.0/src/inetaddress.cc Examining data/libzorpll-7.0.4.0/src/io.cc Examining data/libzorpll-7.0.4.0/src/listen.cc Examining data/libzorpll-7.0.4.0/src/log.cc Examining data/libzorpll-7.0.4.0/src/misc.cc Examining data/libzorpll-7.0.4.0/src/packetbuf.cc Examining data/libzorpll-7.0.4.0/src/poll.cc Examining data/libzorpll-7.0.4.0/src/random.cc Examining data/libzorpll-7.0.4.0/src/registry.cc Examining data/libzorpll-7.0.4.0/src/sockaddr.cc Examining data/libzorpll-7.0.4.0/src/socket.cc Examining data/libzorpll-7.0.4.0/src/socketsource.cc Examining data/libzorpll-7.0.4.0/src/source.cc Examining data/libzorpll-7.0.4.0/src/ssl.cc Examining data/libzorpll-7.0.4.0/src/stackdump.cc Examining data/libzorpll-7.0.4.0/src/stream.cc Examining data/libzorpll-7.0.4.0/src/streamblob.cc Examining data/libzorpll-7.0.4.0/src/streambuf.cc Examining data/libzorpll-7.0.4.0/src/streamfd.cc Examining data/libzorpll-7.0.4.0/src/streamgzip.cc Examining data/libzorpll-7.0.4.0/src/streamline.cc Examining data/libzorpll-7.0.4.0/src/streamssl.cc Examining data/libzorpll-7.0.4.0/src/streamtee.cc Examining data/libzorpll-7.0.4.0/src/string.cc Examining data/libzorpll-7.0.4.0/src/thread.cc Examining data/libzorpll-7.0.4.0/src/zcp.cc Examining data/libzorpll-7.0.4.0/src/zobject.cc Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/blob.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/cap.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/code.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/code_base64.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/code_gzip.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/compat.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/connect.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/error.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/headerset.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/inetaddress.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/io.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/listen.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/log.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/memtrace.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/misc.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/packetbuf.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/poll.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/process.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/random.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/registry.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/sockaddr.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/socket.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/socketsource.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/source.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/ssl.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/stackdump.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/stream.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/streamblob.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/streambuf.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/streamfd.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/streamgzip.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/streamline.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/streamssl.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/streamtee.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/string.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/thread.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/zcp.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/zmap.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/zobject.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/zorplib.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/zorplibconfig.h Examining data/libzorpll-7.0.4.0/src/zorp/zorpll/zurlparse.h Examining data/libzorpll-7.0.4.0/src/zurlparse.cc Examining data/libzorpll-7.0.4.0/src/memtrace.cc Examining data/libzorpll-7.0.4.0/src/process.cc Examining data/libzorpll-7.0.4.0/tests/randtest.cc Examining data/libzorpll-7.0.4.0/tests/randtest.h Examining data/libzorpll-7.0.4.0/tests/test_base64.cc Examining data/libzorpll-7.0.4.0/tests/test_blob.cc Examining data/libzorpll-7.0.4.0/tests/test_codegzip.cc Examining data/libzorpll-7.0.4.0/tests/test_conns.cc Examining data/libzorpll-7.0.4.0/tests/test_inetaddress.cc Examining data/libzorpll-7.0.4.0/tests/test_pktbuf.cc Examining data/libzorpll-7.0.4.0/tests/test_portrandom.cc Examining data/libzorpll-7.0.4.0/tests/test_random.cc Examining data/libzorpll-7.0.4.0/tests/test_readline.cc Examining data/libzorpll-7.0.4.0/tests/test_registry.cc Examining data/libzorpll-7.0.4.0/tests/test_sockaddr.cc Examining data/libzorpll-7.0.4.0/tests/test_ssl.cc Examining data/libzorpll-7.0.4.0/tests/test_streams.cc Examining data/libzorpll-7.0.4.0/tests/test_valid_chars.cc Examining data/libzorpll-7.0.4.0/tests/test_zcrypt.cc FINAL RESULTS: data/libzorpll-7.0.4.0/src/blob.cc:1171:15: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. if (chown(self->filename, user_id, group_id) == -1) data/libzorpll-7.0.4.0/src/blob.cc:1175:28: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. if ((mode != -1) && (chmod(self->filename, mode) == -1)) data/libzorpll-7.0.4.0/src/blob.cc:91:59: [4] (shell) system: 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. if (!self->storage_locked && !self->is_in_file && self->system) data/libzorpll-7.0.4.0/src/blob.cc:1139:33: [4] (shell) system: 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. if (!self->filename || !self->system) data/libzorpll-7.0.4.0/src/crypt.cc:27:9: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf _snprintf data/libzorpll-7.0.4.0/src/crypt.cc:27:18: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf _snprintf data/libzorpll-7.0.4.0/src/crypt.cc:187:21: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. g_strlcpy(result, crypt(key, salt), result_len); data/libzorpll-7.0.4.0/src/crypt.cc:207:25: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. g_strlcpy(result, crypt(key, salt), result_len); data/libzorpll-7.0.4.0/src/memtrace.cc:382:13: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. len = vsnprintf(buf, sizeof(buf), format, l); data/libzorpll-7.0.4.0/src/process.cc:861:30: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if ((process_opts.core) && access(".", W_OK) < 0) data/libzorpll-7.0.4.0/src/process.cc:1158:20: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (!access(Z_PROCESS_FAILURE_NOTIFICATION, R_OK | X_OK)) data/libzorpll-7.0.4.0/src/process.cc:1197:31: [4] (shell) execlp: 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. execlp(Z_PROCESS_FAILURE_NOTIFICATION, Z_PROCESS_FAILURE_NOTIFICATION, data/libzorpll-7.0.4.0/src/ssl.cc:723:11: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(ca_dir, R_OK | X_OK) < 0) data/libzorpll-7.0.4.0/src/ssl.cc:739:15: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(crl_dir, R_OK | X_OK) < 0) data/libzorpll-7.0.4.0/src/zorp/zorpll/blob.h:98:22: [4] (shell) system: 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. ZBlobSystem *system; /**< blob system it belongs to */ data/libzorpll-7.0.4.0/src/zorp/zorpll/log.h:60:96: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. void z_llog(const gchar *class_, int level, const gchar *format, ...) __attribute__ ((format(printf, 3, 4))); data/libzorpll-7.0.4.0/tests/test_blob.cc:32:3: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vprintf(fmt, vl); data/libzorpll-7.0.4.0/src/log.cc:355: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. g_strlcpy(fn, getenv("windir"), sizeof(fn)); data/libzorpll-7.0.4.0/src/memtrace.cc:180:11: [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. if (getenv(ZORP_ENV_MEMTRACE)) data/libzorpll-7.0.4.0/src/memtrace.cc:183: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. if (getenv(ZORP_ENV_MEMTRACE_CANARIES)) data/libzorpll-7.0.4.0/src/memtrace.cc:186: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. if (getenv(ZORP_ENV_MEMTRACE_HARD)) data/libzorpll-7.0.4.0/src/memtrace.cc:189: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. if (getenv(ZORP_ENV_MEMTRACE_FULL)) data/libzorpll-7.0.4.0/src/process.cc:737:11: [3] (misc) chroot: chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22). Make sure the program immediately chdir("/"), closes file descriptors, and drops root privileges, and that all necessary files (and no more!) are in the new root. if (chroot(process_opts.chroot_dir) < 0) data/libzorpll-7.0.4.0/src/process.cc:1428:43: [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. const char *watchdog_usec_env_str = getenv("WATCHDOG_USEC"); data/libzorpll-7.0.4.0/src/random.cc:147:57: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (RAND_bytes(reinterpret_cast<unsigned char *>(&random), sizeof(random)) != 1) data/libzorpll-7.0.4.0/src/random.cc:147:73: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (RAND_bytes(reinterpret_cast<unsigned char *>(&random), sizeof(random)) != 1) data/libzorpll-7.0.4.0/src/random.cc:150:14: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. } while (random >= (rand_max - (rand_max % max))); data/libzorpll-7.0.4.0/src/random.cc:152:10: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. return random %= max; data/libzorpll-7.0.4.0/src/sockaddr.cc:490:12: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. gboolean random; data/libzorpll-7.0.4.0/src/stackdump.cc:321:15: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. hMiniDump = LoadLibrary("dbghelp.dll"); data/libzorpll-7.0.4.0/src/zorp/zorpll/process.h:39:40: [3] (misc) chroot: chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22). Make sure the program immediately chdir("/"), closes file descriptors, and drops root privileges, and that all necessary files (and no more!) are in the new root. void z_process_set_chroot(const gchar *chroot); data/libzorpll-7.0.4.0/tests/test_conns.cc:41:24: [3] (tmpfile) tmpnam: Temporary file race condition (CWE-377). TempFile() { name = tmpnam(NULL); }; data/libzorpll-7.0.4.0/src/blob.cc:691:14: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). self->fd = mkstemp(self->filename); data/libzorpll-7.0.4.0/src/code_base64.cc:81:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char xlat[64] = data/libzorpll-7.0.4.0/src/connect.cc:83:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf1[MAX_SOCKADDR_STRING], buf2[MAX_SOCKADDR_STRING]; data/libzorpll-7.0.4.0/src/crypt.cc:74:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char final[16]; data/libzorpll-7.0.4.0/src/log.cc:40:11: [2] (misc) open: 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). # define open _open data/libzorpll-7.0.4.0/src/log.cc:353:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fn[256]; data/libzorpll-7.0.4.0/src/log.cc:359:19: [2] (misc) open: 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). if((syslog_fd = open(fn, _O_APPEND | _O_RDWR | _O_CREAT, _S_IREAD | _S_IWRITE )) == -1) data/libzorpll-7.0.4.0/src/memtrace.cc:384:26: [2] (misc) open: 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). mem_trace_log_fd = open(mem_trace_filename, O_CREAT | O_WRONLY | O_APPEND, 0600); data/libzorpll-7.0.4.0/src/memtrace.cc:423:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char backtrace_buf[MEMTRACE_BACKTRACE_BUF_LEN]; data/libzorpll-7.0.4.0/src/misc.cc:392:7: [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(line, bufc, i); data/libzorpll-7.0.4.0/src/misc.cc:639:3: [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(result, localtime(timep), sizeof(struct tm)); data/libzorpll-7.0.4.0/src/packetbuf.cc:45:3: [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(self->data, data, length); data/libzorpll-7.0.4.0/src/packetbuf.cc:532:5: [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(res, self->data + self->pos, n); data/libzorpll-7.0.4.0/src/packetbuf.cc:570:11: [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(res, self->data + self->pos, n); data/libzorpll-7.0.4.0/src/packetbuf.cc:603:11: [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(res, self->data + self->pos, n); data/libzorpll-7.0.4.0/src/packetbuf.cc:636:11: [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(res, self->data + self->pos, n); data/libzorpll-7.0.4.0/src/packetbuf.cc:659:5: [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(self->data + self->pos, res, n); data/libzorpll-7.0.4.0/src/packetbuf.cc:692:11: [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(self->data + self->pos, res, n); data/libzorpll-7.0.4.0/src/packetbuf.cc:721:11: [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(self->data + self->pos, res, n); data/libzorpll-7.0.4.0/src/packetbuf.cc:750:11: [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(self->data + self->pos, res, n); data/libzorpll-7.0.4.0/src/process.cc:394:3: [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(process_opts.argv_orig, process_opts.argv_start, process_opts.argv_env_len); data/libzorpll-7.0.4.0/src/process.cc:564:20: [2] (misc) open: 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). devnull_fd = open("/dev/null", O_RDONLY); data/libzorpll-7.0.4.0/src/process.cc:570:20: [2] (misc) open: 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). devnull_fd = open("/dev/null", O_WRONLY); data/libzorpll-7.0.4.0/src/process.cc:654:8: [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). fd = fopen(pidfile, "w"); data/libzorpll-7.0.4.0/src/process.cc:677:7: [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). f = fopen(pidfile, "r"); data/libzorpll-7.0.4.0/src/process.cc:938:21: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ret_num = atoi(ret_buf); data/libzorpll-7.0.4.0/src/process.cc:1258:11: [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(process_opts.argv_start, process_opts.argv_orig, process_opts.argv_env_len); data/libzorpll-7.0.4.0/src/sockaddr.cc:301:3: [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(self, addr, sizeof(*self)); data/libzorpll-7.0.4.0/src/sockaddr.cc:313:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[32]; data/libzorpll-7.0.4.0/src/sockaddr.cc:334:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[32]; data/libzorpll-7.0.4.0/src/sockaddr.cc:456:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hostbuf[1024]; data/libzorpll-7.0.4.0/src/sockaddr.cc:457:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[32]; data/libzorpll-7.0.4.0/src/sockaddr.cc:593:3: [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(self, addr, sizeof(*self)); data/libzorpll-7.0.4.0/src/sockaddr.cc:764:3: [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(self, addr, sizeof(*self)); data/libzorpll-7.0.4.0/src/sockaddr.cc:776:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64]; data/libzorpll-7.0.4.0/src/sockaddr.cc:797:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64]; data/libzorpll-7.0.4.0/src/sockaddr.cc:947:3: [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(self, addr, sizeof(*self)); data/libzorpll-7.0.4.0/src/sockaddr.cc:1052:7: [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(&self->saun, saun, sunlen); data/libzorpll-7.0.4.0/src/socket.cc:81:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sabuf[1024]; data/libzorpll-7.0.4.0/src/socket.cc:227:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sabuf[1500]; data/libzorpll-7.0.4.0/src/socket.cc:254:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sabuf[1500]; data/libzorpll-7.0.4.0/src/socket.cc:277:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sabuf[1500]; data/libzorpll-7.0.4.0/src/ssl.cc:177:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char subject_name[512], issuer_name[512]; data/libzorpll-7.0.4.0/src/ssl.cc:295:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char subject_name[512], issuer_name[512]; data/libzorpll-7.0.4.0/src/ssl.cc:479:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char file_name[256]; data/libzorpll-7.0.4.0/src/ssl.cc:521:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/libzorpll-7.0.4.0/src/ssl.cc:577:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/libzorpll-7.0.4.0/src/ssl.cc:623:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/libzorpll-7.0.4.0/src/ssl.cc:874:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/libzorpll-7.0.4.0/src/stackdump.cc:123:8: [2] (misc) open: 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). fd = open("/proc/self/maps", O_RDONLY); data/libzorpll-7.0.4.0/src/stackdump.cc:451:13: [2] (buffer) TCHAR: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. TCHAR module_name[MAX_PATH] = _T(""); data/libzorpll-7.0.4.0/src/stackdump.cc:490:7: [2] (buffer) TCHAR: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. TCHAR module_name[MAX_PATH] = _T(""); data/libzorpll-7.0.4.0/src/stackdump.cc:548:10: [2] (buffer) TCHAR: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static TCHAR message_buffer[512]; data/libzorpll-7.0.4.0/src/stackdump.cc:596:3: [2] (buffer) TCHAR: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. TCHAR faulting_module_name[MAX_PATH]; data/libzorpll-7.0.4.0/src/stackdump.cc:715:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char file_name[MAX_PATH]; data/libzorpll-7.0.4.0/src/stackdump.cc:758:3: [2] (buffer) TCHAR: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. TCHAR file_name[MAX_PATH]; data/libzorpll-7.0.4.0/src/stackdump.cc:767:11: [2] (buffer) _tcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. Risk is low because the source is a constant string. _tcscpy(dot, _T("dmp")); data/libzorpll-7.0.4.0/src/stream.cc:1090:11: [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(buf, pack->data, pack->length); data/libzorpll-7.0.4.0/src/stream.cc:1100:11: [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(buf, pack->data, count); data/libzorpll-7.0.4.0/src/streamgzip.cc:856:7: [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(self->gzip_extra, extra, extra_len); data/libzorpll-7.0.4.0/src/streamline.cc:479:7: [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(line, b, len); data/libzorpll-7.0.4.0/src/zcp.cc:157:42: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). self->pending_session_id = atoi(split[0]); data/libzorpll-7.0.4.0/tests/test_base64.cc:92:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dummy[1024]; data/libzorpll-7.0.4.0/tests/test_codegzip.cc:29:7: [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(compressed + length, z_code_peek_result(gz), z_code_get_result_length(gz)); data/libzorpll-7.0.4.0/tests/test_registry.cc:11:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/libzorpll-7.0.4.0/tests/test_zcrypt.cc:21:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char result[128]; data/libzorpll-7.0.4.0/src/blob.cc:314:28: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). rd = read(best->fd, best->data, remain); data/libzorpll-7.0.4.0/src/blob.cc:830:11: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(1000); data/libzorpll-7.0.4.0/src/blob.cc:1091:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). rd = read(self->fd, data, remain); data/libzorpll-7.0.4.0/src/crypt.cc:94:9: [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). pwl = strlen(pw); data/libzorpll-7.0.4.0/src/log.cc:245:13: [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). len = strlen(buf); data/libzorpll-7.0.4.0/src/log.cc:262:13: [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). len = strlen(buf); data/libzorpll-7.0.4.0/src/log.cc:418:12: [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). len1 = strlen(glob); data/libzorpll-7.0.4.0/src/log.cc:422:12: [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). len2 = strlen(tag); data/libzorpll-7.0.4.0/src/log.cc:428:7: [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). if (strlen(glob) > strlen(tag)) data/libzorpll-7.0.4.0/src/log.cc:428:22: [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). if (strlen(glob) > strlen(tag)) data/libzorpll-7.0.4.0/src/misc.cc:165:11: [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). len = strlen(str); data/libzorpll-7.0.4.0/src/misc.cc:427:11: [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). len = strlen(s) + 1; data/libzorpll-7.0.4.0/src/misc.cc:467:11: [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). len = strlen(s) + 1; data/libzorpll-7.0.4.0/src/misc.cc:509:7: [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). if (strlen(port_range) == 0 ) data/libzorpll-7.0.4.0/src/packetbuf.cc:838: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). return z_pktbuf_put_u8s(self, strlen(str), (guint8 *) str); data/libzorpll-7.0.4.0/src/process.cc:382:43: [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). lastargv = process_opts.argv[i] + strlen(process_opts.argv[i]); data/libzorpll-7.0.4.0/src/process.cc:387:30: [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). lastargv = envp[i] + strlen(envp[i]); data/libzorpll-7.0.4.0/src/process.cc:936:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(*fd, ret_buf, sizeof(ret_buf)) > 0) data/libzorpll-7.0.4.0/src/sockaddr.cc:1022:72: [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). self->salen = sizeof(self->saun) - sizeof(self->saun.sun_path) + strlen(self->saun.sun_path) + 1; data/libzorpll-7.0.4.0/src/ssl.cc:1020:7: [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). n = strlen(str); data/libzorpll-7.0.4.0/src/stackdump.cc:134:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). rc = read(fd, buf + end, avail); data/libzorpll-7.0.4.0/src/stackdump.cc:765:11: [1] (buffer) _tcslen: 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). if (_tcslen(dot) >= 3) data/libzorpll-7.0.4.0/src/stackdump.cc:789:33: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # pragma section(".CRT$XIU", read) data/libzorpll-7.0.4.0/src/stream.cc:1112:37: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res = Z_FUNCS(self, ZStream)->read(self, buf, count, bytes_read, &local_error); data/libzorpll-7.0.4.0/src/streamgzip.cc:268:84: [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). if (self->gzip_origname && z_stream_write_chunk(sc, self->gzip_origname, 1 + strlen(self->gzip_origname), &bw, &local_error) != G_IO_STATUS_NORMAL) data/libzorpll-7.0.4.0/src/streamgzip.cc:271:82: [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). if (self->gzip_comment && z_stream_write_chunk(sc, self->gzip_comment, 1 + strlen(self->gzip_comment), &bw, &local_error) != G_IO_STATUS_NORMAL) data/libzorpll-7.0.4.0/src/thread.cc:190:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(self->name, name, sizeof(self->name) - 1); data/libzorpll-7.0.4.0/src/zorp/zorpll/log.h:84:43: [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). __res = z_log_enabled_len(class_, strlen(class_), level); \ data/libzorpll-7.0.4.0/src/zorp/zorpll/log.h:89:31: [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). z_log_enabled_len(class_, strlen(class_), level) data/libzorpll-7.0.4.0/src/zorp/zorpll/stream.h:133:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). GIOStatus (*read)(ZStream *stream, void *buf, gsize count, gsize *bytes_read, GError **err); data/libzorpll-7.0.4.0/tests/test_base64.cc:132:9: [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). len = strlen(src); data/libzorpll-7.0.4.0/tests/test_base64.cc:140:9: [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). len = strlen(src); data/libzorpll-7.0.4.0/tests/test_base64.cc:150:9: [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). len = strlen(src); data/libzorpll-7.0.4.0/tests/test_base64.cc:163:9: [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). len = strlen(src); data/libzorpll-7.0.4.0/tests/test_base64.cc:176:9: [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). len = strlen(src); data/libzorpll-7.0.4.0/tests/test_base64.cc:185:9: [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). len = strlen(src); data/libzorpll-7.0.4.0/tests/test_base64.cc:195:9: [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). len = strlen(src); data/libzorpll-7.0.4.0/tests/test_base64.cc:207:9: [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). len = strlen((char *) usrc); data/libzorpll-7.0.4.0/tests/test_blob.cc:82:7: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(TEST_DELAY); data/libzorpll-7.0.4.0/tests/test_readline.cc:77:31: [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). strlen(expected_outputs[i]) == length - 1 && data/libzorpll-7.0.4.0/tests/test_sockaddr.cc:33:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(s_sun.sun_path, "abcdef", sizeof(s_sun.sun_path)); data/libzorpll-7.0.4.0/tests/test_streams.cc:43:31: [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). z_stream_unget(stream, buf, strlen(buf), NULL); data/libzorpll-7.0.4.0/tests/test_streams.cc:111:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fds[1], buf, 6) < 0) data/libzorpll-7.0.4.0/tests/test_streams.cc:207:49: [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). if (extra_len != 5 || strncmp(extra, "extra", strlen("extra")) != 0) ANALYSIS SUMMARY: Hits = 142 Lines analyzed = 29119 in approximately 0.69 seconds (42358 lines/second) Physical Source Lines of Code (SLOC) = 18520 Hits@level = [0] 46 [1] 44 [2] 66 [3] 15 [4] 15 [5] 2 Hits@level+ = [0+] 188 [1+] 142 [2+] 98 [3+] 32 [4+] 17 [5+] 2 Hits/KSLOC@level+ = [0+] 10.1512 [1+] 7.66739 [2+] 5.29158 [3+] 1.72786 [4+] 0.917927 [5+] 0.107991 Dot directories skipped = 2 (--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.