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/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c Examining data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_base.c Examining data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_base.h Examining data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c Examining data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.h Examining data/greenbone-security-assistant-7.0.3+dfsg.1/src/validator.c Examining data/greenbone-security-assistant-7.0.3+dfsg.1/src/validator.h Examining data/greenbone-security-assistant-7.0.3+dfsg.1/src/xslt_i18n.c Examining data/greenbone-security-assistant-7.0.3+dfsg.1/src/xslt_i18n.h FINAL RESULTS: data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:5343:23: [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 (xsl_filename, R_OK) != 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:5352:31: [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 (xsl_filename, R_OK) != 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:5909:3: [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. vsnprintf (buf, sizeof (buf), fmt, ap); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:3660:8: [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. tz = getenv ("TZ") ? g_strdup (getenv ("TZ")) : NULL; data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:3660:34: [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. tz = getenv ("TZ") ? g_strdup (getenv ("TZ")) : NULL; data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:5705: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 (GSA_DATA_DIR)) data/greenbone-security-assistant-7.0.3+dfsg.1/src/xslt_i18n.c:161:22: [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. old_LANGUAGE = getenv ("LANGUAGE"); data/greenbone-security-assistant-7.0.3+dfsg.1/src/xslt_i18n.c:321:22: [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. old_LANGUAGE = getenv ("LANGUAGE"); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:2255: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 ctime_now[200]; data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:2325: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 ctime_now[200]; data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:2397: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 ctime_now[200]; data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:2439: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 ctime_now[200]; data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:2470: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 ctime_now[200]; data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:2979: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 buf[1]; data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:3136:29: [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). credentials->charts = atoi (charts); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:3652: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 expires[EXPIRES_LENGTH + 1]; data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:3729: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 expires[EXPIRES_LENGTH + 1]; data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:3861: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 host[NI_MAXHOST]; data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:4132: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 uri[MAX_HOST_LEN]; data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:4208: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 name[MAX_HOST_LEN + 1]; data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:4315: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 date_2822[DATE_2822_LEN]; data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:4336:10: [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). file = fopen (path, "r"); /* this file is just read and sent */ data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:4720: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 ctime_now[200]; data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:4863: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 ctime_now[200]; data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:4922: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 ctime_now[200]; data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:5036: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 ctime_now[200]; data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:5294: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 ctime_now[200]; data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:5907: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[1024]; data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:6412:19: [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). gsad_port = atoi (gsad_port_string); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:6423:27: [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). gsad_manager_port = atoi (gsad_manager_port_string); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:6479:28: [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). gsad_redirect_port = atoi (gsad_redirect_port_string); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_base.c:357:16: [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). content_fd = mkstemp (content_file); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_base.c:514: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 ctime_now[200]; data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_base.c:854: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 (value + chunk_offset, chunk_data, chunk_size); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_base.c:868: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 (param->value + chunk_offset, data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:483: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 ctime_now[200]; data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:2075:27: [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). ? atoi (params_value(params, "no_filter_history")) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:7647:28: [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). if (xml_param == NULL || atoi (xml_param) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:8115:18: [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). notice = atoi (param->value); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:13460:14: [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). && atoi (params_value (params, "delta_state_changed"))) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:13463:14: [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). && atoi (params_value (params, "delta_state_gone"))) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:13466:14: [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). && atoi (params_value (params, "delta_state_new"))) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:13469:14: [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). && atoi (params_value (params, "delta_state_same"))) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:13481:14: [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). && atoi (params_value (params, "level_high"))) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:13484:14: [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). && atoi (params_value (params, "level_medium"))) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:13487:14: [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). && atoi (params_value (params, "level_low"))) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:13490:14: [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). && atoi (params_value (params, "level_log"))) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:13493:14: [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). && atoi (params_value (params, "level_false_positive"))) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:15498:15: [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). num = atoi (port); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:16211:15: [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). num = atoi (port); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:17598:31: [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). duration = given_duration ? atoi (given_duration) : 86400; data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:17644:41: [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). start_time.tm_year = start_year ? atoi (start_year) - 1900 data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:17646:41: [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). start_time.tm_mon = start_month ? atoi (start_month) - 1 data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:17648:40: [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). start_time.tm_mday = start_day ? atoi (start_day) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:17650:41: [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). start_time.tm_hour = start_hour ? atoi (start_hour) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:17652: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). start_time.tm_min = start_minute ? atoi (start_minute) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:17655:37: [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). end_time.tm_year = end_year ? atoi (end_year) - 1900 data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:17657:37: [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). end_time.tm_mon = end_month ? atoi (end_month) - 1 data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:17659:36: [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). end_time.tm_mday = end_day ? atoi (end_day) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:17661:37: [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). end_time.tm_hour = end_hour ? atoi (end_hour) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:17663:38: [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). end_time.tm_min = end_minute ? atoi (end_minute) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:17786: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 name[501]; data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:17835:45: [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). start_time.tm_year = start_year ? atoi (start_year) - 1900 data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:17837:45: [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). start_time.tm_mon = start_month ? atoi (start_month) - 1 data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:17839:44: [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). start_time.tm_mday = start_day ? atoi (start_day) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:17841:45: [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). start_time.tm_hour = start_hour ? atoi (start_hour) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:17843:46: [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). start_time.tm_min = start_minute ? atoi (start_minute) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:17847:41: [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). end_time.tm_year = end_year ? atoi (end_year) - 1900 data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:17849:41: [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). end_time.tm_mon = end_month ? atoi (end_month) - 1 data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:17851:40: [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). end_time.tm_mday = end_day ? atoi (end_day) : now_broken->tm_mday; data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:17852:41: [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). end_time.tm_hour = end_hour ? atoi (end_hour) : now_broken->tm_hour; data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:17853: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). end_time.tm_min = end_minute ? atoi (end_minute) : now_broken->tm_min; data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:21532: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). include_related = atoi (params_value (params, "include_related")); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:25286: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 ctime_now[200]; data/greenbone-security-assistant-7.0.3+dfsg.1/src/xslt_i18n.c:444:32: [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). int arg_number = atoi (number_str->str); data/greenbone-security-assistant-7.0.3+dfsg.1/src/xslt_i18n.c:619:21: [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). lang_names_file = fopen (GSA_DATA_DIR "/language_names.tsv", "r"); data/greenbone-security-assistant-7.0.3+dfsg.1/src/xslt_i18n.c:684:21: [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). mo_file = fopen (lang_mo_path, "r"); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:1822:41: [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 ((strncmp (name, "bulk_selected:", strlen ("bulk_selected:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:1823:40: [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). || (strncmp (name, "chart_gen:", strlen ("chart_gen:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:1824:41: [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). || (strncmp (name, "chart_init:", strlen ("chart_init:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:1825:45: [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). || (strncmp (name, "condition_data:", strlen ("condition_data:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:1826: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). || (strncmp (name, "data_columns:", strlen ("data_columns:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:1827:41: [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). || (strncmp (name, "event_data:", strlen ("event_data:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:1828:47: [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). || (strncmp (name, "settings_changed:", strlen ("settings_changed:")) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:1830:47: [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). || (strncmp (name, "settings_default:", strlen ("settings_default:")) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:1832:46: [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). || (strncmp (name, "settings_filter:", strlen ("settings_filter:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:1833:35: [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). || (strncmp (name, "file:", strlen ("file:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:1834:46: [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). || (strncmp (name, "include_id_list:", strlen ("include_id_list:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:1835:40: [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). || (strncmp (name, "parameter:", strlen ("parameter:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:1836:39: [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). || (strncmp (name, "password:", strlen ("password:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:1837:41: [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). || (strncmp (name, "preference:", strlen ("preference:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:1838:37: [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). || (strncmp (name, "select:", strlen ("select:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:1839: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). || (strncmp (name, "text_columns:", strlen ("text_columns:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:1840:36: [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). || (strncmp (name, "trend:", strlen ("trend:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:1841:42: [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). || (strncmp (name, "method_data:", strlen ("method_data:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:1842:34: [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). || (strncmp (name, "nvt:", strlen ("nvt:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:1843:48: [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). || (strncmp (name, "alert_id_optional:", strlen ("alert_id_optional:")) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:1845:48: [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). || (strncmp (name, "group_id_optional:", strlen ("group_id_optional:")) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:1847:47: [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). || (strncmp (name, "role_id_optional:", strlen ("role_id_optional:")) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:1849:38: [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). || (strncmp (name, "related:", strlen ("related:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:1850:42: [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). || (strncmp (name, "sort_fields:", strlen ("sort_fields:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:1851:42: [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). || (strncmp (name, "sort_orders:", strlen ("sort_orders:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:1852:41: [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). || (strncmp (name, "sort_stats:", strlen ("sort_stats:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:1853:39: [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). || (strncmp (name, "y_fields:", strlen ("y_fields:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:1854:39: [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). || (strncmp (name, "z_fields:", strlen ("z_fields:")) == 0)) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:1864: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). if ((colon - name) == (strlen (name) - 1)) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:2805:41: [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 ((strncmp (name, "bulk_selected:", strlen ("bulk_selected:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:2806:40: [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). || (strncmp (name, "chart_gen:", strlen ("chart_gen:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:2807:41: [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). || (strncmp (name, "chart_init:", strlen ("chart_init:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:2808:45: [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). || (strncmp (name, "condition_data:", strlen ("condition_data:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:2809: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). || (strncmp (name, "data_columns:", strlen ("data_columns:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:2810:41: [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). || (strncmp (name, "event_data:", strlen ("event_data:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:2811:47: [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). || (strncmp (name, "settings_changed:", strlen ("settings_changed:")) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:2813:47: [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). || (strncmp (name, "settings_default:", strlen ("settings_default:")) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:2815:46: [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). || (strncmp (name, "settings_filter:", strlen ("settings_filter:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:2816:35: [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). || (strncmp (name, "file:", strlen ("file:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:2817:46: [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). || (strncmp (name, "include_id_list:", strlen ("include_id_list:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:2818:40: [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). || (strncmp (name, "parameter:", strlen ("parameter:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:2819:39: [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). || (strncmp (name, "password:", strlen ("password:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:2820:41: [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). || (strncmp (name, "preference:", strlen ("preference:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:2821:37: [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). || (strncmp (name, "select:", strlen ("select:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:2822: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). || (strncmp (name, "text_columns:", strlen ("text_columns:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:2823:36: [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). || (strncmp (name, "trend:", strlen ("trend:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:2824:42: [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). || (strncmp (name, "method_data:", strlen ("method_data:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:2825:34: [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). || (strncmp (name, "nvt:", strlen ("nvt:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:2826:48: [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). || (strncmp (name, "alert_id_optional:", strlen ("alert_id_optional:")) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:2828:48: [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). || (strncmp (name, "group_id_optional:", strlen ("group_id_optional:")) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:2830:47: [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). || (strncmp (name, "role_id_optional:", strlen ("role_id_optional:")) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:2832:38: [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). || (strncmp (name, "related:", strlen ("related:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:2833:42: [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). || (strncmp (name, "sort_fields:", strlen ("sort_fields:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:2834:42: [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). || (strncmp (name, "sort_orders:", strlen ("sort_orders:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:2835:41: [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). || (strncmp (name, "sort_stats:", strlen ("sort_stats:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:2836:39: [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). || (strncmp (name, "y_fields:", strlen ("y_fields:")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:2837:39: [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). || (strncmp (name, "z_fields:", strlen ("z_fields:")) == 0)) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:2847: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). if ((colon - name) == (strlen (name) - 1)) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:2849:51: [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). params_append_bin (params, name, value, strlen (value), 0); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:2867:59: [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). params_append_bin (param->values, colon + 1, value, strlen (value), 0); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:2897:59: [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). params_append_bin (param->values, index_str, value, strlen (value), 0); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:3067:25: [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 ((cmd != NULL) && (strlen (cmd) <= CMD_MAX_SIZE)) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:3930: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). if (host_header == NULL || strlen (host_header) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:3940:21: [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). for (char_index = strlen (host_header) - 1; data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:4013:52: [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). size_t size = (content_length ? content_length : strlen (content)); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:4073:47: [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). response = MHD_create_response_from_buffer (strlen (body), body, data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:4350:51: [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). response = MHD_create_response_from_buffer (strlen (msg), data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:4398:46: [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). ret = MHD_create_response_from_buffer (strlen (res), (void *) res, data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:4535:21: [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 (full_url->str[strlen (full_url->str) - 1] == '&') data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:4536: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). full_url->str[strlen (full_url->str) - 1] = '\0'; data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:4565:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (client_address, x_real_ip, INET6_ADDRSTRLEN); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:4567:5: [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 (client_address, "unix_socket", INET6_ADDRSTRLEN); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:4683: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). && (!strncmp (&url[0], "/login/", strlen ("/login/"))) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:4684:17: [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). && !url[strlen ("/login/")]) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:4756:55: [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). response = MHD_create_response_from_buffer (strlen (res), res, data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:4790:34: [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 (strncmp (url, "/img/", strlen ("/img/")) == 0 data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:4791:36: [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). || strncmp (url, "/js/", strlen ("/js/")) == 0 data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:4792:37: [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). || strncmp (url, "/css/", strlen ("/css/")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:4901:55: [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). response = MHD_create_response_from_buffer (strlen (res), res, data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:4938: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). if (strncmp (cmd, "export", strlen ("export")) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:4968:57: [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 ((export == 0) && strncmp (url, "/logout", strlen ("/logout"))) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:4982:44: [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 (strncmp (url, "/logout", strlen ("/logout"))) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:4992:48: [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). ? (strncmp (url, "/logout", strlen ("/logout")) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:5015:55: [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). response = MHD_create_response_from_buffer (strlen (res), res, data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:5032:37: [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 (!strncmp (url, "/logout", strlen ("/logout"))) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:5073:55: [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). response = MHD_create_response_from_buffer (strlen (res), res, data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:5121:44: [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 (!strncmp (&url[0], omp_cgi_base, strlen (omp_cgi_base))) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:5141:25: [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_len = strlen (res); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:5174:26: [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 ("/system_report/"))) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:5208:56: [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). &url[0] + strlen ("/system_report/"), data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:5245:25: [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_len = strlen (res); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:5263:26: [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 ("/help/"))) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:5418:55: [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). response = MHD_create_response_from_buffer (strlen (res), res, data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:5438:55: [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). response = MHD_create_response_from_buffer (strlen (msg), data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:5767:21: [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 (*text && text[strlen (text) -1] != '\n') data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:5931:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (addr.sun_path, unix_socket_path, sizeof (addr.sun_path)); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:5937:17: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). oldmask = umask (~ustat.st_mode); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad.c:5947:5: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask (oldmask); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_base.c:308:35: [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). doc = xmlParseMemory (xml_text, strlen (xml_text)); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_base.c:369:48: [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). g_file_set_contents (content_file, xml_text, strlen (xml_text), &error); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_base.c:821:23: [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). param->value_size = strlen (value); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:571:41: [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 (refresh_interval)) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:629:21: [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 ((name[strlen (name) - 1] == ':') && param->values) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:872: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). || (strlen (status) == 0)) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:1127:10: [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 (status) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:1221: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). if (credentials->caller && strlen (credentials->caller)) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:1367: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). == param_name + strlen (param_name) - strlen ("_id")) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:1367:55: [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). == param_name + strlen (param_name) - strlen ("_id")) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:2625:37: [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 (format_name_entity && strlen (entity_text (format_name_entity))) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:2811:21: [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). *content_length = strlen (content); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:2991:21: [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). *content_length = strlen (content); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:3045:27: [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). param->value_size = strlen (param->value); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:3459:46: [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). (openvas_config && strlen (openvas_config)) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:3466:38: [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). (target && strlen (target)) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:3881: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 (xml_file) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:5457:29: [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). filt_id->value_size = strlen (filt_id->value); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:6407:15: [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 (package_encoded)) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:7171:15: [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 (package_encoded)) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:7196:34: [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 (!(*filename && strlen (*filename))) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:9286:41: [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). (port_list && strlen (port_list)) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:13159:29: [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). *content_length = strlen (content); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:13405:25: [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 (autofp == NULL || strlen (autofp) == 0) autofp = "0"; data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:13407: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). if (autofp_value == NULL || strlen (autofp_value) == 0) autofp_value = "1"; data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:13412:24: [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 (notes == NULL || strlen (notes) == 0) notes = "1"; data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:13414:28: [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 (overrides == NULL || strlen (overrides) == 0) overrides = "1"; data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:13416:36: [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 (result_hosts_only == NULL || strlen (result_hosts_only) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:13473: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 (delta_states->str) == 0) g_string_append (delta_states, "gn"); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:13499: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). if (strlen (levels->str) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:13502: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). else if (strlen (levels->str) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:13583:15: [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 (status) == 0)) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:14823: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). *response_size = strlen (cert); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:14860: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). *response_size = strlen (unescaped); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:14896: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). *response_size = strlen (unescaped); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:17922:29: [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 (content_64 && strlen (content_64)) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:18307: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). value_64 = strlen (value) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:18308:60: [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). ? g_base64_encode ((guchar *) value, strlen (value)) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:19166: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). strlen (param->value)); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:19266: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 (passwd) || strlen (old_passwd)) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:19266:27: [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 (passwd) || strlen (old_passwd)) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:19310:54: [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). passwd_64 = g_base64_encode ((guchar*) passwd, strlen (passwd)); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:19346: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 (status && (strlen (status) > 0) && (status[0] == '2')) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:19364:50: [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). text_64 = g_base64_encode ((guchar*) text, strlen (text)); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:19400: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 (status && (strlen (status) > 0) && (status[0] == '2')) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:19403:45: [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). credentials->timezone = g_strdup (strlen (text) ? text : "UTC"); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:19404: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). *timezone = g_strdup (strlen (text) ? text : "UTC"); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:19428:48: [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). max_64 = g_base64_encode ((guchar*) max, strlen (max)); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:19478:60: [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). fname_64 = g_base64_encode ((guchar*) details_fname, strlen (details_fname)); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:19528:57: [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). fname_64 = g_base64_encode ((guchar*) list_fname, strlen (list_fname)); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:19578:59: [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). fname_64 = g_base64_encode ((guchar*) report_fname, strlen (report_fname)); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:19628:50: [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). lang_64 = g_base64_encode ((guchar*) lang, strlen (lang)); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:19728:56: [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). ? g_base64_encode ((guchar*) text, strlen (text)) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:19769: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 (status && (strlen (status) > 0) && (status[0] == '2')) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:19772:34: [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 ((text != NULL) && (strlen (text) > 0)) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:19793:56: [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). ? g_base64_encode ((guchar*) text, strlen (text)) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:19846:56: [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). ? g_base64_encode ((guchar*) text, strlen (text)) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:19900:56: [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). ? g_base64_encode ((guchar*) text, strlen (text)) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:20067:23: [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). *content_length = strlen (content); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:20084: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). if (strlen (content_64) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:22319: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). (resource_id && strlen (resource_id)) ? resource_id : "0", data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:23904:24: [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 (filter_id && strlen (filter_id)) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:25471:24: [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 (status && (strlen (status) > 0) && (status[0] == '2')) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:26009:38: [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 (*pref_value)); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:27183:27: [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). param->value_size = strlen (param->value); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:27559:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (address.sun_path, path, sizeof (address.sun_path) - 1); data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:27711:14: [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 (status) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/gsad_omp.c:27752:14: [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 (status) == 0) data/greenbone-security-assistant-7.0.3+dfsg.1/src/xslt_i18n.c:429:36: [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). result_str = g_string_sized_new (strlen (format_string)); data/greenbone-security-assistant-7.0.3+dfsg.1/src/xslt_i18n.c:431:23: [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). format_string_len = strlen (format_string); data/greenbone-security-assistant-7.0.3+dfsg.1/src/xslt_i18n.c:671:14: [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 (entry->d_name) >= 2 ANALYSIS SUMMARY: Hits = 246 Lines analyzed = 37655 in approximately 1.00 seconds (37604 lines/second) Physical Source Lines of Code (SLOC) = 27837 Hits@level = [0] 20 [1] 169 [2] 69 [3] 5 [4] 3 [5] 0 Hits@level+ = [0+] 266 [1+] 246 [2+] 77 [3+] 8 [4+] 3 [5+] 0 Hits/KSLOC@level+ = [0+] 9.55563 [1+] 8.83716 [2+] 2.7661 [3+] 0.287387 [4+] 0.10777 [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.