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/apache-upload-progress-module-0.2/ap_backports.h Examining data/apache-upload-progress-module-0.2/mod_upload_progress.c FINAL RESULTS: data/apache-upload-progress-module-0.2/mod_upload_progress.c:206:17: [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. sscanf(content_length, "%" APR_OFF_T_FMT, &(node->length)); data/apache-upload-progress-module-0.2/mod_upload_progress.c:83:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char errbuf[200]; \ data/apache-upload-progress-module-0.2/mod_upload_progress.c:114:5: [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 key[ARG_MAXLEN_PROGRESSID]; data/apache-upload-progress-module-0.2/mod_upload_progress.c:253:23: [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). long long int n = atoi(arg); data/apache-upload-progress-module-0.2/mod_upload_progress.c:309:35: [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). status = r->status_line ? atoi(r->status_line) : 0; data/apache-upload-progress-module-0.2/mod_upload_progress.c:372:5: [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 pn1[3] = {toupper(param_name[0]), tolower(param_name[0]), 0}; data/apache-upload-progress-module-0.2/mod_upload_progress.c:485:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(node, new_data, sizeof(upload_progress_node_t)); data/apache-upload-progress-module-0.2/mod_upload_progress.c:517:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(node, new_data, sizeof(upload_progress_node_t)); data/apache-upload-progress-module-0.2/mod_upload_progress.c:193:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(node->key, id, ARG_MAXLEN_PROGRESSID); data/apache-upload-progress-module-0.2/mod_upload_progress.c:373:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int pn_len = strlen(param_name); data/apache-upload-progress-module-0.2/mod_upload_progress.c:396: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). *param_error = check_request_argument(id, strlen(id), ARG_ALLOWED_PROGRESSID, ANALYSIS SUMMARY: Hits = 11 Lines analyzed = 957 in approximately 0.09 seconds (11160 lines/second) Physical Source Lines of Code (SLOC) = 736 Hits@level = [0] 0 [1] 3 [2] 7 [3] 0 [4] 1 [5] 0 Hits@level+ = [0+] 11 [1+] 11 [2+] 8 [3+] 1 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 14.9457 [1+] 14.9457 [2+] 10.8696 [3+] 1.3587 [4+] 1.3587 [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.