A Study of Vulnerability Identifiers in Code Comments: Source, Purpose, and Severity

Published online: May 24, 2022 Full Text: PDF (1.47 MiB) DOI: 10.24138/jcomss-2021-0124
Cite this paper
Authors:
Yusuf Sulistyo Nugroho, Dedi Gunawan, Devi Afriyantari Puspa Putri, Syful Islam, Abdulaziz Alhefdhi

Abstract

Software vulnerability is one of the weaknesses in computer security that challenges developers to rectify. Software maintainers rely on code comments to maintain their source code, including fixing vulnerability issues. To facilitate understanding the security issues in the related code, vulnerability identifiers are commonly included in code comments. However, not all vulnerability-related code comments describe clearly the purposes of the inclusion of the identifiers. Based on this evidence, we investigate the importance of vulnerability identifiers contained in source code comments, which is the novelty of this paper. We performed a study of 1,491 code comments that refer to vulnerability identifiers to define their categories. We then applied a mixed-method approach to classifying the types of the related repository and code, the rationale of identifier references, and the severity level of vulnerabilities in the code. The results indicate that vulnerability identifiers in code comments are useful to notify security issues for the related source code, and our study widens up chances for future work to further investigate these problems.

Keywords

code comments, identifier, vulnerability
Creative Commons License 4.0
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.