secplus

Dashboard / 2.0 Threats, Vulnerabilities, and Mitigations

2.3 Explain various types of vulnerabilities

Official exam objective outline (11 topics)
  • Application
    • Memory injection
    • Buffer overflow
    • Race conditions: Time-of-check (TOC), Time-of-use (TOU)
    • Malicious update
  • Operating system (OS)-based
  • Web-based
    • Structured Query Language injection (SQLi)
    • Cross-site scripting (XSS)
  • Hardware
    • Firmware
    • End-of-life
    • Legacy
  • Virtualization
    • Virtual machine (VM) escape
    • Resource reuse
  • Cloud-specific
  • Supply chain
    • Service provider
    • Hardware provider
    • Software provider
  • Cryptographic
  • Misconfiguration
  • Mobile device
    • Side loading
    • Jailbreaking
  • Zero-day

★ Starred in your notes: zero-day · directory traversal (%2E%2E%2F).

Breakdown 1 — Application vulnerabilities

VulnerabilityWhat happensDefense
Memory injectionAttacker gets code into a process's memory (DLL injection, shellcode)DEP, ASLR, EDR
Buffer overflowInput larger than the buffer overwrites adjacent memory → crash or code executionInput validation, bounds checking, DEP/ASLR
Race condition — TOC/TOUTime-of-check to time-of-use: the program checks a condition, then acts, but the state changed in betweenAtomic operations, locking
Malicious updateA legitimate update channel delivers malware (supply chain)Code signing, verify hashes, staged rollout

From class — Chapter 12: Application exploits: privilege escalation, directory traversal (../ — URL-encoded as %2E%2E%2F, "2E 2E 2F"), arbitrary code execution, resource exhaustion. Input manipulation; memory overflow; race conditions (buffer overflow, TOC/TOU); malicious update. Know OWASP Top 10 exists — the top web attacks with remediation guidance.

Breakdown 2 — Web-based

VulnerabilityKey facts (class + exam)
SQL injection (SQLi)Untrusted input reaches a database query: ' OR 1=1--. Defend: sanitize, validate, restrict, minimize (class list) — i.e., parameterized queries/stored procedures, input validation, least-privilege DB accounts.
Cross-site scripting (XSS)Attacker's script runs in another user's browser. "Look for <>" in input; can steal cookies/sessions. Stored/persistent (saved on the server — the worst), reflected/non-persistent (bounced off a URL), DOM-based (happens entirely in client-side JavaScript). Defend: output encoding, input validation, HttpOnly cookies, CSP.
CSRF/XSRFVictim's browser is tricked into sending a request it's already authenticated for (change password, transfer funds). Defend: anti-CSRF tokens, SameSite cookies.

Breakdown 3 — Platform vulnerabilities

AreaVulnerabilities
OS-basedUnpatched kernel/services, misconfigured permissions, default accounts
HardwareFirmware (UEFI/BIOS implants), end-of-life (no more patches), legacy (can't be upgraded)
VirtualizationVM escape (break out of the guest to the hypervisor/host), resource reuse (data left in memory/disk reallocated to another tenant)
Cloud-specificMisconfigured storage buckets, over-permissive IAM, shared-tenancy risk — "when the cloud gets compromised it can affect others; think of a fire in one apartment" (class), API exposure
Supply chainService provider, hardware provider, software provider compromise
CryptographicWeak/deprecated algorithms (DES, RC4, MD5, SHA-1), short keys, bad randomness, downgrade-able protocols
MisconfigurationOpen ports, default creds, debug mode on, verbose errors, implicit allow
Mobile deviceSide loading (installing apps outside the store), jailbreaking/rooting (removing OS protections)
Zero-day"Vendor does not have a patch" (class) — exploited before a fix exists

From class — host attack surfaces (Chapter 9): software vulnerabilities (malware, open service ports, unpatched software, unauthorized systems and software), security misconfigurations, legacy platforms.

Breakdown 4 — Hypervisors (know for VM questions)

  • Type 1 / bare-metal hypervisor is installed directly on hardware (ESXi, Hyper-V, Xen).
  • Type 2 hypervisor runs on top of a host OS (VirtualBox, VMware Workstation).
  • VM escape is worse on shared/multi-tenant infrastructure; VM sprawl = too many unmanaged VMs.

Breakdown 5 — How the exam asks it

  • "Program checks a file's permissions, then opens it, but the file was swapped in between" → race condition / TOC-TOU.
  • "URL contains ../../etc/passwd" or %2E%2E%2F → directory traversal.
  • "Script in a forum post runs for every visitor" → stored XSS.
  • "Link in an email contains <script> that echoes back" → reflected XSS.
  • "Attack works because the user is still logged in to their bank" → CSRF.
  • "Guest VM reads another tenant's leftover memory" → resource reuse.
  • "Vendor announced the product is no longer supported" → end-of-life — mitigate with isolation/compensating controls.
  • "Unknown exploit, no patch" → zero-day.

Quick self-check

  • Stored vs. reflected XSS? (Stored lives on the server and hits everyone; reflected needs the victim to click a crafted link.)
  • Four defenses against SQLi from class? (Sanitize, validate, restrict, minimize.)
  • What is %2E%2E%2F? (URL-encoded ../ — directory traversal.)

Sources: 20260917_173159.jpg, 20260917_182429.jpg, 20260917_182442.jpg, 20260917_182448.jpg, 20260917_182454.jpg, 20260917_182520.jpg, 20260917_182533.jpg, 20260917_182540.jpg