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/proxychains-3.1/proxychains/main.c
Examining data/proxychains-3.1/proxychains/libproxychains.c
Examining data/proxychains-3.1/proxychains/core.c
Examining data/proxychains-3.1/proxychains/core.h

FINAL RESULTS:

data/proxychains-3.1/proxychains/core.c:100:9:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
        vsprintf(buff,str,arglist);
data/proxychains-3.1/proxychains/core.c:208:16:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
             		sprintf(buff,"CONNECT %s:%d HTTP/1.0\r\n",
data/proxychains-3.1/proxychains/core.c:215:6:  [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(src,user);
data/proxychains-3.1/proxychains/core.c:217:6:  [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(src,pass);
data/proxychains-3.1/proxychains/core.c:220:6:  [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(buff,dst);
data/proxychains-3.1/proxychains/core.c:266:14:  [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(&buff[8],user);
data/proxychains-3.1/proxychains/core.c:651: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("/usr/lib/proxychains3/proxyresolv","proxyresolv",name,NULL);
data/proxychains-3.1/proxychains/core.c:723: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(addr_name, node);
data/proxychains-3.1/proxychains/core.h:100:30:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define PDEBUG(fmt, args...) fprintf(stderr,"DEBUG:"fmt, ## args)
data/proxychains-3.1/proxychains/libproxychains.c:205:5:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
				sscanf(buff,"%s %s %d %s %s", type,host,&port_n,
data/proxychains-3.1/proxychains/libproxychains.c:236:6:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
					sscanf(buff,"%s %d",user,&tcp_read_time_out) ;
data/proxychains-3.1/proxychains/libproxychains.c:238:6:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
					sscanf(buff,"%s %d",user,&tcp_connect_time_out) ;
data/proxychains-3.1/proxychains/main.c:45:3:  [4] (shell) execvp:
  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.
  execvp(argv[1],&argv[1]);
data/proxychains-3.1/proxychains/core.c:424:4:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			srand(time(NULL));
data/proxychains-3.1/proxychains/libproxychains.c:185:55:  [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.
	snprintf(buff,256,"%s/.proxychains/proxychains.conf",getenv("HOME"));
data/proxychains-3.1/proxychains/core.c:93: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 buff[LOG_BUFF];
data/proxychains-3.1/proxychains/core.c:202: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 buff[BUFF_SIZE];
data/proxychains-3.1/proxychains/core.c:213:6:  [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 src[256];
data/proxychains-3.1/proxychains/core.c:214: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 dst[512];
data/proxychains-3.1/proxychains/core.c:219:6:  [2] (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 string.
					strcat(buff,"Proxy-Authorization: Basic ");
data/proxychains-3.1/proxychains/core.c:221:6:  [2] (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 string.
					strcat(buff,"\r\n\r\n");
data/proxychains-3.1/proxychains/core.c:224:6:  [2] (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 string.
					strcat(buff,"\r\n");
data/proxychains-3.1/proxychains/core.c:262:5:  [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(&buff[2],&port,2); // dest port
data/proxychains-3.1/proxychains/core.c:263:5:  [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(&buff[4],&ip,4); // dest host
data/proxychains-3.1/proxychains/core.c:315:6:  [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 in[2];
data/proxychains-3.1/proxychains/core.c:316: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 out[515]; char* cur=out;
data/proxychains-3.1/proxychains/core.c:348:6:  [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(&buff[4],&ip,4); // dest host
data/proxychains-3.1/proxychains/core.c:349:5:  [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(&buff[8],&port,2); // dest port
data/proxychains-3.1/proxychains/core.c:615:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char addr_name[1024*8];
data/proxychains-3.1/proxychains/core.c:619: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 buff[256];
data/proxychains-3.1/proxychains/core.c:670:4:  [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(*(hostent_space.h_addr_list),
data/proxychains-3.1/proxychains/core.c:705:4:  [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(&((struct sockaddr_in*)sockaddr_space)->sin_addr,
data/proxychains-3.1/proxychains/core.c:716:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			htons(atoi(service?:"0"));
data/proxychains-3.1/proxychains/core.h:43:1:  [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 user[256];
data/proxychains-3.1/proxychains/core.h:44:1:  [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 pass[256];
data/proxychains-3.1/proxychains/libproxychains.c:174: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 buff[1024],type[1024],host[1024],user[1024];
data/proxychains-3.1/proxychains/libproxychains.c:187:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if(!(file=fopen("./proxychains.conf","r")))
data/proxychains-3.1/proxychains/libproxychains.c:188:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if(!(file=fopen(buff,"r")))
data/proxychains-3.1/proxychains/libproxychains.c:189:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if(!(file=fopen("/etc/proxychains.conf","r")))
data/proxychains-3.1/proxychains/libproxychains.c:242:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					len=atoi(++pc);
data/proxychains-3.1/proxychains/core.c:56:5:  [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).
 	l=strlen(src);
data/proxychains-3.1/proxychains/core.c:134:51:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if(ready!=1 || !(pfd[0].revents&POLLIN) || 1!=read(fd,&buff[i],1))
data/proxychains-3.1/proxychains/core.c:156:51:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if(ready!=1 || !(pfd[0].revents&POLLIN) || 1!=read(fd,&buff[i],1))
data/proxychains-3.1/proxychains/core.c:216:6:  [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(src,":");
data/proxychains-3.1/proxychains/core.c:226: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).
           			len=strlen(buff);
data/proxychains-3.1/proxychains/core.c:264: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).
				len=strlen(user)+1; // username
data/proxychains-3.1/proxychains/core.c:319: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).
					c=strlen(user);
data/proxychains-3.1/proxychains/core.c:321:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					strncpy(cur,user,c);
data/proxychains-3.1/proxychains/core.c:323: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).
					c=strlen(pass);
data/proxychains-3.1/proxychains/core.c:325:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					strncpy(cur,pass,c);
data/proxychains-3.1/proxychains/core.c:664:4:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			read(pipe_fd[0],&buff,sizeof(buff));
data/proxychains-3.1/proxychains/libproxychains.c:350:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(host, inet_ntoa(SOCKADDR_2(*sa)),hostlen);

ANALYSIS SUMMARY:

Hits = 52
Lines analyzed = 1260 in approximately 0.07 seconds (18083 lines/second)
Physical Source Lines of Code (SLOC) = 1018
Hits@level = [0]  10 [1]  12 [2]  25 [3]   2 [4]  13 [5]   0
Hits@level+ = [0+]  62 [1+]  52 [2+]  40 [3+]  15 [4+]  13 [5+]   0
Hits/KSLOC@level+ = [0+] 60.9037 [1+] 51.0806 [2+] 39.2927 [3+] 14.7348 [4+] 12.7701 [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.