Domain 2.0 · Threats, Vulnerabilities, and Mitigations · 22% of the exam
Security+ 2.3: Types of vulnerabilities
Official objective: 2.3 Explain various types of vulnerabilities
The weaknesses attackers exploit, grouped by where they live: applications, operating systems, web apps, hardware, virtualization, cloud, supply chain, cryptography, configuration, mobile devices and zero-days.
What to know
- Memory injection and buffer overflow
- Writing past a buffer or injecting code into a process's memory to run attacker code.
- Race conditions
- Time-of-check to time-of-use (TOCTOU): the state changes between a check and its use.
- Malicious update
- An attacker compromises the update channel so a trusted update installs malware.
- SQL injection
- Unsanitised input becomes part of a database query. Fixed with parameterised queries and input validation.
- Cross-site scripting (XSS)
- Injected script runs in other users' browsers. Stored, reflected or DOM based. Fixed with output encoding and input validation.
- Hardware vulnerabilities
- Firmware flaws, end-of-life and legacy hardware that no longer receives fixes.
- Virtualization
- VM escape (break out to the hypervisor) and resource reuse (data left in reallocated memory or storage).
- Cloud-specific
- Misconfigured storage, overly broad permissions and exposed management interfaces.
- Cryptographic
- Weak or deprecated algorithms, short keys and poor key management.
- Misconfiguration
- Default settings, open permissions, unnecessary services and debug modes left on.
- Mobile devices
- Side loading apps from outside the official store and jailbreaking or rooting, which removes built-in protections.
- Zero-day
- A flaw with no vendor patch yet. Defend with layered controls, segmentation and behaviour-based detection.
Where people lose marks
- Input validation helps both SQLi and XSS, but the specific fix for SQLi is parameterised queries and for XSS is output encoding.
- No patch exists for a zero-day, so "apply the patch" is never the answer. Look for compensating controls.
Practise 2.3
Free questions on this objective, each with the answer and why every option is right or wrong:
More from domain 2.0
Objective codes and titles are CompTIA's published SY0-701 exam objectives. The explanations are our own. SY0-701 is offered until it retires; see SY0-701 or SY0-801 to pick your version.