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/mod-vhost-ldap-2.4.0/mod_vhost_ldap.c FINAL RESULTS: data/mod-vhost-ldap-2.4.0/mod_vhost_ldap.c:283:9: [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, urld->lud_host); data/mod-vhost-ldap-2.4.0/mod_vhost_ldap.c:285:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(p, conf->host); data/mod-vhost-ldap-2.4.0/mod_vhost_ldap.c:459: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 filtbuf[FILTER_LENGTH]; data/mod-vhost-ldap-2.4.0/mod_vhost_ldap.c:282: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). char *p = apr_palloc(cmd->pool, strlen(conf->host) + strlen(urld->lud_host) + 2); data/mod-vhost-ldap-2.4.0/mod_vhost_ldap.c:282:62: [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). char *p = apr_palloc(cmd->pool, strlen(conf->host) + strlen(urld->lud_host) + 2); data/mod-vhost-ldap-2.4.0/mod_vhost_ldap.c:284:9: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(p, " "); data/mod-vhost-ldap-2.4.0/mod_vhost_ldap.c:303: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). conf->filter[strlen(conf->filter)-1] = '\0'; data/mod-vhost-ldap-2.4.0/mod_vhost_ldap.c:638: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). cgi = apr_pstrcat(r->pool, reqc->cgiroot, cgi + strlen("cgi-bin"), NULL); ANALYSIS SUMMARY: Hits = 8 Lines analyzed = 755 in approximately 0.05 seconds (13782 lines/second) Physical Source Lines of Code (SLOC) = 582 Hits@level = [0] 0 [1] 5 [2] 1 [3] 0 [4] 2 [5] 0 Hits@level+ = [0+] 8 [1+] 8 [2+] 3 [3+] 2 [4+] 2 [5+] 0 Hits/KSLOC@level+ = [0+] 13.7457 [1+] 13.7457 [2+] 5.15464 [3+] 3.43643 [4+] 3.43643 [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.