Unit 7: Types of Vulnerabilities
Lesson at a glance
| Item | Detail |
| --- | --- |
| Suggested length | 3 x 60 minutes |
| Objective alignment | SY0-701 2.3 (Explain various types of vulnerabilities). SY0-801 equivalent: 2.4 (types of vulnerabilities and attack surfaces); 801 2.1 adds CVE and CVSS scoring |
| Materials | learner.md reading, worksheet.md lab, assets/ lab files (if any), quiz.md |
| Lab boundary | Local, fictional data only; no scanning or testing of real school, home, or public systems |
CompTIA and Security+ are trademarks of CompTIA, Inc. Blackbox Intelligence Group LLC is not affiliated with or endorsed by CompTIA. Objective numbers are listed for alignment only.
Topics
- Vocabulary
- Application vulnerabilities
- OS-based and web-based
- Hardware, virtualization, cloud
- Supply chain, crypto, misconfiguration, mobile, zero-day
- Prioritizing
- SY0-801 notes
Teacher lesson
Maps to: SY0-701 2.3 (Explain various types of vulnerabilities). SY0-801 equivalent: 2.4 (types of vulnerabilities and attack surfaces); 801 2.1 adds CVE and CVSS scoring. Time: 2 class periods plus lab. Builds on: Cyber II units 5 and 7.
1. Vocabulary
A vulnerability is a weakness that a threat could exploit [N1]. Public vulnerabilities get CVE IDs; the CWE list names the underlying weakness types [M1][M2].
2. Application vulnerabilities
- Memory injection: placing malicious code into another process's memory so it runs with that process's rights.
- Buffer overflow: writing past the end of a buffer, overwriting adjacent memory; can crash a program or let an attacker run code (CWE-120, CWE-787) [M2].
- Race conditions, TOC/TOU: the program checks a condition (time of check) and later acts on it (time of use); if something changes in between, the check no longer holds (CWE-367). Lab Part B shows two withdrawals passing the same balance check.
- Malicious update: an attacker tampers with a software update so trusted update mechanisms deliver malware. Defend with code signing and verified update channels.
3. OS-based and web-based
- OS-based: flaws in the kernel or system services; patch promptly and reduce running services.
- SQL injection (SQLi): user input is concatenated into a database query and changes its meaning (CWE-89). Fix with parameterized queries and least-privilege database accounts [O1]. Lab Part A.
- Cross-site scripting (XSS): a site includes untrusted input in a page, so the attacker's script runs in other users' browsers (CWE-79). Fix with output encoding and a content security policy [O2].
4. Hardware, virtualization, cloud
- Firmware flaws live below the OS; updates are rarer and riskier.
- End-of-life hardware or software no longer gets vendor fixes; legacy systems are old but still needed, often with compensating controls.
- VM escape: code in a guest breaks out to the hypervisor or other guests. Resource reuse: memory or storage given to a new tenant still holds the previous tenant's data.
- Cloud-specific: misconfigured storage, overly broad identity permissions, exposed management interfaces, shared-responsibility gaps.
5. Supply chain, crypto, misconfiguration, mobile, zero-day
- Supply chain: service providers, hardware providers, software providers (a compromised library or build server).
- Cryptographic: weak or deprecated algorithms, poor key management, bad random numbers, expired certificates.
- Misconfiguration: default settings, open storage, unnecessary services, verbose errors. Often the most common real-world cause.
- Mobile device: side loading installs apps from outside the official store; jailbreaking/rooting removes OS restrictions, weakening the security model.
- Zero-day: a vulnerability unknown to the vendor or without a patch, so there is no fix yet; rely on defense in depth and detection.
6. Prioritizing
Combine severity (for example a CVSS score) with exposure and whether attackers are exploiting it now. CISA's Known Exploited Vulnerabilities catalog lists flaws with evidence of active exploitation [G1].
SY0-801 notes
801 2.4 adds unpatched/obsolete/unmanaged systems, ports and services, hardcoded secrets, unsafe exception handling, unmanaged/stale credentials, rogue devices, shadow IT, wireless and low-powered communications, large language models, identity providers, public repositories, and public object storage. Memory injection and buffer overflow move to 801 2.5 indicators (buffer overflow) and are dropped as a 2.4 heading. 801 2.1 adds CVE, CVSS, prioritization.
Sources
- [C1] CompTIA SY0-701 objectives v7.0, 2.3; SY0-801 objectives v2.0, 2.1, 2.4.
- [N1] NIST CSRC Glossary, "vulnerability." https://csrc.nist.gov/glossary/term/vulnerability
- [M1] MITRE CVE Program. https://www.cve.org/
- [M2] MITRE CWE: CWE-79 https://cwe.mitre.org/data/definitions/79.html ; CWE-89 https://cwe.mitre.org/data/definitions/89.html ; CWE-120 https://cwe.mitre.org/data/definitions/120.html ; CWE-367 https://cwe.mitre.org/data/definitions/367.html ; CWE-787 https://cwe.mitre.org/data/definitions/787.html
- [O1] OWASP SQL Injection Prevention Cheat Sheet. https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html
- [O2] OWASP Cross Site Scripting Prevention Cheat Sheet. https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html
- [G1] CISA Known Exploited Vulnerabilities Catalog. https://www.cisa.gov/known-exploited-vulnerabilities-catalog