Skip to main content

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

A tester submits '../../../../etc/passwd' as a filename parameter and the application returns the system password file.

A tester submits '../../../../etc/passwd' as a filename parameter and the application returns the system password file. Which vulnerability is demonstrated?

  • ADirectory (path) traversal
  • BCross-site scripting
  • CCSRF
  • DRace condition
Show the answer and explanation

Correct answer: A) Directory (path) traversal

Why each option is right or wrong

  • A) Correct. The application uses user input to build a file path without proper canonicalization or allow-listing, letting the attacker escape the intended directory.
  • B) Incorrect. XSS executes script in a browser; this attack reads server files.
  • C) Incorrect. CSRF forces a request from an authenticated user's browser; it does not read arbitrary files via a path parameter.
  • D) Incorrect. A race condition depends on timing between operations, not on path manipulation.
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%.