related to vulnerabilities in string manipulation libraries (ex.: causing a buffer overflow by omitting the null terminator), or related to sanitizing input strings.
The string
type is a fundamental datastructure in computing - often represented as an array of char
s in low level languages, or as a basic type in higher-level languages.
Over the years, many vulnerabilities have been introduced by sloppy handling of strings - for example, naive use of c
's basic operation scanf(format string, inputString)
is vulnerable to a buffer overflow if the null terminator is absent. Vulnerabilities are also introduced by improper sanitization of input strings in higher level languages like javascript or sql.