Question 340
At fictional Fairwater Retail, a software-security team is conducting a supplier and application control assessment under a defined risk appetite and change authorization. The case observation is: A customer-service dashboard inserts an untrusted support-ticket title directly into an HTML response. The team must select a defensible control or assessment. Which repeatable engineering safeguard would most directly reduce recurrence?
Explanation
Writer-proposed answer: D (UNVERIFIED)
Preliminary individual option explanations — NOT expert validated
Correct Answer
Preventing cross-site scripting depends on output context, not a universal input filter alone. Stored script-like payloads render as inert text in browser tests rather than execute.
Incorrect Answers
This response concerns ssrf in url preview. Here, a customer-service dashboard inserts an untrusted support-ticket title directly into an HTML response. The confirming evidence is: Stored script-like payloads render as inert text in browser tests rather than execute.
Parameterized database queries concerns a different operational mechanism. Preventing cross-site scripting depends on output context, not a universal input filter alone.
Focusing on template injection isolation would leave this problem unresolved: A customer-service dashboard inserts an untrusted support-ticket title directly into an HTML response.