Vulnerabilities: Applications, Web, Cloud & Supply Chain
Security+ SY0-701 · Threats, Vulnerabilities, and Mitigations
What a vulnerability is
A vulnerability is a weakness in a system, application, or process that a threat actor can exploit. Vulnerabilities exist everywhere software exists, and the exam organizes them by where they live: applications, hardware, mobile devices, virtualization, operating systems, cloud environments, web applications, and the supply chain. You do not need to memorize an exhaustive list of every weakness, but you do need to recognize the major vulnerability types, understand how each one is exploited, and know the standard fix.
Application and web vulnerabilities
Injection attacks are the most important web vulnerability family. In a SQL injection, an attacker types database commands into a web form (such as a login box) and the application passes them to the database without checking, allowing the attacker to read, modify, or delete data. The fix is input validation and parameterized queries (prepared statements), which separate the data from the command. Cross-site scripting (XSS) comes in two forms: stored XSS, where malicious script is saved on the server (for example in a comment field) and runs in every visitor's browser, and reflected XSS, where the script is bounced back from a crafted link and runs only for the victim who clicks it. Cross-site request forgery (CSRF) tricks a logged-in user's browser into performing an unwanted action on a site they trust, such as changing a password. Other application weaknesses include buffer overflows (writing more data into a memory buffer than it can hold, which can let an attacker run their own code), race conditions (two processes accessing shared data in an unsafe order), and insecure direct object references (a URL that lets a user access another user's data by changing an ID number).
Privilege escalation is what an attacker does after exploiting a vulnerability: gaining more access than they should have. Vertical escalation means moving from a normal user to an administrator; horizontal escalation means accessing another user at the same level. Replay attacks capture a valid transmission (such as a login session) and resend it later. Pass-the-hash is a Windows attack in which a stolen password hash is used directly for authentication without ever cracking the password. And DLL injection forces a running process to load malicious code.
Operating system, hardware, and virtualization vulnerabilities
Operating systems carry their own weakness classes. A zero-day vulnerability is a flaw that is known to attackers but not yet known to (or not yet patched by) the vendor, leaving defenders with no fix available. Unpatched systems are the most common real-world vulnerability: the fix exists, but it has not been applied. Default credentials — factory usernames and passwords left unchanged on routers, cameras, and servers — are one of the easiest wins for an attacker. End-of-life systems no longer receive security updates at all.
Hardware vulnerabilities include firmware flaws (malicious or vulnerable BIOS/UEFI code that runs before the operating system), side-channel attacks (extracting secrets by measuring timing, power consumption, or electromagnetic emissions), and supply chain tampering (malicious components inserted during manufacturing or shipping). In virtualization, VM escape is the nightmare scenario: an attacker breaks out of a virtual machine and reaches the host or other virtual machines. VM sprawl — forgotten, unpatched virtual machines running on the network — is a management vulnerability that creates unmanaged attack surface.
Cloud-specific and mobile vulnerabilities
Cloud environments introduce weaknesses that do not exist on premises. Misconfiguration is the most common cloud vulnerability: a storage bucket left public, a security group open to the whole internet, or a database exposed without authentication. Insecure APIs expose cloud services to attack when authentication or rate limiting is missing. Shared tenancy means your workloads run on the same physical hardware as other customers', so a hypervisor flaw could theoretically expose your data. Cloud metadata services can be abused through server-side request forgery (SSRF) to steal temporary credentials from a virtual machine.
Mobile devices have their own risks: sideloading (installing apps from outside the official store), jailbreaking (iOS) and rooting (Android), which remove the operating system's built-in protections, and malicious apps that request excessive permissions. A rooted or jailbroken device cannot be trusted, because the security controls the operating system relies on have been deliberately disabled.
Supply chain and third-party vulnerabilities
Modern software is assembled from components written by many different organizations, and every dependency is a potential weakness. A supply chain vulnerability is a flaw introduced through a vendor, a library, or a component your organization did not write. Open-source dependencies with known vulnerabilities are a major risk: a single vulnerable library can affect thousands of applications. Vendor backdoors and counterfeit hardware are deliberate supply chain risks. The exam also tests improper error handling (error messages that leak internal details such as database structure) and information disclosure through verbose logging or debug output. The defense is a combination of vendor assessment, software bills of materials (SBOMs), dependency scanning, and keeping third-party components patched.
How vulnerabilities are tracked and scored
The security industry tracks vulnerabilities through shared databases so that everyone can talk about the same flaw with the same name. A CVE (Common Vulnerabilities and Exposures) entry gives each publicly known vulnerability a unique identifier, such as CVE-2024-12345, with a brief description. The National Vulnerability Database (NVD), maintained by the US National Institute of Standards and Technology (NIST), enriches CVE entries with severity scores, affected products, and references. CWE (Common Weakness Enumeration) is a catalog of the underlying weakness types — such as improper input validation or insecure default settings — that cause vulnerabilities. When a scanner reports a finding, it usually cites the CVE identifier and the CVSS score so the team can look up the details and prioritize the fix.
CVSS (Common Vulnerability Scoring System) rates each vulnerability from 0.0 to 10.0 based on factors such as how the vulnerability can be exploited (over the network or only with local access), how complex the attack is, whether the attacker needs credentials or user interaction, and what the impact is on confidentiality, integrity, and availability. The ratings are: None (0.0), Low (0.1–3.9), Medium (4.0–6.9), High (7.0–8.9), and Critical (9.0–10.0). The exam tests these bands directly, and it also tests the judgment that a CVSS score alone does not determine priority: a Critical vulnerability on an isolated test system matters less than a High vulnerability on an internet-facing production server. Prioritization must combine the score with exposure, asset value, and whether an exploit is publicly available.
Exam traps to watch for
- Confusing stored XSS with reflected XSS. Stored XSS is saved on the server and hits every visitor; reflected XSS needs the victim to click a crafted link.
- Calling every web attack 'SQL injection'. SQL injection targets the database; XSS targets the victim's browser; CSRF tricks the victim's browser into acting on a trusted site.
- Thinking a zero-day is a type of malware. A zero-day is a vulnerability the vendor does not yet know about or has not patched — the window before a fix exists.
- Forgetting that misconfiguration, not exotic hacking, is the most common cloud vulnerability. A public storage bucket is a configuration error, not an exploit.
Practice questions
Test yourself on this guide. Answers are checked instantly, with a full explanation for each question.
Q1.An attacker enters `' OR '1'='1` into a website's login form and gains access to the administrator account without knowing the password. Which vulnerability was exploited?
Explanation: SQL injection occurs when user input is passed to a database without validation, letting the attacker inject database commands. The input `' OR '1'='1` makes the login query always true, bypassing authentication. Option B is wrong because XSS injects scripts into a victim's browser, not database commands. Option A is wrong because CSRF tricks a logged-in user's browser into performing an unwanted action. Option C is wrong because a buffer overflow writes excess data into memory to execute code.
Exam objective: SY0-701 Objective 2.3: Explain various types of vulnerabilities
Q2.A developer wants to prevent SQL injection in a new web application. Which coding practice is the most effective defense?
Explanation: Parameterized queries separate the SQL command from the user-supplied data, so the database treats input as data only and never as executable code. Option B is wrong because blocking special characters is a weak, easily bypassed filter and breaks legitimate input. Option A is wrong because encryption protects data at rest but does nothing to stop injection, since the application still passes unvalidated input to the database. Option C is wrong because MFA strengthens authentication but does not affect how the application handles input.
Exam objective: SY0-701 Objective 2.3: Explain various types of vulnerabilities
Q3.An attacker posts a comment on a forum that contains a malicious script. Every user who views the comment has the script run in their browser, stealing their session cookies. Which vulnerability is this?
Explanation: Stored XSS (persistent XSS) occurs when malicious script is saved on the server — in this case in a forum comment — and executes in the browser of every user who views it. Option C is wrong because reflected XSS is not stored; it is delivered through a crafted link and affects only the victim who clicks it. Option A is wrong because SSRF tricks a server into making requests to internal systems. Option B is wrong because privilege escalation is about gaining higher access levels, not injecting scripts into web pages.
Exam objective: SY0-701 Objective 2.3: Explain various types of vulnerabilities
Q4.A company discovers that attackers are exploiting a flaw in its web server software. The vendor has confirmed the flaw but has not yet released a patch. What is this type of vulnerability called?
Explanation: A zero-day vulnerability is a flaw that is known to attackers (and possibly the vendor) but for which no patch exists yet, leaving defenders with zero days of warning before exploitation. Option D is wrong because a buffer overflow is a specific memory vulnerability, not a description of patch availability. Option C is wrong because a race condition is a timing flaw between two processes. Option B is wrong because misconfiguration means a system was set up insecurely, not that a patch is unavailable.
Exam objective: SY0-701 Objective 2.3: Explain various types of vulnerabilities
Q5.An attacker gains access to a virtual machine hosted on a shared server and then breaks out of the virtual machine to access the host operating system and other tenants' virtual machines. What is this attack called?
Explanation: VM escape is an attack in which an intruder breaks out of a virtual machine's isolation and reaches the host system or other virtual machines running on the same host. Option D is wrong because VM sprawl refers to the uncontrolled growth of forgotten, unpatched virtual machines. Option C is wrong because a side-channel attack extracts secrets by measuring physical signals such as timing or power use. Option A is wrong because pass-the-hash uses a stolen Windows password hash for authentication.
Exam objective: SY0-701 Objective 2.3: Explain various types of vulnerabilities
Q6.A cloud storage bucket containing customer records is discovered to be publicly readable by anyone on the internet. The bucket was created with the wrong access settings. Which cloud vulnerability does this describe?
Explanation: Misconfiguration is the most common cloud vulnerability: a resource set up with insecure settings, such as a storage bucket left publicly accessible. Option B is wrong because no API was involved; the issue is the bucket's access settings. Option D is wrong because shared tenancy is about multiple customers sharing physical hardware, not about access settings. Option A is wrong because VM escape involves breaking out of a virtual machine.
Exam objective: SY0-701 Objective 2.3: Explain various types of vulnerabilities
Q7.A regular employee discovers that by changing the user ID number in a web application's URL from 1042 to 1043, she can view another employee's pay slip. Which vulnerability is this?
Explanation: An insecure direct object reference (IDOR) occurs when an application exposes internal object identifiers (like a user ID in a URL) and fails to check whether the requester is authorized to access that object. Option A is wrong because the employee did not gain a higher privilege level; she accessed another user at the same level. Option C is wrong because a replay attack resends a captured transmission. Option D is wrong because DLL injection forces a process to load malicious code.
Exam objective: SY0-701 Objective 2.3: Explain various types of vulnerabilities
Q8.A company installs new network switches but leaves the factory default username and password unchanged on all of them. An attacker finds the default credentials in the vendor's public documentation and logs in to the switches. Which vulnerability category best describes this failure?
Explanation: Leaving factory default credentials in place is a default credential vulnerability — one of the easiest and most common ways attackers gain access, since defaults are published in vendor documentation. Option D is wrong because the supply chain was not compromised; the switches themselves are genuine. Option B is wrong because the issue is the credentials, not a flaw in the operating system. Option A is wrong because the hardware itself is not faulty; the configuration is.
Exam objective: SY0-701 Objective 2.3: Explain various types of vulnerabilities