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/globus-gridmap-eppn-callout-2.2/globus_gridmap_eppn.c

FINAL RESULTS:

data/globus-gridmap-eppn-callout-2.2/globus_gridmap_eppn.c:710:13:  [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(identity_buffer, found_identity);
data/globus-gridmap-eppn-callout-2.2/globus_gridmap_eppn.c:347:28:  [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.
    myproxy_ca_cert_file = getenv("GLOBUS_MYPROXY_CA_CERT");
data/globus-gridmap-eppn-callout-2.2/globus_gridmap_eppn.c:357:29:  [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.
    myproxy_authorized_dn = getenv("GLOBUS_MYPROXY_AUTHORIZED_DN");
data/globus-gridmap-eppn-callout-2.2/globus_gridmap_eppn.c:474:9:  [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("GLOBUS_EPPN_KEEP_DOMAIN"))
data/globus-gridmap-eppn-callout-2.2/globus_gridmap_eppn.c:636:16:  [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("GLOBUS_EPPN_FORCE_GRIDMAP"))
data/globus-gridmap-eppn-callout-2.2/globus_gridmap_eppn.c:74: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).
    certfp = fopen(certfile, "r");
data/globus-gridmap-eppn-callout-2.2/globus_gridmap_eppn.c:445: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).
    authorized_dn_length = strlen(myproxy_authorized_dn);
data/globus-gridmap-eppn-callout-2.2/globus_gridmap_eppn.c:446: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(subject) <= authorized_dn_length)
data/globus-gridmap-eppn-callout-2.2/globus_gridmap_eppn.c:700: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).
        if(strlen(found_identity) + 1 > buffer_length)
data/globus-gridmap-eppn-callout-2.2/globus_gridmap_eppn.c:706: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).
                 strlen(found_identity), buffer_length));

ANALYSIS SUMMARY:

Hits = 10
Lines analyzed = 736 in approximately 0.04 seconds (19793 lines/second)
Physical Source Lines of Code (SLOC) = 609
Hits@level = [0]   0 [1]   4 [2]   1 [3]   4 [4]   1 [5]   0
Hits@level+ = [0+]  10 [1+]  10 [2+]   6 [3+]   5 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 16.4204 [1+] 16.4204 [2+] 9.85222 [3+] 8.21018 [4+] 1.64204 [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.