CompTIA PenTest+ PT0-002 Practice Question

In a penetration testing engagement, you discover that a client's web application is improperly using data received from form submissions, leading to a high-risk vulnerability. In the final report, you advise on a defense mechanism that separates the input content from the database command. Which recommendation most effectively mitigates the identified risk?

  • Rely on the inherent security of stored procedures to handle any direct interaction with the database.

  • Escape all special characters in the form submission data to neutralize any malicious payloads.

  • Limit the number of characters in form text inputs to reduce the risk of hazardous commands being injected.

  • Implement parameterized queries as this method prevents attacker-provided data from being treated as executable instructions.

  • Enforce strict validation checks in the browser to ensure only clean data is submitted to the server.

CompTIA PenTest+ PT0-002
Reporting and Communication
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot