Question 350
At fictional Stonefield Markets, a software-security team is conducting a new feature threat-model workshop with an auditable vulnerability remediation process. The case observation is: A report builder evaluates customer-controlled template expressions using its application runtime privileges. The team must select a defensible control or assessment. Which repeatable engineering safeguard would most directly reduce recurrence?
Explanation
Writer-proposed answer: B (UNVERIFIED)
Preliminary individual option explanations — NOT expert validated
Correct Answer
Dynamic evaluation converts user-controlled text into code unless an explicit trust boundary is maintained. Malicious template expressions cannot reach environment variables, filesystem access or privileged functions.
Incorrect Answers
This response concerns parameterized database queries. Here, a report builder evaluates customer-controlled template expressions using its application runtime privileges. The confirming evidence is: Malicious template expressions cannot reach environment variables, filesystem access or privileged functions.
Focusing on path traversal in document access would leave this problem unresolved: A report builder evaluates customer-controlled template expressions using its application runtime privileges.
Output encoding for html concerns another aspect of the problem. Dynamic evaluation converts user-controlled text into code unless an explicit trust boundary is maintained.