- Home
- All questions
- Vulnerabilities
CompTIA Security+ study material: Vulnerabilities
117 questions of the 611 in the CompTIA Security+ quiz. Each opens with its answer, the reasoning and where that is written down.
Challenge yourself on this topic → Study as cards
The questions
- 28. A vendor will not patch a flaw in a product the organisation uses. Which two of the following are recognised risk responses in this situation? Choose two.
- 43. A manager reports to the board that a vulnerability scan "proved the systems can be breached". Why is that claim unsupported?
- 54. A team uses a vulnerability's CVSS score directly as its risk rating. Which factor does CVSS deliberately exclude that they must add themselves?
- 55. A vulnerability's base score is taken straight from a public feed and used to rank remediation. What assumption is being carried in unexamined?
- 56. A report labels a score CVSS-BTE. What does the label tell the reader?
- 57. Two flaws both score 8.8. One appears in the Known Exploited Vulnerabilities catalog. Which should be remediated first and why?
- 58. Which two conditions must be met before a vulnerability is added to the Known Exploited Vulnerabilities catalog? Choose two.
- 85. A batch of network cards turns out to be counterfeit, though no malicious code is present. Why is this still a supply chain security issue?
- 86. A critical flaw is announced in a widely used logging library. Which artefact turns finding affected products from a research project into a lookup?
- 106. A flaw the organisation has been carrying quietly for months is published in a security advisory. What changes about the risk?
- 107. Which response to a software vulnerability removes it outright without also removing functionality?
- 108. An unused reporting service on a server has an unpatched critical flaw. The business confirms nobody uses it. Which response is avoidance?
- 109. A critical flaw is found in an application whose vendor ended support two years ago. Why is this different from a normal unpatched finding?
- 110. A hospital's imaging system vendor requires that updates be applied only on its certified schedule. An engineer wants to patch immediately. What is the risk of doing so?
- 111. An upgrade would fix a vulnerability, but the new version's cryptographic modules are not yet FIPS-validated and the organisation must use validated modules. What does this illustrate?
- 112. Where does the vulnerability management lifecycle begin?
- 113. A team installs a patch and immediately closes the finding. Which lifecycle step have they skipped?
- 114. Which two activities belong to the prepare phase of executing a patch response? Choose two.
- 115. An organisation treats every patch cycle as an emergency and never plans capacity for it. Which framing does NIST recommend instead?
- 116. An enterprise patch strategy currently covers only servers and workstations. Which two asset classes must also be included? Choose two.
- 117. A legacy control system cannot be patched and cannot be replaced this year. What does NIST expect the organisation to produce for it?
- 118. A flaw is being exploited in the wild and no patch exists yet. According to NIST's patch planning guidance, how should the organisation treat this?
- 119. Which two of the following are metric groups in CVSS v4.0? Choose two.
- 120. Which CVSS metric group changes as proof-of-concept exploit code becomes publicly available?
- 121. Which CVSS Attack Vector value produces the highest severity contribution?
- 122. A flaw can only be triggered by a device on the same Wi-Fi network or local IP subnet. Which CVSS Attack Vector value applies?
- 123. An attacker recovers disk encryption keys from memory after gaining brief physical possession of a laptop. Which CVSS Attack Vector value describes this?
- 124. An exploit succeeds repeatably against any instance of a product with no target-specific work. What Attack Complexity value should it receive?
- 125. Exploiting a flaw requires the attacker to win a race condition. In CVSS v4.0, which metric captures this?
- 126. A device ships with the same default administrator password across every unit, and it is rarely changed. How should Privileges Required be scored?
- 127. A stored cross-site scripting flaw fires when the victim simply views a page. Which CVSS v4.0 User Interaction value fits?
- 128. What did CVSS v4.0 replace the older Scope metric with?
- 129. An analyst wants to lower a base score because the flaw was found through a difficult internal audit rather than being publicly known. Why is this wrong?
- 130. An organisation has a custom firewall rule that blocks the only path to a vulnerable service. Where should that be reflected in CVSS?
- 131. Who is best placed to supply the Environmental metric values for a vulnerability?
- 132. Why does FIRST require a CVSS vector string to be published alongside the numeric score?
- 133. A report references both CWE-89 and CVE-2024-XXXX for the same finding. What is the difference between the two identifiers?
- 134. A patch compliance report built from unauthenticated scans shows far fewer missing patches than the software inventory suggests. What is the likely cause?
- 135. Which scan type best measures what an outside attacker would see of an organisation's internet-facing estate?
- 136. A team must assess a fragile industrial network without risking an outage. Which technique fits?
- 137. An organisation scans only the hosts in its asset inventory. What kind of exposure does this method structurally miss?
- 138. Which activity separates a scanner finding from a confirmed vulnerability?
- 139. What is the underlying cause common to every injection flaw?
- 140. Which technique is the primary defence against SQL injection, and why does it work?
- 141. A team moves all queries into stored procedures and declares SQL injection solved. Under what condition is that claim wrong?
- 142. A report lets the user choose which column to sort by, and the column name goes into the query. Parameters cannot bind an identifier. What is the correct defence?
- 143. An application's database account is granted read access only to the two tables it needs. What does this achieve against SQL injection?
- 144. Which validation strategy does OWASP recommend, and why?
- 145. A developer removes server-side validation because the form already validates in the browser. What is the flaw in this reasoning?
- 146. Why should input be canonicalised before it is validated?
- 147. A team validates all input strictly and concludes that output encoding is unnecessary. Why is that wrong?
- 148. Which two controls should be applied to a user file upload feature? Choose two.
- 149. Why does a single encoding function not prevent all cross-site scripting?
- 150. A developer wants to insert a user-supplied value directly inside a script block, encoded carefully. What is OWASP's guidance?
- 151. What role does a Content Security Policy play in defending against cross-site scripting?
- 152. An application built on a modern framework has a stored cross-site scripting flaw. What is the most likely cause?
- 153. Why can a server not distinguish a cross-site request forgery from a legitimate request using cookies alone?
- 154. Why does a synchroniser token defeat cross-site request forgery?
- 155. A team sets SameSite on its session cookie and removes its CSRF tokens. What is OWASP's position on this?
- 156. An unauthenticated endpoint runs an expensive report generation on every call. What is the risk?
- 157. Which two application controls most directly limit denial-of-service exposure? Choose two.
- 158. An administrator raises the password hashing work factor until each login takes three seconds. What new risk has been introduced?
- 159. Which two findings fall under security misconfiguration? Choose two.
- 160. A production application returns full stack traces including framework versions when an error occurs. Beyond untidiness, what does this give an attacker?
- 161. Why do vulnerable and outdated components form a category distinct from the rest of the OWASP Top Ten?
- 162. An application fetches a URL supplied by the user to generate a link preview. Why is this dangerous?
- 163. An application turns attacker-controlled data directly into live objects. Which flaw class is this, and what is the worst case?
- 164. Which two defences remove the buffer overflow class rather than mitigating individual instances?
- 165. A program checks that a file is owned by the user, then opens it. An attacker replaces the file between the two steps. Which flaw is this?
- 166. Which virtualisation weakness would affect every tenant sharing a host?
- 167. Which two weaknesses account for most cloud security incidents? Choose two.
- 168. A user installs an application from outside the vetted app store onto a corporate phone. What is the primary weakness this creates?
- 169. Which two are hardware or firmware weaknesses rather than software ones? Choose two.
- 170. Why do supply chain vulnerabilities defeat controls aimed at untrusted input?
- 171. What does hardening a system primarily achieve?
- 172. Systems are built to a hardened baseline but drift out of compliance within weeks. Which control addresses this?
- 173. A critical flaw is disclosed and the vendor patch is two weeks away. The team deploys a rule at the application gateway that blocks the exploit pattern. What is this called?
- 174. Which step confirms that a deployed patch actually removed the vulnerability?
- 175. A patching programme reports the number of patches installed each month. Why is this a weak enterprise-level metric?
- 176. How does an organisation learn that a library it depends on has become vulnerable?
- 177. Why are logging and monitoring failures serious even though they rarely cause the breach?
- 178. A flaw is found that no amount of correct implementation would have prevented. Which category does it fall into, and what practice addresses it?
- 179. A team patches every critical-severity finding first, regardless of whether the affected service is reachable. What is the problem with this policy?
- 180. The same coding flaw exists in two code paths, one reachable from the internet and one that is dead code. Why do they carry different risk?
- 348. An application hides the delete button from non-administrators but the delete endpoint performs no check. What is wrong?
- 349. Changing the invoice number in a URL shows another customer's invoice. What is this flaw called?
- 379. Which two properties make Internet-of-Things devices difficult to secure? Choose two.
- 386. Which device can block a SQL injection attempt inside an otherwise permitted HTTPS session?
- 418. A patch programme covers operating systems and applications but not firmware. What is the consequence?
- 453. Beyond a remediation list, what does the Known Exploited Vulnerabilities catalog tell a defender?
- 464. What does cross-site scripting give the attacker access to?
- 465. Which variant of cross-site scripting affects every user who views a page, without any of them clicking a crafted link?
- 466. A security review of server responses finds no injected script, yet cross-site scripting still occurs. Which variant is most likely?
- 467. What is the most serious outcome of SQL injection when the database account is over-privileged?
- 468. An application returns identical responses regardless of the injected condition, but responses take longer when the condition is true. What does this indicate?
- 469. A request for a report filename returns the contents of a system configuration file elsewhere on disk. Which attack is this?
- 470. An application passes user input into a shell command. What is the most reliable fix?
- 471. An XML parser resolves an external entity supplied by the user and returns a local file's contents. Which configuration change prevents this?
- 477. Which malware property makes patching internet-facing services more urgent than patching desktops?
- 493. A flaw is being exploited and no patch exists. What is the appropriate response posture?
- 528. Which sequence describes the vulnerability management cycle the exam expects?
- 536. An application uses bcrypt and accepts passwords of any length. What must it also enforce?
- 566. Why can a medium-severity vulnerability legitimately outrank a high-severity one in a remediation queue?
- 576. An organisation has taken no explicit decision about a vulnerability it does not yet know exists. Which risk response is it implicitly taking?
- 577. What is the range of a CVSS score, and which metric group produces it before any refinement?
- 578. A flaw is exploitable only when a non-default option is enabled. How should the Base metrics be scored?
- 579. A scanner is tuned aggressively to reduce noise and now misses several real weaknesses. Which measure has worsened?
- 580. What does port and service identification contribute to a vulnerability assessment?
- 581. Where does escaping input sit among OWASP's SQL injection defences?
- 582. A team adds CSRF tokens to every endpoint, including read-only ones. What is the effect?
- 583. Which two of the following does the exam list among its mitigation techniques? Choose two.
- 584. What must a remediation report state beyond the list of findings?
- 585. A device cannot follow the standard patching plan. What keeps it visible and owned?
- 586. Why does OWASP treat storing unnecessary sensitive data as a vulnerability in itself?
- 587. Which two are identification and authentication failures? Choose two.
- 588. An application loads a plugin from an unverified source at runtime. Which OWASP category does this fall under?
- 600. What does the reporting step of the vulnerability management cycle achieve?