Information Networking Security and Assurance Lab National Chung Cheng University Flawfinder
Information Networking Security and Assurance Lab National Chung Cheng University 2 Contents Overview Environment Install Flawfinder Usage of Flawfinder Example How does Flawfinder Work?
Information Networking Security and Assurance Lab National Chung Cheng University 3 Overview Flawfinder search through C/C++ source code looking for potential security flaw. Flawfinder can integrate well with text editors and integrated development environments.
Information Networking Security and Assurance Lab National Chung Cheng University 4 Install Flawfinder Download Flawfinder
Information Networking Security and Assurance Lab National Chung Cheng University 5 Install Flawfinder (cont.) Unpacking the Package
Information Networking Security and Assurance Lab National Chung Cheng University 6 Usage of Flawfinder Synopsis
Information Networking Security and Assurance Lab National Chung Cheng University 7 Example: wu-ftpd 2.6.0
Information Networking Security and Assurance Lab National Chung Cheng University 8 Example: wu-ftpd (cont.)
Information Networking Security and Assurance Lab National Chung Cheng University 9 Example: wu-ftpd (cont.)
Information Networking Security and Assurance Lab National Chung Cheng University 10 Example: wu-ftpd (cont.)
Information Networking Security and Assurance Lab National Chung Cheng University 11 How does Flawfinder Work? Flawfinder works by using a built-in database of C/C++ functions with well-known problems. Buffer Overflow Risks strcpy(), strcat(), gets(), sprintf(), and the scanf() family Format String Problems [v][f]printf(), [v]snprintf(), and syslog()
Information Networking Security and Assurance Lab National Chung Cheng University 12 How does Flawfinder Work? (cont.) Race Conditions access(), chown(), chgrp(), chmod(), tmpfile(), tmpnam(), tempnam(), and mktemp() Potential Shell Meta-character Dangers Most of the exec() family, system(), popen() Poor Random Number Acquisition Such as random()
Information Networking Security and Assurance Lab National Chung Cheng University 13 Risk in the Hitlist