Facebook pixel tracking

The Science and Information (SAI) Organization publishes open-access peer-reviewed journals in computer science and artificial intelligence.

Contact Info
Website thesai.org
Follow Us
Contact Info
Follow Us
Research Article | Open Access |

Investigating the Input Validation Vulnerabilities in C Programs

Author 1: Shouki A. Ebad
International Journal of Advanced Computer Science and Applications (IJACSA) · Vol. 14, No. 1 · Published 2023

DOI: https://doi.org/10.14569/IJACSA.2023.0140117

Abstract

Input validation is a fairly universal programming practice that helps reduce the chances of producing protection-related vulnerabilities in software. In this paper, an experiment is conducted to specifically determine the input validation issues found in programs and the problematic functions that lead to such issues. The experiment evaluated 12 arbitrarily selected open source C projects written by different programmers. The top two most common input validation problems are buffer overflow/XSS and potential memory mismanagement. In addition, the functions that caused the first problem are (a) strings/text functions (e.g., strcpy and strcmp), and (b) functions that read from standard input, STDIN (e.g., scanf and gets). In contrast, the functions that caused the second problem are (a) memory allocation/deallocation functions (e.g., memmove and malloc), and (b) file manipulation functions (e.g., fopen and fseek). Furthermore, the goto construct—to a small extent—plays a role. The recommendations are that (a) developers are encouraged to use memory-safe programming languages, otherwise, they should perform different types of checks for the validity of inputs as soon as they are entered, and (b) they should have the required knowledge of secure source code and use tools/suites to manage malformed strings.

Keywords

How to Cite this Article

Ebad, S. A. (2023). Investigating the Input Validation Vulnerabilities in C Programs. International Journal of Advanced Computer Science and Applications, 14(1). https://doi.org/10.14569/IJACSA.2023.0140117

Ebad, Shouki A.. "Investigating the Input Validation Vulnerabilities in C Programs." International Journal of Advanced Computer Science and Applications, vol. 14, no. 1, 2023, https://doi.org/10.14569/IJACSA.2023.0140117.

@article{Ebad2023,
  title     = {Investigating the Input Validation Vulnerabilities in C Programs},
  journal   = {International Journal of Advanced Computer Science and Applications},
  volume    = {14},
  number    = {1},
  year      = {2023},
  publisher = {The Science and Information Organization},
  author    = {Shouki A. Ebad},
  doi       = {10.14569/IJACSA.2023.0140117},
  url       = {https://doi.org/10.14569/IJACSA.2023.0140117}
}

Open Access — licensed under a Creative Commons Attribution 4.0 International License. Unrestricted use, distribution, and reproduction in any medium, even commercially, as long as the original work is properly cited.