CompTIACompTIA
PT0-003 · Question #159
PT0-003 Question #159: Real Exam Question with Answer & Explanation
Sign in or unlock PT0-003 to reveal the answer and full explanation for question #159. The question stem and answer options stay visible for context.
Submitted by cyberguy42· Mar 6, 2026CompTIA PenTest+ / Security+ - Application Security and Vulnerability Remediation; specifically identifying and recommending mitigations for injection-based web application attacks (XXE)
Question
A penetration tester finds that an application responds with the contents of the /etc/passwd file when the following payload is sent: Which of the following should the tester recommend in the report to best prevent this type of vulnerability?
Options
- AImplement input validation to restrict XML entities.
- BImplement an allow list to prevent file system access.
- CImplement an XML firewall to prevent XXE.
- DImplement an intrusion detection system (IDS) to detect XXE attempts.
Unlock PT0-003 to see the answer
You've previewed enough free PT0-003 questions. Unlock PT0-003 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#XXE Injection#XML Security#Web Application Vulnerabilities#Penetration Testing Reporting