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/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c
Examining data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h
Examining data/modsecurity-crs-3.3.0/util/av-scanning/runAV/runAV-clamd.c
Examining data/modsecurity-crs-3.3.0/util/av-scanning/runAV/runAV.c

FINAL RESULTS:

data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:43:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(line,"%s:REQUEST-BEGIN:======================================\n",time_str);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:66:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(line,"%s:REQUEST-END:========================================\n",time_str);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:79:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(real_level,modsec_rpc_log_level);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:82:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(modsec_rpc_log_level,real_level);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:122:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(out,strerror(err));
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:184:11:  [4] (shell) popen:
  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 (!(fp=popen(command,"r"))) {
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:190:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(output, line);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:231:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		if (sscanf(line,"%[^=]=%s",parameters[i].name,parameters[i].value) != 2) 
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:255:3:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		sscanf(line,"%[^=]=%s",name,value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:380:8:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
			if (sscanf(args[i],"%[^=]=%s",name,value) < 2)
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:383:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(parameters[num_of_params].name,name);	
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:386:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(parameters[num_of_params].value,value);	
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:459:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(blocklist[j].ip,blocklist[j+1].ip);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:463:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(blocklist[j].token,blocklist[j+1].token);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:478:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(modsec_cli_home,parameters[idx].value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:480:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(modsec_rpc_home,parameters[idx].value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:483:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(modsec_rpc_log_file,parameters[idx].value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:486:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(modsec_rpc_log_level,parameters[idx].value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:489:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(modsec_rpc_ssl_lockfile,parameters[idx].value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:492:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(modsec_rpc_sensor_lockfile,parameters[idx].value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:495:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(modsec_rpc_reverseproxy_lockfile,parameters[idx].value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:498:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(modsec_rpc_externalnic_lockfile,parameters[idx].value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:501:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(modsec_rpc_mui_lockfile,parameters[idx].value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:504:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(modsec_rpc_log_level,parameters[idx].value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:507:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(modsec_proxy_home,parameters[idx].value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:510:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(modsec_proxy_ip,parameters[idx].value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:513:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(modsec_proxy_port,parameters[idx].value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:516:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(modsec_proxy_network_prefix,parameters[idx].value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:519:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(modsec_proxy_bin,parameters[idx].value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:522:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(modsec_proxy_conf,parameters[idx].value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:525:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(modsec_proxy_ext_nic,parameters[idx].value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:528:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(modsec_proxy_pid,parameters[idx].value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:531:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(modsec_proxy_whitelist,parameters[idx].value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:534:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(modsec_proxy_blacklist,parameters[idx].value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:537:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(modsec_proxy_timeout,parameters[idx].value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:540:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(modsec_proxy_exchange,parameters[idx].value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:543:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(modsec_proxy_ext_ips,parameters[idx].value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:546:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(modsec_mui_ui_admin,parameters[idx].value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:549:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(modsec_rpc_password_file,parameters[idx].value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:552:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(modsec_mui_ui_ipaddress,parameters[idx].value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:555:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(modsec_mui_ui_port,parameters[idx].value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:558:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(sensor_id,parameters[idx].value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:561:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(serial,parameters[idx].value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:564:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(version_number,parameters[idx].value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:567:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(release_date,parameters[idx].value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:570:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(bridge_mode,parameters[idx].value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:573:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(data_disk_space,parameters[idx].value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:576:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(conn_rate,parameters[idx].value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:579:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(conn_rate_per_addr,parameters[idx].value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:582:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(conns,parameters[idx].value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:585:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(conns_per_addr,parameters[idx].value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:588:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(modsec_rpc,parameters[idx].value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:591:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(modsec_proxy,parameters[idx].value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:594:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(modsec_proxy_script,parameters[idx].value);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/runAV-clamd.c:12:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf (cmd, "/usr/bin/clamdscan --no-summary %s", argv[1]);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/runAV.c:12:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf (cmd, "/usr/bin/clamscan --no-summary %s", argv[1]);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:349:10:  [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.
	query = getenv("QUERY_STRING");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:353:24:  [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.
		content_length_env = getenv("CONTENT_LENGTH");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:644: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 (modsec = getenv("MODSEC"))
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:10:12:  [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 ((fd = open(filename,O_RDONLY | O_CREAT , S_IRWXU)) < 0) {
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:28:2:  [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 time_str[64], line[1024*1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:33:10:  [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).
	switch (atoi(modsec_rpc_log_level)) {
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:38:14:  [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 ((fd = open(modsec_rpc_log_file,O_WRONLY | O_CREAT | O_APPEND | O_SYNC , S_IRWXU)) < 0) {
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:54:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
					sprintf(line,"XXXXXXX\n");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:77:2:  [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 real_level[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:88:2:  [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 time_str[64];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:93:10:  [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).
	switch (atoi(modsec_rpc_log_level)) {
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:98:14:  [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 ((fd = open(modsec_rpc_log_file,O_WRONLY | O_CREAT | O_APPEND | O_SYNC , S_IRWXU)) < 0) {
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:113:2:  [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 out[1024], time_str[64], line[1024*1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:114:2:  [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 str1[1024], str2[1024], str3[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:144:12:  [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 ((fd = open(modsec_rpc_log_file,O_WRONLY | O_CREAT | O_APPEND | O_SYNC , S_IRWXU)) < 0) {
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:162:12:  [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).
	if ((fp = fopen(modsec_proxy_pid,"r")) == NULL )
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:180:2:  [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 line[1024]; 
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:213: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 line[1024], *ptr;
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:222:12:  [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).
	if ((fp = fopen(filename,"r")) == NULL ) {
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:243: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 line[1024], *name, *value;
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:250:12:  [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).
	if ((fp = fopen(filename,"r+")) == NULL )
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:269: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 line[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:275:13:  [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).
	if ((sfp = fopen(src_file,"r")) == NULL )
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:278:13:  [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).
	if ((dfp = fopen(dst_file,"w")) == NULL ) {
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:293:2:  [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 *ptr, *dst_ptr, num[3];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:358:18:  [2] (integer) atol:
  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).
		content_length=atol(content_length_env);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:375:2:  [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 name[MAX_NAME_LENGTH], value[MAX_VALUE_LENGTH];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:405:35:  [2] (integer) atol:
  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).
	servaddr.sin_port = htons((short)atol(port));
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:606:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(modsec_cli_home,"/opt/modsecurity-cli");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:607:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(modsec_rpc_home,"/opt/modsecurity-rpc");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:608:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(modsec_rpc_log_file,"/opt/modsecurity-rpc/var/logs/rpc.log");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:610:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(modsec_rpc_ssl_lockfile,"/opt/modsecurity-rpc/var/run/ssl.lock");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:611:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(modsec_rpc_sensor_lockfile,"/opt/modsecurity-rpc/var/run/sensor.lock");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:612:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(modsec_rpc_externalnic_lockfile,"/opt/modsecurity-rpc/var/run/externalnic.lock");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:613:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(modsec_rpc_reverseproxy_lockfile,"/opt/modsecurity-rpc/var/run/reverseproxy.lock");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:614:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(modsec_rpc_mui_lockfile,"/opt/modsecurity-rpc/var/run/mui.lock");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:615:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(modsec_proxy_home,"/opt/modsecurity-proxy");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:616:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(modsec_proxy_ip,"127.0.0.2");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:617:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(modsec_proxy_port,"80");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:618:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(modsec_proxy_bin,"/bin/modsec-proxyd");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:619:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(modsec_proxy_script,"/etc/init.d/modsec-proxy");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:620:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(modsec_proxy_conf,"/etc/httpd.conf");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:621:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(modsec_proxy_ext_nic,"eth0");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:622:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(modsec_proxy_network_prefix,"172.16.0.0/12");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:623:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(modsec_proxy_pid,"/opt/modsecurity-proxy/var/run/httpd.pid");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:624:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(modsec_proxy_whitelist,"/opt/breach/etc/modsec_whitelist.conf");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:625:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(modsec_proxy_blacklist,"/opt/breach/etc/modsec_blacklist.conf");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:626:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(modsec_proxy_timeout,"120");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:627:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(modsec_proxy_exchange,"/opt/modsecurity-proxy/var/exchange");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:628:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(modsec_proxy_ext_ips,"/opt/breach/etc/modsec_ips.conf");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:629:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(modsec_mui_ui_ipaddress,"127.0.0.1");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:630:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(modsec_mui_ui_port,"443");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:631:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(modsec_rpc_password_file,"/opt/modsecurity-rpc/etc/.htpasswd");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:632:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(modsec_mui_ui_admin,"admin");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:635:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(version_number,"2.0");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:636:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(bridge_mode,"off");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:637:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(data_disk_space,"60");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:638:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(release_date,"11-15-2006");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:29:2:  [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 name[MAX_NAME_LENGTH];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:30:2:  [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 value[MAX_VALUE_LENGTH];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:34:2:  [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 ip[16];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:38:2:  [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 token[MAX_TOKEN_LENGTH];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:61:8:  [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.
EXTERN char modsec_rpc[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:62:8:  [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.
EXTERN char modsec_rpc_home[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:63:8:  [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.
EXTERN char modsec_rpc_log_file[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:64:8:  [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.
EXTERN char modsec_rpc_log_level[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:65:8:  [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.
EXTERN char modsec_rpc_ssl_lockfile[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:66:8:  [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.
EXTERN char modsec_rpc_externalnic_lockfile[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:67:8:  [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.
EXTERN char modsec_rpc_sensor_lockfile[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:68:8:  [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.
EXTERN char modsec_rpc_reverseproxy_lockfile[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:69:8:  [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.
EXTERN char modsec_rpc_mui_lockfile[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:70:8:  [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.
EXTERN char modsec_proxy[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:71:8:  [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.
EXTERN char modsec_proxy_home[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:72:8:  [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.
EXTERN char modsec_proxy_script[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:73:8:  [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.
EXTERN char modsec_proxy_ip[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:74:8:  [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.
EXTERN char modsec_proxy_port[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:75:8:  [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.
EXTERN char modsec_proxy_bin[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:76:8:  [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.
EXTERN char modsec_proxy_conf[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:77:8:  [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.
EXTERN char modsec_proxy_ext_nic[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:78:8:  [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.
EXTERN char modsec_proxy_pid[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:79:8:  [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.
EXTERN char modsec_proxy_whitelist[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:80:8:  [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.
EXTERN char modsec_proxy_blacklist[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:81:8:  [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.
EXTERN char modsec_proxy_network_prefix[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:82:8:  [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.
EXTERN char modsec_proxy_timeout[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:83:8:  [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.
EXTERN char modsec_proxy_exchange[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:84:8:  [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.
EXTERN char modsec_proxy_ext_ips[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:85:8:  [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.
EXTERN char modsec_rpc_password_file[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:86:8:  [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.
EXTERN char modsec_mui_ui_admin[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:87:8:  [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.
EXTERN char modsec_mui_ui_ipaddress[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:88:8:  [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.
EXTERN char modsec_mui_ui_port[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:89:8:  [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.
EXTERN char modsec_cli_home[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:90:8:  [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.
EXTERN char sensor_id[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:91:8:  [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.
EXTERN char serial[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:92:8:  [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.
EXTERN char version_number[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:93:8:  [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.
EXTERN char bridge_mode[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:94:8:  [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.
EXTERN char data_disk_space[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:95:8:  [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.
EXTERN char release_date[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:96:8:  [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.
EXTERN char conn_rate[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:97:8:  [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.
EXTERN char conn_rate_per_addr[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:98:8:  [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.
EXTERN char conns[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.h:99:8:  [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.
EXTERN char conns_per_addr[1024];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/runAV-clamd.c:5:2:  [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 cmd[MAX_OUTPUT_SIZE];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/runAV-clamd.c:6:2:  [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 output[MAX_OUTPUT_SIZE];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/runAV.c:5:2:  [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 cmd[MAX_OUTPUT_SIZE];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/runAV.c:6:2:  [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 output[MAX_OUTPUT_SIZE];
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:37: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).
			time_str[strlen(time_str)-1] = '\0';
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:45:18:  [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).
			write(fd,line,strlen(line));
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:48:18:  [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).
			write(fd,line,strlen(line));
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:52:19:  [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).
				write(fd,line,strlen(line));
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:55:20:  [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).
					write(fd,line,strlen(line));
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:61:11:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
					else sprintf(line,"\n");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:62:20:  [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).
					write(fd,line,strlen(line));
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:67:18:  [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).
			write(fd,line,strlen(line));
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:80:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy(modsec_rpc_log_level,"1");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:97: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).
			time_str[strlen(time_str)-1] = '\0';
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:103:19:  [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).
			write(fd,reply,strlen(reply));
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:120: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).
	time_str[strlen(time_str)-1] = '\0';
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:124:3:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
		strcpy(out,"");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:126:3:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
		strcpy(str1,"");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:128:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(str1,func1,1024);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:132:3:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
		strcpy(str2,"");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:134:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(str2,func2,1024);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:138:3:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
		strcpy(str3,"");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:140:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(str3,str,1024);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:151:16:  [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).
	write(fd,line,strlen(line));
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:191:18:  [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).
		output_size -= strlen(line);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:363:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			i = read(0,query+body_len,(content_length-body_len)<1024?(content_length-body_len):1024);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:382:8:  [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(name) < MAX_NAME_LENGTH)
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:385:8:  [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(value) < MAX_VALUE_LENGTH) {
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:419:6:  [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).
	i = strlen(request);
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:429:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i = read(sock,reply+reply_len,(max_reply_size-reply_len)<1024?(max_reply_size-reply_len):1024); 
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:609:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy(modsec_rpc_log_level,"0");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:633:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy(sensor_id,"1");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:634:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy(serial,"1");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:639:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy(conn_rate,"0");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:640:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy(conn_rate_per_addr,"0");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:641:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy(conns,"0");
data/modsecurity-crs-3.3.0/util/av-scanning/runAV/common.c:642:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy(conns_per_addr,"0");

ANALYSIS SUMMARY:

Hits = 194
Lines analyzed = 847 in approximately 0.07 seconds (11794 lines/second)
Physical Source Lines of Code (SLOC) = 727
Hits@level = [0]  28 [1]  33 [2] 102 [3]   3 [4]  56 [5]   0
Hits@level+ = [0+] 222 [1+] 194 [2+] 161 [3+]  59 [4+]  56 [5+]   0
Hits/KSLOC@level+ = [0+] 305.365 [1+] 266.85 [2+] 221.458 [3+] 81.1554 [4+] 77.0289 [5+]   0
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.