exam questions

Exam PT0-003 All Questions

View all questions & answers for the PT0-003 exam

Exam PT0-003 topic 1 question 4 discussion

Actual exam question from CompTIA's PT0-003
Question #: 4
Topic #: 1
[All PT0-003 Questions]

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?

  • A. Drop all excessive file permissions with chmod o-rwx.
  • B. Ensure the requests application access logs are reviewed frequently.
  • C. Disable the use of external entities.
  • D. Implement a WAF to filter all incoming requests.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
680e6b7
4 days, 2 hours ago
Selected Answer: C
This vulnerability is likely caused by XML External Entity (XXE) injection, where an application improperly processes XML input and allows attackers to access sensitive files like /etc/passwd. Disabling external entities in the XML parser prevents attackers from exploiting this weakness. Option A (chmod o-rwx): While restricting file permissions is a good security practice, it does not directly prevent XXE attacks. Option B (Reviewing logs frequently): Monitoring logs helps detect attacks but does not prevent them. Option D (Implementing a WAF): A Web Application Firewall (WAF) can help filter malicious requests, but it is not a foolproof solution against XXE vulnerabilities. For a more robust defense, developers should also use secure XML parsers, validate input, and implement proper access controls
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago