SY0-801 · Objective 2.4 · Threats, Vulnerabilities, and Attacks
SY0-801 objective 2.4: Vulnerabilities and attack surfaces explained
The official objective: “Explain types of vulnerabilities and attack surfaces.” Here is what it means, what candidates mix up, and 3 practice questions that test it.
What objective 2.4 covers
This objective was 2.3 in SY0-701. V8 adds attack surfaces to the title and shifts the list toward the weaknesses real organisations struggle with: forgotten systems, leaked secrets, unmanaged accounts and cloud storage. Questions describe a flaw and ask you to name it, so identify where the weakness lives first: in code, configuration, an asset nobody manages, or an identity.
Start with system state. An unsupported product gets no more security fixes from its vendor. An unpatched system has fixes available that nobody has applied. An obsolete system is outdated technology that may still be supported but no longer meets current security needs. An unmanaged system sits outside inventory and patching altogether. Open ports and running services widen the attack surface, because every listening service is a door.
Application and code weaknesses come next. A race condition happens when the result depends on timing; in the time-of-check to time-of-use (TOC/TOU) case, a program checks a file or permission, and an attacker changes it before it is used. A malicious update delivers attacker code through a legitimate update channel. Hardcoded secrets such as API keys or passwords written into source code are exposed to anyone who can read it. Unsafe exception handling leaks stack traces and internal details, or leaves the program in an insecure state when an error occurs.
Platform weaknesses include operating system flaws and virtualization issues such as VM escape (code breaking out of a guest into the hypervisor) and resource reuse between tenants. A zero-day is a flaw being exploited before a patch exists. Cryptographic vulnerabilities come from broken algorithms such as MD5 or DES, short keys or poor key handling.
Identity and asset weaknesses are prominent in V8. Unmanaged or stale credentials, such as accounts of departed staff or service passwords never rotated, are easy entry points. Identity providers are high-value targets, because compromising the system that issues logins can open every connected application. Rogue devices are unauthorised hardware on the network, such as an access point plugged in under a desk. Shadow IT is staff using unapproved services, which security can't protect because it doesn't know they exist. Wireless and low-powered communications, including IoT protocols, often trade security for battery life. Mobile devices add side loading and jailbreaking. Large language models add prompt injection and data leakage (covered in depth in objective 2.6).
Misconfiguration remains one of the most common real-world weaknesses, and two V8 bullets are specific cases of it: public code repositories that expose secrets or internal code, and public object storage, such as cloud buckets readable by anyone. Knowing the category points to the fix: patch or replace, harden configuration, inventory assets, rotate secrets or remove access.
What candidates mix up
- Unsupported versus unpatched: unsupported means no fix will ever come; unpatched means a fix exists and hasn't been applied.
- Rogue device versus shadow IT: a rogue device is unauthorised hardware on the network; shadow IT is usually an unapproved service or application.
- Race condition versus replay: a race condition is a timing flaw inside a program; a replay attack resends a captured valid request.
- Zero-day means no patch is available yet, not that the bug is new to you.
Practice questions for 2.4
From the CertRidge SY0-801 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 Attacks objectives
Also: the Threats, Vulnerabilities, and Attacks domain page (24% of the exam), all SY0-801 objectives and the SY0-801 cheat sheet.
Ready for a full SY0-801 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-801 exam objectives. The explanations and questions are our own. Not affiliated with CompTIA.