COMMAND : flawfinder -SQ Flawfinder version 1.27, (C) 2001-2004 David A. Wheeler. Number of dangerous functions in C/C++ ruleset: 160 /tmp/bogosec.temp_target.sJE6de/src/debian/md5.c:170: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination. Make sure destination can always hold the source data. /tmp/bogosec.temp_target.sJE6de/src/debian/md5.c:356: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination. Make sure destination can always hold the source data. /tmp/bogosec.temp_target.sJE6de/src/debian/md5.c:370: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination. Make sure destination can always hold the source data. Hits = 3 Lines analyzed = 394 in 0.54 seconds (10742 lines/second) Physical Source Lines of Code (SLOC) = 270 Hits@level = [0] 0 [1] 0 [2] 3 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 3 [1+] 3 [2+] 3 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 11.1111 [1+] 11.1111 [2+] 11.1111 [3+] 0 [4+] 0 [5+] 0 Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! Flawfinder version 1.27, (C) 2001-2004 David A. Wheeler. Number of dangerous functions in C/C++ ruleset: 160 /tmp/bogosec.temp_target.sJE6de/src/debian/clear_console.c:185: [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. Check environment variables carefully before using them. /tmp/bogosec.temp_target.sJE6de/src/debian/clear_console.c:249: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows . Check implementation on installation, or limit the size of all string inputs. /tmp/bogosec.temp_target.sJE6de/src/debian/clear_console.c:78: [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?. /tmp/bogosec.temp_target.sJE6de/src/debian/clear_console.c:82: [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?. /tmp/bogosec.temp_target.sJE6de/src/debian/clear_console.c:86: [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?. /tmp/bogosec.temp_target.sJE6de/src/debian/clear_console.c:158: [1] (buffer) strlen: Does not handle strings that are not \0-terminated (it could cause a crash if unprotected). /tmp/bogosec.temp_target.sJE6de/src/debian/clear_console.c:161: [1] (buffer) strlen: Does not handle strings that are not \0-terminated (it could cause a crash if unprotected). Hits = 7 Lines analyzed = 285 in 0.54 seconds (8090 lines/second) Physical Source Lines of Code (SLOC) = 207 Hits@level = [0] 0 [1] 2 [2] 3 [3] 2 [4] 0 [5] 0 Hits@level+ = [0+] 7 [1+] 7 [2+] 5 [3+] 2 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 33.8164 [1+] 33.8164 [2+] 24.1546 [3+] 9.66184 [4+] 0 [5+] 0 Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! Flawfinder version 1.27, (C) 2001-2004 David A. Wheeler. Number of dangerous functions in C/C++ ruleset: 160 /tmp/bogosec.temp_target.sJE6de/src/debian/new/bash.preinst.c:203: [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. Reconsider approach. /tmp/bogosec.temp_target.sJE6de/src/debian/new/bash.preinst.c:45: [4] (shell) execv: This causes a new program to execute and is difficult to use safely. try using a library call that implements the same functionality if available. /tmp/bogosec.temp_target.sJE6de/src/debian/new/bash.preinst.c:103: [4] (shell) execl: This causes a new program to execute and is difficult to use safely. try using a library call that implements the same functionality if available. /tmp/bogosec.temp_target.sJE6de/src/debian/new/bash.preinst.c:29: [2] (buffer) char: Statically-sized arrays can be overflowed. Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. /tmp/bogosec.temp_target.sJE6de/src/debian/new/bash.preinst.c:111: [2] (buffer) char: Statically-sized arrays can be overflowed. Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. /tmp/bogosec.temp_target.sJE6de/src/debian/new/bash.preinst.c:140: [2] (buffer) char: Statically-sized arrays can be overflowed. Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. /tmp/bogosec.temp_target.sJE6de/src/debian/new/bash.preinst.c:119: [1] (buffer) strlen: Does not handle strings that are not \0-terminated (it could cause a crash if unprotected). Hits = 7 Lines analyzed = 229 in 0.52 seconds (9907 lines/second) Physical Source Lines of Code (SLOC) = 159 Hits@level = [0] 0 [1] 1 [2] 3 [3] 0 [4] 2 [5] 1 Hits@level+ = [0+] 7 [1+] 7 [2+] 6 [3+] 3 [4+] 3 [5+] 1 Hits/KSLOC@level+ = [0+] 44.0252 [1+] 44.0252 [2+] 37.7358 [3+] 18.8679 [4+] 18.8679 [5+] 6.28931 Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! Flawfinder version 1.27, (C) 2001-2004 David A. Wheeler. Number of dangerous functions in C/C++ ruleset: 160 /tmp/bogosec.temp_target.sJE6de/src/debian/bash.preinst.c:225: [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. Reconsider approach. /tmp/bogosec.temp_target.sJE6de/src/debian/bash.preinst.c:38: [4] (shell) execl: This causes a new program to execute and is difficult to use safely. try using a library call that implements the same functionality if available. /tmp/bogosec.temp_target.sJE6de/src/debian/bash.preinst.c:71: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition. Set up the correct permissions (e.g., using setuid()) and try to open the file directly. /tmp/bogosec.temp_target.sJE6de/src/debian/bash.preinst.c:103: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition. Set up the correct permissions (e.g., using setuid()) and try to open the file directly. /tmp/bogosec.temp_target.sJE6de/src/debian/bash.preinst.c:157: [4] (shell) execl: This causes a new program to execute and is difficult to use safely. try using a library call that implements the same functionality if available. /tmp/bogosec.temp_target.sJE6de/src/debian/bash.preinst.c:195: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition. Set up the correct permissions (e.g., using setuid()) and try to open the file directly. /tmp/bogosec.temp_target.sJE6de/src/debian/bash.preinst.c:202: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition. Set up the correct permissions (e.g., using setuid()) and try to open the file directly. /tmp/bogosec.temp_target.sJE6de/src/debian/bash.preinst.c:213: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition. Set up the correct permissions (e.g., using setuid()) and try to open the file directly. /tmp/bogosec.temp_target.sJE6de/src/debian/bash.preinst.c:65: [2] (buffer) char: Statically-sized arrays can be overflowed. Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. /tmp/bogosec.temp_target.sJE6de/src/debian/bash.preinst.c:73: [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?. /tmp/bogosec.temp_target.sJE6de/src/debian/bash.preinst.c:165: [2] (buffer) char: Statically-sized arrays can be overflowed. Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. /tmp/bogosec.temp_target.sJE6de/src/debian/bash.preinst.c:192: [2] (buffer) char: Statically-sized arrays can be overflowed. Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. /tmp/bogosec.temp_target.sJE6de/src/debian/bash.preinst.c:77: [1] (buffer) read: Check buffer boundaries if used in a loop. /tmp/bogosec.temp_target.sJE6de/src/debian/bash.preinst.c:173: [1] (buffer) strlen: Does not handle strings that are not \0-terminated (it could cause a crash if unprotected). Hits = 14 Lines analyzed = 250 in 0.52 seconds (11706 lines/second) Physical Source Lines of Code (SLOC) = 198 Hits@level = [0] 0 [1] 2 [2] 4 [3] 0 [4] 7 [5] 1 Hits@level+ = [0+] 14 [1+] 14 [2+] 12 [3+] 8 [4+] 8 [5+] 1 Hits/KSLOC@level+ = [0+] 70.7071 [1+] 70.7071 [2+] 60.6061 [3+] 40.404 [4+] 40.404 [5+] 5.05051 Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! Flawfinder version 1.27, (C) 2001-2004 David A. Wheeler. Number of dangerous functions in C/C++ ruleset: 160 No hits found. Lines analyzed = 91 in 0.52 seconds (6001 lines/second) Physical Source Lines of Code (SLOC) = 20 Hits@level = [0] 0 [1] 0 [2] 0 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 0 [1+] 0 [2+] 0 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 0 [1+] 0 [2+] 0 [3+] 0 [4+] 0 [5+] 0 Minimum risk level = 1 There may be other security vulnerabilities; review your code!