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/proftpd-mod-proxy-0.7/include/proxy/conn.h
Examining data/proftpd-mod-proxy-0.7/include/proxy/db.h
Examining data/proftpd-mod-proxy-0.7/include/proxy/forward.h
Examining data/proftpd-mod-proxy-0.7/include/proxy/ftp/conn.h
Examining data/proftpd-mod-proxy-0.7/include/proxy/ftp/ctrl.h
Examining data/proftpd-mod-proxy-0.7/include/proxy/ftp/data.h
Examining data/proftpd-mod-proxy-0.7/include/proxy/ftp/dirlist.h
Examining data/proftpd-mod-proxy-0.7/include/proxy/ftp/facts.h
Examining data/proftpd-mod-proxy-0.7/include/proxy/ftp/msg.h
Examining data/proftpd-mod-proxy-0.7/include/proxy/ftp/sess.h
Examining data/proftpd-mod-proxy-0.7/include/proxy/ftp/xfer.h
Examining data/proftpd-mod-proxy-0.7/include/proxy/inet.h
Examining data/proftpd-mod-proxy-0.7/include/proxy/netio.h
Examining data/proftpd-mod-proxy-0.7/include/proxy/random.h
Examining data/proftpd-mod-proxy-0.7/include/proxy/reverse.h
Examining data/proftpd-mod-proxy-0.7/include/proxy/reverse/db.h
Examining data/proftpd-mod-proxy-0.7/include/proxy/reverse/redis.h
Examining data/proftpd-mod-proxy-0.7/include/proxy/session.h
Examining data/proftpd-mod-proxy-0.7/include/proxy/str.h
Examining data/proftpd-mod-proxy-0.7/include/proxy/tls.h
Examining data/proftpd-mod-proxy-0.7/include/proxy/tls/db.h
Examining data/proftpd-mod-proxy-0.7/include/proxy/tls/redis.h
Examining data/proftpd-mod-proxy-0.7/include/proxy/uri.h
Examining data/proftpd-mod-proxy-0.7/lib/proxy/conn.c
Examining data/proftpd-mod-proxy-0.7/lib/proxy/db.c
Examining data/proftpd-mod-proxy-0.7/lib/proxy/forward.c
Examining data/proftpd-mod-proxy-0.7/lib/proxy/ftp/conn.c
Examining data/proftpd-mod-proxy-0.7/lib/proxy/ftp/ctrl.c
Examining data/proftpd-mod-proxy-0.7/lib/proxy/ftp/data.c
Examining data/proftpd-mod-proxy-0.7/lib/proxy/ftp/dirlist.c
Examining data/proftpd-mod-proxy-0.7/lib/proxy/ftp/facts.c
Examining data/proftpd-mod-proxy-0.7/lib/proxy/ftp/msg.c
Examining data/proftpd-mod-proxy-0.7/lib/proxy/ftp/sess.c
Examining data/proftpd-mod-proxy-0.7/lib/proxy/ftp/xfer.c
Examining data/proftpd-mod-proxy-0.7/lib/proxy/inet.c
Examining data/proftpd-mod-proxy-0.7/lib/proxy/netio.c
Examining data/proftpd-mod-proxy-0.7/lib/proxy/random.c
Examining data/proftpd-mod-proxy-0.7/lib/proxy/reverse.c
Examining data/proftpd-mod-proxy-0.7/lib/proxy/reverse/db.c
Examining data/proftpd-mod-proxy-0.7/lib/proxy/reverse/redis.c
Examining data/proftpd-mod-proxy-0.7/lib/proxy/session.c
Examining data/proftpd-mod-proxy-0.7/lib/proxy/str.c
Examining data/proftpd-mod-proxy-0.7/lib/proxy/tls.c
Examining data/proftpd-mod-proxy-0.7/lib/proxy/tls/db.c
Examining data/proftpd-mod-proxy-0.7/lib/proxy/tls/redis.c
Examining data/proftpd-mod-proxy-0.7/lib/proxy/uri.c
Examining data/proftpd-mod-proxy-0.7/mod_proxy.c
Examining data/proftpd-mod-proxy-0.7/t/api/conn.c
Examining data/proftpd-mod-proxy-0.7/t/api/db.c
Examining data/proftpd-mod-proxy-0.7/t/api/forward.c
Examining data/proftpd-mod-proxy-0.7/t/api/ftp/conn.c
Examining data/proftpd-mod-proxy-0.7/t/api/ftp/ctrl.c
Examining data/proftpd-mod-proxy-0.7/t/api/ftp/data.c
Examining data/proftpd-mod-proxy-0.7/t/api/ftp/dirlist.c
Examining data/proftpd-mod-proxy-0.7/t/api/ftp/facts.c
Examining data/proftpd-mod-proxy-0.7/t/api/ftp/msg.c
Examining data/proftpd-mod-proxy-0.7/t/api/ftp/sess.c
Examining data/proftpd-mod-proxy-0.7/t/api/ftp/xfer.c
Examining data/proftpd-mod-proxy-0.7/t/api/inet.c
Examining data/proftpd-mod-proxy-0.7/t/api/netio.c
Examining data/proftpd-mod-proxy-0.7/t/api/random.c
Examining data/proftpd-mod-proxy-0.7/t/api/reverse.c
Examining data/proftpd-mod-proxy-0.7/t/api/session.c
Examining data/proftpd-mod-proxy-0.7/t/api/str.c
Examining data/proftpd-mod-proxy-0.7/t/api/stubs.c
Examining data/proftpd-mod-proxy-0.7/t/api/tests.c
Examining data/proftpd-mod-proxy-0.7/t/api/tests.h
Examining data/proftpd-mod-proxy-0.7/t/api/tls.c
Examining data/proftpd-mod-proxy-0.7/t/api/uri.c

