🔥 3-day streak
CompTIA CySA+ (CS0-003)74 / 147
Question 74 of 147

A developer builds a web-based network diagnostics tool that lets support staff enter a hostname, which the application passes to the operating system's ping utility. During a security review, an analyst confirms that entering '8.8.8.8; cat /etc/passwd' returns the contents of the password file. Which secure coding practice would MOST directly prevent this class of vulnerability?

Reviewed for accuracy · Report an issueNext question