Despite a system administrator's best efforts, virtually all hardware and software contain bugs. If a bug creates a security risk, it is called a vulnerability. Software patches are often released to fix identified vulnerabilities, but
zero-days are still liable for exploitation. Vulnerabilities vary in their ability to be
exploited by malicious actors, and the actual risk is dependent on the nature of the vulnerability as well as the value of the surrounding system. Although some vulnerabilities can only be used for
denial-of-service attacks, more dangerous ones allow the attacker to perform
code injection without the user's awareness. Only a minority of vulnerabilities allow for
privilege escalation, which is typically necessary for more severe attacks. Without a vulnerability, an exploit typically cannot gain access. It is also possible for
malware to be installed directly, without an exploit, through
social engineering or poor
physical security such as an unlocked door or exposed port.
Design factors Vulnerabilities can be worsened by poor design factors, such as: • Complexity: Large, complex systems increase the possibility of flaws and unintended access points. • Familiarity: Using common, well-known code, software, operating systems, and/or hardware increases the probability an attacker has or can find the knowledge and tools to exploit the flaw. However, using well-known software, particularly
free and open-source software, comes with the benefit of having more frequent and reliable software patches for any discovered vulnerabilities. • Connectivity: any system connected to the internet can be accessed and compromised.
Disconnecting systems from the internet can be extremely effective at preventing attacks, but it is not always feasible. •
Legacy software and
hardware is at increased risk by nature. System administrators should consider upgrading from legacy systems, but this is often prohibitive in terms of cost and
downtime.
Development factors Poor
software development practices can affect the likelihood of introducing vulnerabilities to a code base. Lack of knowledge or training regarding secure software development, excessive pressure to deliver, or an excessively complex code base can all allow vulnerabilities to be introduced and left unnoticed. These factors can also be exacerbated if security is not prioritized by the
company culture. Inadequate
code reviews can also lead to missed bugs, but there are also
static code analysis tools that can be used during the code review process to help find some vulnerabilities.
DevOps, a development workflow that emphasizes automated testing and deployment to speed up the deployment of new features, often requires that many developers be granted access to change configurations, which can lead to deliberate or inadvertent inclusion of vulnerabilities. Compartmentalizing dependencies, which is often part of DevOps workflows, can reduce the
attack surface by paring down dependencies to only what is necessary. If
software as a service is used, rather than the organization's own hardware and software, the organization is dependent on the cloud services provider to prevent vulnerabilities.
National Vulnerability Database classification The
National Vulnerability Database classifies vulnerabilities into eight root causes that may be overlapping, including: •
Input validation vulnerabilities exist when
input checking is not sufficient to prevent the attacker from injecting malicious code.
Buffer overflow exploits,
buffer underflow exploits, and
boundary condition exploits typically take advantage of this category. •
Access control vulnerabilities enable an attacker to access a system that is supposed to be restricted to them, or engage in
privilege escalation. • When the system fails to handle and exceptional or unanticipated condition correctly, an attacker can exploit the situation to gain access. • Configuration vulnerability come into existence when configuration settings cause risks to the system security, leading to such faults as unpatched software or file system permissions that do not sufficiently restrict access. • A
race condition—when timing or other external factors change the outcome and lead to inconsistent or unpredictable results—can cause a vulnerability. ==Vulnerabilities by component==