FINAL RESULTS:

data/proftpd-mod-proxy-0.7/lib/proxy/reverse.c:169:11:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
    res = readlink(path, buf, sizeof(buf)-1);
data/proftpd-mod-proxy-0.7/mod_proxy.c:383:7:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
  if (chown(dir, uid, gid) < 0) {
data/proftpd-mod-proxy-0.7/t/api/forward.c:52:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  res = chmod(test_dir, perms);
data/proftpd-mod-proxy-0.7/t/api/reverse.c:63:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  res = chmod(test_dir, perms);
data/proftpd-mod-proxy-0.7/t/api/reverse.c:72:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  res = chmod(test_file, perms);
data/proftpd-mod-proxy-0.7/t/api/reverse.c:783:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  res = chmod(test_dir, perms);
data/proftpd-mod-proxy-0.7/t/api/stubs.c:64:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    if (chmod(path, (mode_t) 0755) == 0) {
data/proftpd-mod-proxy-0.7/t/api/tls.c:72:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  res = chmod(test_dir, perms);
data/proftpd-mod-proxy-0.7/lib/proxy/ftp/dirlist.c:506:9:  [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.
  res = sscanf(buf, "%s", user);
data/proftpd-mod-proxy-0.7/lib/proxy/ftp/dirlist.c:539:9:  [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.
  res = sscanf(buf, "%s", group);
data/proftpd-mod-proxy-0.7/t/api/stubs.c:177:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, fmt, msg);
data/proftpd-mod-proxy-0.7/t/api/stubs.c:191:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, fmt, msg);
data/proftpd-mod-proxy-0.7/t/api/stubs.c:242:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, fmt, msg);
data/proftpd-mod-proxy-0.7/t/api/stubs.c:259:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, fmt, msg);
data/proftpd-mod-proxy-0.7/lib/proxy/random.c:38:3:  [3] (random) srandom:
  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.
  srandom(getpid() ^ tv.tv_usec);
data/proftpd-mod-proxy-0.7/lib/proxy/random.c:48:7:  [3] (random) random:
  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.
  r = random();
data/proftpd-mod-proxy-0.7/mod_proxy.c:487: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.
    res = chroot(proxy_chroot);
