Skip to main content

SY0-701 practice question · Threats, Vulnerabilities, and Mitigations

Which vulnerability type occurs when an application fails to properly validate the size of input copied into a…

Which vulnerability type occurs when an application fails to properly validate the size of input copied into a fixed-size memory area, potentially letting an attacker overwrite adjacent memory?

  • ABuffer overflow
  • BCross-site scripting (XSS)
  • CDirectory traversal
  • DRace condition
Show the answer and explanation

Correct answer: A) Buffer overflow

Why each option is right or wrong

  • A) Correct. A buffer overflow happens when data written to a buffer exceeds its allocated size, and unvalidated input can let an attacker overwrite adjacent memory to crash or hijack the program.
  • B) Incorrect. XSS injects malicious script into web content viewed by other users; it's unrelated to fixed-size memory buffers.
  • C) Incorrect. Directory traversal manipulates file paths to access files outside an intended directory; it doesn't involve overflowing a memory buffer.
  • D) Incorrect. A race condition results from unsynchronized timing between operations, not from writing past the end of a fixed-size buffer.
Exam domain
Threats, Vulnerabilities, and Mitigations · 22% of SY0-701
Question type
Multiple choice (one answer)

Practise the full SY0-701 exam

This question is one of a small free sample from the CertRidge SY0-701 bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.

Original question written from the official exam guide. Not affiliated with CompTIA; never copied from the real exam.

Worth reading: Security+ passing score (750/900), 750 on a 100–900 scale for SY0-701, SY0-801 and the retired SY0-601, and why it isn't 83%.