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/inadyn-1.99.4/include/base64.h Examining data/inadyn-1.99.4/include/debug_if.h Examining data/inadyn-1.99.4/include/dyndns.h Examining data/inadyn-1.99.4/include/errorcode.h Examining data/inadyn-1.99.4/include/get_cmd.h Examining data/inadyn-1.99.4/include/http_client.h Examining data/inadyn-1.99.4/include/ip.h Examining data/inadyn-1.99.4/include/md5.h Examining data/inadyn-1.99.4/include/os.h Examining data/inadyn-1.99.4/include/psos_net.h Examining data/inadyn-1.99.4/include/sha1.h Examining data/inadyn-1.99.4/include/tcp.h Examining data/inadyn-1.99.4/src/base64.c Examining data/inadyn-1.99.4/src/dyndns.c Examining data/inadyn-1.99.4/src/errorcode.c Examining data/inadyn-1.99.4/src/get_cmd.c Examining data/inadyn-1.99.4/src/http_client.c Examining data/inadyn-1.99.4/src/inadyn_cmd.c Examining data/inadyn-1.99.4/src/ip.c Examining data/inadyn-1.99.4/src/main.c Examining data/inadyn-1.99.4/src/md5.c Examining data/inadyn-1.99.4/src/os.c Examining data/inadyn-1.99.4/src/os_psos.c Examining data/inadyn-1.99.4/src/os_unix.c Examining data/inadyn-1.99.4/src/os_windows.c Examining data/inadyn-1.99.4/src/sha1.c Examining data/inadyn-1.99.4/src/tcp.c FINAL RESULTS: data/inadyn-1.99.4/include/dyndns.h:241:16: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. DYNDNS_SYSTEM system; data/inadyn-1.99.4/src/dyndns.c:187:16: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. return &it->system; data/inadyn-1.99.4/src/dyndns.c:247:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. return sprintf(p_self->p_req_buffer, DYNDNS_UPDATE_IP_HTTP_REQUEST, data/inadyn-1.99.4/src/dyndns.c:300:21: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. http_tr.req_len = sprintf(p_self->p_req_buffer, GENERIC_HTTP_REQUEST, data/inadyn-1.99.4/src/dyndns.c:344:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. return sprintf(p_self->p_req_buffer, FREEDNS_UPDATE_IP_REQUEST, data/inadyn-1.99.4/src/dyndns.c:360:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. return sprintf(p_self->p_req_buffer, GENERIC_BASIC_AUTH_UPDATE_IP_REQUEST, data/inadyn-1.99.4/src/dyndns.c:375:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. return sprintf(p_self->p_req_buffer, ZONEEDIT_UPDATE_IP_REQUEST, data/inadyn-1.99.4/src/dyndns.c:391:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. return sprintf(p_self->p_req_buffer, EASYDNS_UPDATE_IP_REQUEST, data/inadyn-1.99.4/src/dyndns.c:408:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. return sprintf(p_self->p_req_buffer, TZO_UPDATE_IP_REQUEST, data/inadyn-1.99.4/src/dyndns.c:425:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. return sprintf(p_self->p_req_buffer, SITELUTIONS_UPDATE_IP_HTTP_REQUEST, data/inadyn-1.99.4/src/dyndns.c:442:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. return sprintf(p_self->p_req_buffer, DNSEXIT_UPDATE_IP_HTTP_REQUEST, data/inadyn-1.99.4/src/dyndns.c:467:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. return sprintf(p_self->p_req_buffer, HE_IPV6TB_UPDATE_IP_REQUEST, data/inadyn-1.99.4/src/dyndns.c:484:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. return sprintf(p_self->p_req_buffer, CHANGEIP_UPDATE_IP_HTTP_REQUEST, data/inadyn-1.99.4/src/dyndns.c:566:4: [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(info->my_ip_address.name, new_ip_str); data/inadyn-1.99.4/src/dyndns.c:586:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. return sprintf(p_self->p_req_buffer, DYNDNS_GET_IP_HTTP_REQUEST, data/inadyn-1.99.4/src/dyndns.c:699: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(info->my_ip_address.name, new_ip_str); data/inadyn-1.99.4/src/dyndns.c:1034:19: [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 (anychange || access(p_self->cache_file, F_OK)) data/inadyn-1.99.4/src/dyndns.c:1126:16: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. actual_len = sprintf(p_tmp_buff, format, data/inadyn-1.99.4/src/get_cmd.c:118: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(p, p_val); data/inadyn-1.99.4/src/inadyn_cmd.c:335: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(p_self->dbg.p_logfilename, p_cmd->argv[current_nr]); data/inadyn-1.99.4/src/inadyn_cmd.c:350: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(p_self->info[curr_info].credentials.my_username, p_cmd->argv[current_nr]); data/inadyn-1.99.4/src/inadyn_cmd.c:365: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(p_self->info[curr_info].credentials.my_password, (p_cmd->argv[current_nr])); data/inadyn-1.99.4/src/inadyn_cmd.c:383: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(p_self->info[curr_info].alias_info[p_self->info[curr_info].alias_count].names.name, (p_cmd->argv[current_nr])); data/inadyn-1.99.4/src/inadyn_cmd.c:408: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(p_dest_name, p_src); data/inadyn-1.99.4/src/inadyn_cmd.c:438: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(p_self->info[curr_info].ip_server_url, p_cmd->argv[current_nr + 1]); data/inadyn-1.99.4/src/inadyn_cmd.c:473: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(p_self->info[curr_info].dyndns_server_url, p_cmd->argv[current_nr]); data/inadyn-1.99.4/src/inadyn_cmd.c:604: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 the scanf format is influenceable by an attacker, it's exploitable. if (sscanf(arg, fmt, username) != 1) data/inadyn-1.99.4/src/inadyn_cmd.c:782:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (strcmp(it->system.p_key, p_cmd->argv[current_nr]) == 0) data/inadyn-1.99.4/src/inadyn_cmd.c:784:24: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. p_dns_system = &it->system; data/inadyn-1.99.4/src/inadyn_cmd.c:1204: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(p_self->info[i].ip_server_name.name, p_self->info[i].p_dns_system->p_ip_server_name); data/inadyn-1.99.4/src/inadyn_cmd.c:1211: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(p_self->info[i].ip_server_url, p_self->info[i].p_dns_system->p_ip_server_url); data/inadyn-1.99.4/src/inadyn_cmd.c:1222: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(p_self->info[i].dyndns_server_name.name, p_self->info[i].p_dns_system->p_dyndns_server_name); data/inadyn-1.99.4/src/inadyn_cmd.c:1229: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(p_self->info[i].dyndns_server_url, p_self->info[i].p_dns_system->p_dyndns_server_url); data/inadyn-1.99.4/src/inadyn_cmd.c:1251:8: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. if (snprintf(p_self->cache_file, cache_file_len + 1, DYNDNS_CACHE_FILE, data/inadyn-1.99.4/src/os.c:83:5: [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(message, sizeof(message), fmt, args); data/inadyn-1.99.4/src/os_unix.c:66:4: [4] (shell) execl: 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. execl("/bin/sh", "sh", "-c", p_cmd, (char *) 0); data/inadyn-1.99.4/include/debug_if.h:35: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 p_logfilename[1024]; data/inadyn-1.99.4/include/dyndns.h:253: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 my_username[DYNDNS_MY_USERNAME_LENGTH]; data/inadyn-1.99.4/include/dyndns.h:254: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 my_password[DYNDNS_MY_PASSWORD_LENGTH]; data/inadyn-1.99.4/include/dyndns.h:262: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[DYNDNS_SERVER_NAME_LENGTH]; data/inadyn-1.99.4/include/dyndns.h:280: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 dyndns_server_url[DYNDNS_SERVER_URL_LENGTH]; data/inadyn-1.99.4/include/dyndns.h:282: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_server_url[DYNDNS_SERVER_URL_LENGTH]; data/inadyn-1.99.4/include/http_client.h:52: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 status_desc[256]; data/inadyn-1.99.4/include/md5.h:39:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buffer[64]; /*!< data block being processed */ data/inadyn-1.99.4/include/md5.h:65:45: [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. void md5_finish( md5_context *ctx, unsigned char output[16] ); data/inadyn-1.99.4/include/md5.h:74:26: [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. void md5( const unsigned char *input, size_t ilen, unsigned char output[16] ); data/inadyn-1.99.4/include/md5.h:74:61: [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. void md5( const unsigned char *input, size_t ilen, unsigned char output[16] ); data/inadyn-1.99.4/include/sha1.h:39:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buffer[64]; /*!< data block being processed */ data/inadyn-1.99.4/include/sha1.h:65:47: [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. void sha1_finish( sha1_context *ctx, unsigned char output[20] ); data/inadyn-1.99.4/include/sha1.h:74:27: [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. void sha1( const unsigned char *input, size_t ilen, unsigned char output[20] ); data/inadyn-1.99.4/include/sha1.h:74:62: [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. void sha1( const unsigned char *input, size_t ilen, unsigned char output[20] ); data/inadyn-1.99.4/src/base64.c:28:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char base64_enc_map[64] = data/inadyn-1.99.4/src/base64.c:39:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char base64_dec_map[128] = data/inadyn-1.99.4/src/dyndns.c:261: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 buffer[256]; data/inadyn-1.99.4/src/dyndns.c:263: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. unsigned char digestbuf[SHA1_DIGEST_BYTES]; data/inadyn-1.99.4/src/dyndns.c:264: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 digeststr[SHA1_DIGEST_BYTES*2+1]; data/inadyn-1.99.4/src/dyndns.c:268: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 host[256], updateurl[256]; data/inadyn-1.99.4/src/dyndns.c:296:4: [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(&digeststr[i*2], "%02x", digestbuf[i]); data/inadyn-1.99.4/src/dyndns.c:453: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. unsigned char digestbuf[MD5_DIGEST_BYTES]; data/inadyn-1.99.4/src/dyndns.c:454: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 digeststr[MD5_DIGEST_BYTES*2+1]; data/inadyn-1.99.4/src/dyndns.c:466:3: [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(&digeststr[i*2], "%02x", digestbuf[i]); data/inadyn-1.99.4/src/dyndns.c:647: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 new_ip_str[IP_V4_MAX_LENGTH]; data/inadyn-1.99.4/src/dyndns.c:693:4: [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(new_ip_str, "%d.%d.%d.%d", ip1, ip2, ip3, ip4); data/inadyn-1.99.4/src/dyndns.c:1039:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen(p_self->cache_file, "w"); data/inadyn-1.99.4/src/dyndns.c:1528: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[DYNDNS_SERVER_NAME_LENGTH]; data/inadyn-1.99.4/src/dyndns.c:1599:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen(p_dyndns->pidfile, "w"); data/inadyn-1.99.4/src/dyndns.c:1615:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen(p_dyndns->cache_file, "r"); data/inadyn-1.99.4/src/inadyn_cmd.c:403: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(p_dest_name, p_src, len); data/inadyn-1.99.4/src/inadyn_cmd.c:588: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 groupname[33] = ""; /* MAX 32 chars + '\0', groupadd(8) */ data/inadyn-1.99.4/src/inadyn_cmd.c:589: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 username[login_len_max+1]; data/inadyn-1.99.4/src/inadyn_cmd.c:590: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 fmt[65]; /* Conversion string for username */ data/inadyn-1.99.4/src/inadyn_cmd.c:821:2: [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(p_buffer + *p_act_len,p_src, src_len); data/inadyn-1.99.4/src/inadyn_cmd.c:1044:14: [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). p_file = fopen(p_cmd->argv[current_nr], "r"); data/inadyn-1.99.4/src/ip.c:136:4: [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 port[10]; data/inadyn-1.99.4/src/md5.c:70:59: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static void md5_process( md5_context *ctx, const unsigned char data[64] ) data/inadyn-1.99.4/src/md5.c:215:9: [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( (void *) (ctx->buffer + left), data/inadyn-1.99.4/src/md5.c:232:9: [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( (void *) (ctx->buffer + left), data/inadyn-1.99.4/src/md5.c:237:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char md5_padding[64] = data/inadyn-1.99.4/src/md5.c:248:45: [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. void md5_finish( md5_context *ctx, unsigned char output[16] ) data/inadyn-1.99.4/src/md5.c:252:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char msglen[8]; data/inadyn-1.99.4/src/md5.c:276:26: [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. void md5( const unsigned char *input, size_t ilen, unsigned char output[16] ) data/inadyn-1.99.4/src/md5.c:276:61: [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. void md5( const unsigned char *input, size_t ilen, unsigned char output[16] ) data/inadyn-1.99.4/src/os.c:55:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char wday_name[7][3] = { data/inadyn-1.99.4/src/os.c:59:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char mon_name[12][3] = { data/inadyn-1.99.4/src/os.c:63:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char result[26]; data/inadyn-1.99.4/src/os.c:68:5: [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(result, "%.3s %.3s%3d %.2d:%.2d:%.2d %d:", data/inadyn-1.99.4/src/os.c:79:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char message[MAXSTRING + 1]; data/inadyn-1.99.4/src/os_unix.c:58:10: [2] (race) vfork: On some old systems, vfork() permits race conditions, and it's very difficult to use correctly (CWE-362). Use fork() instead. child = vfork(); data/inadyn-1.99.4/src/sha1.c:71:61: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static void sha1_process( sha1_context *ctx, const unsigned char data[64] ) data/inadyn-1.99.4/src/sha1.c:249:9: [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( (void *) (ctx->buffer + left), data/inadyn-1.99.4/src/sha1.c:266:9: [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( (void *) (ctx->buffer + left), data/inadyn-1.99.4/src/sha1.c:271:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char sha1_padding[64] = data/inadyn-1.99.4/src/sha1.c:282:47: [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. void sha1_finish( sha1_context *ctx, unsigned char output[20] ) data/inadyn-1.99.4/src/sha1.c:286:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char msglen[8]; data/inadyn-1.99.4/src/sha1.c:311:27: [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. void sha1( const unsigned char *input, size_t ilen, unsigned char output[20] ) data/inadyn-1.99.4/src/sha1.c:311:62: [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. void sha1( const unsigned char *input, size_t ilen, unsigned char output[20] ) data/inadyn-1.99.4/src/tcp.c:92: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 host[NI_MAXHOST]; data/inadyn-1.99.4/src/dyndns.c:294: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). sha1((unsigned char *)buffer, strlen(buffer), digestbuf); data/inadyn-1.99.4/src/dyndns.c:464: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). strlen(p_self->info[infcnt].credentials.my_password), digestbuf); data/inadyn-1.99.4/src/dyndns.c:1114: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). size = strlen(info->credentials.my_password) + data/inadyn-1.99.4/src/dyndns.c:1115:4: [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(info->credentials.my_username) + data/inadyn-1.99.4/src/dyndns.c:1116:4: [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(format) + 1; data/inadyn-1.99.4/src/dyndns.c:1137: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). base64_encode(NULL, &dlen, (unsigned char *)p_tmp_buff, strlen(p_tmp_buff)); data/inadyn-1.99.4/src/dyndns.c:1147:88: [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). rc2 = base64_encode((unsigned char *)p_b64_buff, &dlen, (unsigned char *)p_tmp_buff, strlen(p_tmp_buff)); data/inadyn-1.99.4/src/dyndns.c:1157: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). info->credentials.size = strlen(info->credentials.p_enc_usr_passwd_buffer); data/inadyn-1.99.4/src/dyndns.c:1384: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(info->proxy_server_name.name) > 0) data/inadyn-1.99.4/src/dyndns.c:1560: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). if (strlen(p_dyndns->dbg.p_logfilename) != 0) data/inadyn-1.99.4/src/dyndns.c:1596:2: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(S_IWGRP | S_IWOTH); data/inadyn-1.99.4/src/dyndns.c:1644:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(p_dyndns->info[i].my_ip_address.name, name, sizeof(p_dyndns->info[i].my_ip_address.name)); data/inadyn-1.99.4/src/dyndns.c:1664:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(p_dyndns->info[i].my_ip_address.name, name, sizeof(p_dyndns->info[i].my_ip_address.name)); data/inadyn-1.99.4/src/get_cmd.c:111: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). p = (char *)malloc(strlen(p_val) + 1); data/inadyn-1.99.4/src/http_client.c:153: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). body += strlen(sep); data/inadyn-1.99.4/src/inadyn_cmd.c:223: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(it->p_option) == 2) data/inadyn-1.99.4/src/inadyn_cmd.c:332: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). if (sizeof(p_self->dbg.p_logfilename) < strlen(p_cmd->argv[current_nr])) data/inadyn-1.99.4/src/inadyn_cmd.c:347:64: [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 (sizeof(p_self->info[curr_info].credentials.my_username) < strlen(p_cmd->argv[current_nr])) data/inadyn-1.99.4/src/inadyn_cmd.c:362:64: [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 (sizeof(p_self->info[curr_info].credentials.my_password) < strlen(p_cmd->argv[current_nr])) data/inadyn-1.99.4/src/inadyn_cmd.c:380:94: [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 (sizeof(p_self->info[curr_info].alias_info[p_self->info[curr_info].alias_count].names) < strlen(p_cmd->argv[current_nr])) data/inadyn-1.99.4/src/inadyn_cmd.c:427: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). if (sizeof(p_self->info[curr_info].ip_server_name) < strlen(p_cmd->argv[current_nr]) + 1) data/inadyn-1.99.4/src/inadyn_cmd.c:435: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). if (sizeof(p_self->info[curr_info].ip_server_url) < strlen(p_cmd->argv[current_nr + 1]) + 1) data/inadyn-1.99.4/src/inadyn_cmd.c:452: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). if (sizeof(p_self->info[curr_info].dyndns_server_name) < strlen(p_cmd->argv[current_nr])) data/inadyn-1.99.4/src/inadyn_cmd.c:470:58: [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 (sizeof(p_self->info[curr_info].dyndns_server_url) < strlen(p_cmd->argv[current_nr])) data/inadyn-1.99.4/src/inadyn_cmd.c:489:58: [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 (sizeof(p_self->info[curr_info].proxy_server_name) < strlen(p_cmd->argv[current_nr])) data/inadyn-1.99.4/src/inadyn_cmd.c:598:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((strlen(p_gid + 1) > 0) && /* if something is present after : */ data/inadyn-1.99.4/src/inadyn_cmd.c:608: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(groupname) > 0) data/inadyn-1.99.4/src/inadyn_cmd.c:1066:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!strlen(p_tmp_buffer)) data/inadyn-1.99.4/src/inadyn_cmd.c:1110: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). check_setting(strlen(account->credentials.my_username), i, "Missing username", &ok); data/inadyn-1.99.4/src/inadyn_cmd.c:1111: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). check_setting(strlen(account->credentials.my_password), i, "Missing password", &ok); data/inadyn-1.99.4/src/inadyn_cmd.c:1113: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). check_setting(strlen(account->dyndns_server_name.name), i, "Missing DDNS server address, check DDNS provider", &ok); data/inadyn-1.99.4/src/inadyn_cmd.c:1114: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). check_setting(strlen(account->ip_server_name.name), i, "Missing check IP address, check DDNS provider", &ok); data/inadyn-1.99.4/src/inadyn_cmd.c:1197: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(p_self->info[i].ip_server_name.name) == 0) data/inadyn-1.99.4/src/inadyn_cmd.c:1199: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). if (sizeof(p_self->info[i].ip_server_name.name) < strlen(p_self->info[i].p_dns_system->p_ip_server_name)) data/inadyn-1.99.4/src/inadyn_cmd.c:1206:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (sizeof(p_self->info[i].ip_server_url) < strlen(p_self->info[i].p_dns_system->p_ip_server_url)) data/inadyn-1.99.4/src/inadyn_cmd.c:1215: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(p_self->info[i].dyndns_server_name.name) == 0) data/inadyn-1.99.4/src/inadyn_cmd.c:1217: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). if (sizeof(p_self->info[i].dyndns_server_name.name) < strlen(p_self->info[i].p_dns_system->p_dyndns_server_name)) data/inadyn-1.99.4/src/inadyn_cmd.c:1224:53: [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 (sizeof(p_self->info[i].dyndns_server_url) < strlen(p_self->info[i].p_dns_system->p_dyndns_server_url)) data/inadyn-1.99.4/src/inadyn_cmd.c:1244: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). cache_file_len = (strlen(DYNDNS_CACHE_FILE) - 2) + strlen(p_self->bind_interface); data/inadyn-1.99.4/src/inadyn_cmd.c:1244: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). cache_file_len = (strlen(DYNDNS_CACHE_FILE) - 2) + strlen(p_self->bind_interface); data/inadyn-1.99.4/src/ip.c:111:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ifr.ifr_name, p_self->ifname, IFNAMSIZ); data/inadyn-1.99.4/src/os_unix.c:35:5: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(ms*1000); data/inadyn-1.99.4/src/os_unix.c:196:2: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(0); ANALYSIS SUMMARY: Hits = 140 Lines analyzed = 7481 in approximately 0.23 seconds (32024 lines/second) Physical Source Lines of Code (SLOC) = 4871 Hits@level = [0] 28 [1] 43 [2] 61 [3] 0 [4] 36 [5] 0 Hits@level+ = [0+] 168 [1+] 140 [2+] 97 [3+] 36 [4+] 36 [5+] 0 Hits/KSLOC@level+ = [0+] 34.4898 [1+] 28.7415 [2+] 19.9138 [3+] 7.39068 [4+] 7.39068 [5+] 0 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.