data/proftpd-mod-proxy-0.7/t/api/conn.c:38:7:  [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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/conn.c:44:7:  [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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/db.c:42:7:  [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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/db.c:53:7:  [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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/db.c:155:7:  [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.
  if (getenv("TRAVIS") == NULL) {
data/proftpd-mod-proxy-0.7/t/api/forward.c:85:7:  [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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/forward.c:97:7:  [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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/forward.c:463:7:  [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.
  if (getenv("TRAVIS_CI") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/forward.c:497:7:  [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.
  if (getenv("TRAVIS") == NULL) {
data/proftpd-mod-proxy-0.7/t/api/forward.c:544:7:  [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.
  if (getenv("TRAVIS") == NULL) {
data/proftpd-mod-proxy-0.7/t/api/ftp/conn.c:74:7:  [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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/ftp/conn.c:84:7:  [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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/ftp/ctrl.c:42:7:  [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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/ftp/ctrl.c:52:7:  [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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/ftp/data.c:42:7:  [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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/ftp/data.c:48:7:  [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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/ftp/dirlist.c:38:7:  [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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/ftp/dirlist.c:44:7:  [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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/ftp/facts.c:36:7:  [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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/ftp/facts.c:42:7:  [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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/ftp/msg.c:42:7:  [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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/ftp/msg.c:48:7:  [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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/ftp/sess.c:40:7:  [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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/ftp/sess.c:46:7:  [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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/ftp/xfer.c:62:7:  [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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/ftp/xfer.c:73:7:  [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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/inet.c:44:7:  [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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/inet.c:54:7:  [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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/netio.c:40:7:  [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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/netio.c:47:7:  [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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/reverse.c:100:7:  [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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/reverse.c:117:7:  [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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/reverse.c:525:7:  [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.
  if (getenv("TRAVIS") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/reverse.c:550:7:  [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.
  if (getenv("TRAVIS") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/reverse.c:575:7:  [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.
  if (getenv("TRAVIS") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/reverse.c:600:7:  [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.
  if (getenv("TRAVIS") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/reverse.c:627:7:  [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.
  if (getenv("TRAVIS") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/reverse.c:652:7:  [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.
  if (getenv("TRAVIS") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/reverse.c:677:7:  [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.
  if (getenv("TRAVIS") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/reverse.c:702:7:  [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.
  if (getenv("TRAVIS") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/session.c:61:7:  [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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/session.c:71:7:  [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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/stubs.c:171:7:  [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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/stubs.c:185:7:  [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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/stubs.c:236:7:  [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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/stubs.c:253:7:  [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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/tests.c:82:15:  [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.
  requested = getenv("PROXY_TEST_SUITE");
data/proftpd-mod-proxy-0.7/t/api/tests.c:113:15:  [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.
  requested = getenv("PROXY_TEST_NOFORK");
data/proftpd-mod-proxy-0.7/t/api/tests.c:117:17:  [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.
    requested = getenv("CK_DEFAULT_TIMEOUT");
data/proftpd-mod-proxy-0.7/t/api/tls.c:94:7:  [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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/tls.c:101:7:  [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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/uri.c:38:7:  [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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-mod-proxy-0.7/t/api/uri.c:44:7:  [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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-mod-proxy-0.7/include/proxy/reverse.h:91:11:  [2] (misc) open:
  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).
  void *(*open)(pool *p, const char *path, array_header *backends);
data/proftpd-mod-proxy-0.7/include/proxy/tls.h:113:11:  [2] (misc) open:
  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).
  void *(*open)(pool *p, const char *path, unsigned long opts);
data/proftpd-mod-proxy-0.7/lib/proxy/conn.c:121: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 hostport[512], *proto, *remote_host, *username = NULL, *password = NULL;
data/proftpd-mod-proxy-0.7/lib/proxy/db.c:756:13:  [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).
  version = atoi(((char **) results->elts)[0]);
data/proftpd-mod-proxy-0.7/lib/proxy/forward.c:196: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 port_text[32];
data/proftpd-mod-proxy-0.7/lib/proxy/ftp/ctrl.c:132: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[PR_TUNABLE_BUFFER_SIZE];
data/proftpd-mod-proxy-0.7/lib/proxy/ftp/ctrl.c:295:17:  [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).
    resp_code = atoi(buf);
data/proftpd-mod-proxy-0.7/lib/proxy/ftp/ctrl.c:384: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.
  unsigned char buf[7];
data/proftpd-mod-proxy-0.7/lib/proxy/ftp/dirlist.c:488: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).
  st->st_nlink = atoi(nlinks_ptr);
data/proftpd-mod-proxy-0.7/lib/proxy/ftp/dirlist.c:495: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 user[32];
data/proftpd-mod-proxy-0.7/lib/proxy/ftp/dirlist.c:528: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 group[32];
data/proftpd-mod-proxy-0.7/lib/proxy/ftp/dirlist.c:574: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.
static const char *months[13] = {
data/proftpd-mod-proxy-0.7/lib/proxy/ftp/dirlist.c:1164: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[PR_TUNABLE_BUFFER_SIZE];
data/proftpd-mod-proxy-0.7/lib/proxy/ftp/dirlist.c:1197: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(line, text, linelen);
data/proftpd-mod-proxy-0.7/lib/proxy/ftp/dirlist.c:1266: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(text, ctx->input_ptr, ctx->input_textlen);
data/proftpd-mod-proxy-0.7/lib/proxy/ftp/dirlist.c:1267: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(text + ctx->input_textlen, buf, buflen);
data/proftpd-mod-proxy-0.7/lib/proxy/ftp/dirlist.c:1276: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(ctx->input_text, text, textlen);
data/proftpd-mod-proxy-0.7/lib/proxy/ftp/dirlist.c:1301: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(ctx->input_text, text, textlen);
data/proftpd-mod-proxy-0.7/lib/proxy/ftp/dirlist.c:1320: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(ctx->input_text, ptr, len);
data/proftpd-mod-proxy-0.7/lib/proxy/ftp/dirlist.c:1414: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(*output_text, ctx->output_ptr, *output_textlen);
data/proftpd-mod-proxy-0.7/lib/proxy/ftp/msg.c:337:16:  [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).
      family = atoi(msg_str);
data/proftpd-mod-proxy-0.7/lib/proxy/ftp/msg.c:341: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).
    family = atoi(net_proto);
data/proftpd-mod-proxy-0.7/lib/proxy/ftp/msg.c:452: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).
  port = atoi(msg_str);
data/proftpd-mod-proxy-0.7/lib/proxy/reverse.c:155: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 buf[PR_TUNABLE_PATH_MAX+1];
data/proftpd-mod-proxy-0.7/lib/proxy/reverse.c:754: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 port_text[32];
data/proftpd-mod-proxy-0.7/lib/proxy/reverse.c:1281:21:  [2] (misc) open:
  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).
  dsh = (reverse_ds.open)(p, tables_dir, default_backends);
data/proftpd-mod-proxy-0.7/lib/proxy/reverse/db.c:555:11:  [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).
  nrows = atoi(((char **) results->elts)[0]);
data/proftpd-mod-proxy-0.7/lib/proxy/reverse/db.c:714:16:  [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).
  backend_id = atoi(((char **) results->elts)[0]);
data/proftpd-mod-proxy-0.7/lib/proxy/reverse/db.c:769:16:  [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).
  backend_id = atoi(((char **) results->elts)[0]);
data/proftpd-mod-proxy-0.7/lib/proxy/reverse/db.c:825:16:  [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).
  backend_id = atoi(((char **) results->elts)[0]);
data/proftpd-mod-proxy-0.7/lib/proxy/reverse/db.c:1006:11:  [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).
  count = atoi(((char **) results->elts)[0]);
data/proftpd-mod-proxy-0.7/lib/proxy/reverse/db.c:1203:11:  [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).
  count = atoi(((char **) results->elts)[0]);
data/proftpd-mod-proxy-0.7/lib/proxy/reverse/db.c:1397:11:  [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).
  count = atoi(((char **) results->elts)[0]);
data/proftpd-mod-proxy-0.7/lib/proxy/tls.c:185:10:  [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 buf[1024] = {'\0'};
data/proftpd-mod-proxy-0.7/lib/proxy/tls.c:213: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(buf, data, datalen);
data/proftpd-mod-proxy-0.7/lib/proxy/tls.c:882: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 san_ipstr[INET6_ADDRSTRLEN + 1] = {'\0'};
data/proftpd-mod-proxy-0.7/lib/proxy/tls.c:884: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 san_ipstr[INET_ADDRSTRLEN + 1] = {'\0'};
data/proftpd-mod-proxy-0.7/lib/proxy/tls.c:1223: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 port_str[32], *sess_key = NULL;
data/proftpd-mod-proxy-0.7/lib/proxy/tls.c:1284: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 port_str[32], *sess_key = NULL;
data/proftpd-mod-proxy-0.7/lib/proxy/tls.c:1625: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 *heapdata, stackdata[1024];
data/proftpd-mod-proxy-0.7/lib/proxy/tls.c:1642: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("/dev/urandom", "r");
data/proftpd-mod-proxy-0.7/lib/proxy/tls.c:2573: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 key_buf[PR_TUNABLE_BUFFER_SIZE];
data/proftpd-mod-proxy-0.7/lib/proxy/tls.c:2579:8:  [2] (misc) open:
  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).
  fd = open(path, O_RDONLY);
data/proftpd-mod-proxy-0.7/lib/proxy/tls.c:4023:36:  [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.
          switch (((const unsigned char *) buf)[0]) {
data/proftpd-mod-proxy-0.7/lib/proxy/tls.c:4033:36:  [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.
          switch (((const unsigned char *) buf)[1]) {
data/proftpd-mod-proxy-0.7/lib/proxy/tls.c:4145:36:  [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.
          switch (((const unsigned char *) buf)[0]) {
data/proftpd-mod-proxy-0.7/lib/proxy/tls.c:4378:24:  [2] (misc) open:
  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).
  tls_ds.dsh = (tls_ds.open)(proxy_pool, tls_tables_path, tls_opts);
data/proftpd-mod-proxy-0.7/lib/proxy/tls/db.c:275:11:  [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).
  count = atoi(((char **) results->elts)[0]); 
data/proftpd-mod-proxy-0.7/lib/proxy/uri.c:360:13:  [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).
    *port = atoi(portspec);
data/proftpd-mod-proxy-0.7/mod_proxy.c:780: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 errstr[200] = {'\0'};
data/proftpd-mod-proxy-0.7/mod_proxy.c:864:17:  [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).
  retry_count = atoi(cmd->argv[1]);
data/proftpd-mod-proxy-0.7/mod_proxy.c:1160: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 mode_text[32];
data/proftpd-mod-proxy-0.7/mod_proxy.c:1582: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 buf[32];
data/proftpd-mod-proxy-0.7/mod_proxy.c:2915: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(pbuf->buf, text, textlen);
data/proftpd-mod-proxy-0.7/mod_proxy.c:3175: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 resp_msg[PR_RESPONSE_BUFFER_SIZE];
data/proftpd-mod-proxy-0.7/mod_proxy.c:3298: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 resp_msg[PR_RESPONSE_BUFFER_SIZE];
data/proftpd-mod-proxy-0.7/t/api/reverse.c:67: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).
  fh = fopen(test_file, "w+");
data/proftpd-mod-proxy-0.7/t/api/reverse.c:789:8:  [2] (misc) open:
  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).
  fd = open(test_file, O_WRONLY|O_CREAT, perms);
data/proftpd-mod-proxy-0.7/lib/proxy/conn.c:276: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(pconn->pconn_username);
data/proftpd-mod-proxy-0.7/lib/proxy/conn.c:304: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(pconn->pconn_password);
data/proftpd-mod-proxy-0.7/lib/proxy/ftp/ctrl.c:163: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).
    buflen = strlen(buf);
data/proftpd-mod-proxy-0.7/lib/proxy/ftp/dirlist.c:1348: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).
    input_linelen = strlen(input_line);
data/proftpd-mod-proxy-0.7/lib/proxy/ftp/msg.c:123: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).
  addr_strlen = strlen(addr_str);
data/proftpd-mod-proxy-0.7/lib/proxy/ftp/msg.c:280: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).
    msglen = strlen(ptr);
data/proftpd-mod-proxy-0.7/lib/proxy/reverse.c:295: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(str);
data/proftpd-mod-proxy-0.7/lib/proxy/reverse.c:1720: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).
    uri_passlen = strlen(uri_pass);
data/proftpd-mod-proxy-0.7/lib/proxy/reverse/db.c:53: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).
  size_t sz = !keysz ? strlen((const char *) key) : keysz;
data/proftpd-mod-proxy-0.7/lib/proxy/reverse/db.c:896:16:  [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).
    user_len = strlen(user);
data/proftpd-mod-proxy-0.7/lib/proxy/reverse/db.c:1093: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).
    group_len = strlen(group);
data/proftpd-mod-proxy-0.7/lib/proxy/reverse/db.c:1287:13:  [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).
    iplen = strlen(ip);
data/proftpd-mod-proxy-0.7/lib/proxy/reverse/redis.c:56: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).
  keysz = 22 + 6 + strlen(policy);
data/proftpd-mod-proxy-0.7/lib/proxy/reverse/redis.c:58: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).
    keysz += strlen(name) + 1;
data/proftpd-mod-proxy-0.7/lib/proxy/reverse/redis.c:76: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).
  size_t sz = !keysz ? strlen((const char *) key) : keysz;
data/proftpd-mod-proxy-0.7/lib/proxy/reverse/redis.c:166: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).
    backend_urisz = strlen(backend_uri);
data/proftpd-mod-proxy-0.7/lib/proxy/reverse/redis.c:213: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).
    backend_urisz = strlen(backend_uri);
data/proftpd-mod-proxy-0.7/lib/proxy/reverse/redis.c:306: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).
  valsz = strlen(val);
data/proftpd-mod-proxy-0.7/lib/proxy/reverse/redis.c:462: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).
  valsz = strlen(val);
data/proftpd-mod-proxy-0.7/lib/proxy/reverse/redis.c:542: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).
  valsz = strlen(val);
data/proftpd-mod-proxy-0.7/lib/proxy/reverse/redis.c:598:16:  [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).
    user_len = strlen(user);
data/proftpd-mod-proxy-0.7/lib/proxy/reverse/redis.c:680: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).
    group_len = strlen(group);
data/proftpd-mod-proxy-0.7/lib/proxy/reverse/redis.c:758:13:  [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).
    iplen = strlen(ip);
data/proftpd-mod-proxy-0.7/lib/proxy/str.c:53: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).
  s2_len = strlen(s2);
data/proftpd-mod-proxy-0.7/lib/proxy/tls.c:762: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).
  host_namelen = strlen(host_name);
data/proftpd-mod-proxy-0.7/lib/proxy/tls.c:813: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).
        dns_sanlen = strlen(dns_san);
data/proftpd-mod-proxy-0.7/lib/proxy/tls.c:922: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).
          san_ipstrlen = strlen(san_ipstr);
data/proftpd-mod-proxy-0.7/lib/proxy/tls.c:1021: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).
  cn_len = strlen(cn_str);
data/proftpd-mod-proxy-0.7/lib/proxy/tls.c:1918:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return read(nstrm->strm_fd, buf, buflen);
data/proftpd-mod-proxy-0.7/lib/proxy/tls.c:2267: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).
  proto_len = strlen(proto);
data/proftpd-mod-proxy-0.7/lib/proxy/tls.c:2634:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  key_len = read(fd, key_buf, sizeof(key_buf)-1);
data/proftpd-mod-proxy-0.7/lib/proxy/tls/db.c:227:13:  [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).
  datalen = strlen(data) + 1;
data/proftpd-mod-proxy-0.7/lib/proxy/uri.c:62:16:  [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).
      urilen = strlen(ptr);
data/proftpd-mod-proxy-0.7/lib/proxy/uri.c:338: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).
      portspeclen = strlen(portspec);
data/proftpd-mod-proxy-0.7/mod_proxy.c:371:15:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  prev_mask = umask(0);
data/proftpd-mod-proxy-0.7/mod_proxy.c:376:12:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    (void) umask(prev_mask);
data/proftpd-mod-proxy-0.7/mod_proxy.c:381:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  umask(prev_mask);
data/proftpd-mod-proxy-0.7/mod_proxy.c:605: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).
    ds_datasz = strlen(ds_data);
data/proftpd-mod-proxy-0.7/mod_proxy.c:1580: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).
  identity_len = strlen(cmd->argv[1]);
data/proftpd-mod-proxy-0.7/mod_proxy.c:1597: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).
  path_len = strlen(path);
data/proftpd-mod-proxy-0.7/t/api/ftp/dirlist.c:109:13:  [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).
  textlen = strlen(text);
data/proftpd-mod-proxy-0.7/t/api/ftp/dirlist.c:146:13:  [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).
  textlen = strlen(text);
data/proftpd-mod-proxy-0.7/t/api/ftp/dirlist.c:193:13:  [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).
  textlen = strlen(text);
data/proftpd-mod-proxy-0.7/t/api/ftp/dirlist.c:278: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).
  buflen = strlen(buf);

ANALYSIS SUMMARY:

Hits = 172
Lines analyzed = 33123 in approximately 0.84 seconds (39351 lines/second)
Physical Source Lines of Code (SLOC) = 23179
Hits@level = [0]  57 [1]  44 [2]  58 [3]  56 [4]   6 [5]   8
Hits@level+ = [0+] 229 [1+] 172 [2+] 128 [3+]  70 [4+]  14 [5+]   8
Hits/KSLOC@level+ = [0+] 9.87963 [1+] 7.42051 [2+] 5.52224 [3+] 3.01997 [4+] 0.603995 [5+] 0.34514
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.