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)
Related SY0-701 questions
- Which vulnerability type occurs when an application fails to properly validate the size of input copied into a…Threats, Vulnerabilities, and Mitigations
- 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
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%.