SY0-701 · Objective 2.3 · Threats, Vulnerabilities, and Mitigations
2.3 Types of vulnerabilities explained
The official objective: “Explain various types of vulnerabilities.” Here is what it means, what candidates mix up, and 3 practice questions that test it.
What objective 2.3 covers
Objective 2.3 is a catalogue of weakness types. Questions describe a flaw in a sentence or two and ask you to name it, or ask which weakness a situation represents. The trick is to identify where the weakness lives: in code, in configuration, in hardware, or in a process.
Application vulnerabilities live in code. Memory injection places malicious code inside the memory of a running, trusted process. A buffer overflow writes more data into a fixed-size memory area than it can hold, overwriting what sits next to it. A race condition happens when the result depends on timing; the time-of-check to time-of-use case is the classic one, where a file is checked and then swapped before it is used. A malicious update delivers attacker code through a legitimate update channel. Operating system vulnerabilities and web flaws follow: SQL injection lets input change a database query, and cross-site scripting lets input run as script in other users' browsers.
Hardware vulnerabilities include firmware flaws and devices that are end-of-life or legacy, which means no more security fixes. Virtualization adds VM escape, where code breaks out of a guest into the hypervisor, and resource reuse, where memory or storage from one tenant reaches another without being cleared. Cloud-specific issues are often customer-made, such as public storage or over-broad permissions.
Supply chain vulnerabilities come through service providers, hardware providers and software providers you depend on. Cryptographic vulnerabilities come from weak or broken algorithms such as MD5 or DES, short keys or poor key handling. Misconfiguration is one of the most common real-world weaknesses: default settings, open shares, unnecessary services. Mobile devices add side loading (installing apps from outside the official store) and jailbreaking or rooting (removing the manufacturer's restrictions). A zero-day is a vulnerability being exploited before a patch exists.
Knowing the category points to the fix. Code flaws are fixed in code, for example with bounds checking or parameterised queries. Configuration flaws are fixed by hardening. Hardware and end-of-life issues usually need replacement or compensating controls. Cryptographic weaknesses need a modern algorithm. When you see a question, name the category first; the right answer usually follows.
What candidates mix up
- Buffer overflow versus memory injection: an overflow corrupts adjacent memory through oversized input; memory injection deliberately loads code into another process.
- Race condition versus replay: a race condition is a timing flaw inside a program; a replay attack resends a captured valid request.
- Resource reuse versus VM escape: reuse leaks leftover data between tenants; escape breaks out of the guest entirely.
- Zero-day means no patch is available yet, not that the bug is new to you.
Practice questions for 2.3
From the CertRidge SY0-701 question bank. Try each one before opening the answer.
Question 1
A script checks that a file is owned by the current user, then a moment later opens and writes to it as a privileged process. An attacker swaps the file for a symlink in between the two steps. What class of vulnerability is being exploited?
- AA race condition — specifically time-of-check to time-of-use (TOCTOU)
- BCross-site scripting
- CA buffer overflow
- DSQL injection
Show answer and explanation
Answer: A) A race condition — specifically time-of-check to time-of-use (TOCTOU)
- AThe gap between validating a resource and using it lets an attacker change what the name refers to; fixes include operating on file handles/atomic operations rather than re-resolving the path.
- BXSS injects script into web pages viewed by other users; unrelated to local file check/use timing.
- CA buffer overflow writes past a memory boundary; this attack is about timing, not memory bounds.
- DThere is no database query being manipulated here.
Question 2
A hypervisor assigns memory freed by one customer's virtual machine to another customer's virtual machine without clearing it first, exposing leftover data. Which virtualization vulnerability is this?
- AResource reuse
- BVM escape
- CVM sprawl
- DSide loading
Show answer and explanation
Answer: A) Resource reuse
- AResource reuse occurs when shared resources such as memory or storage are reallocated without being sanitized, leaking previous tenants' data.
- BVM escape is breaking out of a guest to interact with the hypervisor or host; here data leaks through reused memory.
- CVM sprawl is an uncontrolled growth of unmanaged virtual machines; it doesn't describe leftover data in memory.
- DSide loading is installing apps from unofficial sources on mobile devices; it isn't a hypervisor issue.
Question 3
An audit finds that an internal application still hashes passwords with MD5 and encrypts files with DES. What type of vulnerability is this?
- AA cryptographic vulnerability
- BA race condition
- CBloatware
- DA physical vulnerability
Show answer and explanation
Answer: A) A cryptographic vulnerability
- AWeak or outdated algorithms can be broken or brute-forced, undermining the protection they're meant to provide.
- BA race condition is a timing flaw between operations.
- CBloatware is unnecessary preinstalled software.
- DPhysical vulnerabilities involve facilities and hardware access, not algorithms.
Other Threats, Vulnerabilities, and Mitigations objectives
Also: the Threats, Vulnerabilities, and Mitigations domain page (22% of the exam), all SY0-701 objectives and the SY0-701 cheat sheet.
Ready for a full SY0-701 practice exam?
Timed practice exams match the real exam's length and domain weights, every result shows your score per domain, and Review Mode re-drills the questions you missed.
Objective numbers and statements from CompTIA's published SY0-701 exam objectives. The explanations and questions are our own. Not affiliated with CompTIA.