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)
Related SY0-701 questions
- Which type of malware encrypts a victim's files and demands payment for the decryption key?Threats, Vulnerabilities, and Mitigations
- An on-path attacker interferes with a TLS negotiation so the client and server agree on an outdated protocol version…Threats, Vulnerabilities, and Mitigations
- An attacker carrying a concealed reader stands close to employees in a crowded elevator, copies the data from their…Threats, Vulnerabilities, and Mitigations
- During an assessment, traffic between a client and server is being secretly intercepted and relayed by a third system…Threats, Vulnerabilities, and Mitigations
All 65 free SY0-701 questions by domain · 15 sample questions on one page
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%.