Question 530
At Timberline Foods, the supply-chain assurance team is conducting a coordinated processing-plant assessment under requirements for food safety and secure logistics. The team now needs objective retest evidence for: A customer portal fetches an order by numeric identifier but fails to check whether the current user owns that order. Which result BEST demonstrates successful remediation?
Explanation
Correct Answer
A user cannot retrieve or modify another customer's order by substituting the identifier. The observable result demonstrates that the documented condition, A customer portal fetches an order by numeric identifier but fails to check whether the current user owns that order. has been addressed. The planned remediation is: Apply object-level authorization checks on every read and mutation endpoint. This is a stronger validation than a saved ticket or unverified claim by Timberline Foods.
Incorrect Answers
An ordinary user's attempted role change is ignored or rejected and administrative role updates remain auditable. That observation would verify another scenario: A public API accepts a client-provided role value and writes it to a user profile without server-side field restrictions. The corrective step for that other scenario is: Use explicit allowlists for writable fields and maintain role assignment through privileged backend workflows. But Timberline Foods is evaluating: A customer portal fetches an order by numeric identifier but fails to check whether the current user owns that order. The necessary outcome is: A user cannot retrieve or modify another customer's order by substituting the identifier.
Altering the hidden field cannot approve an invoice and authorized approvers continue working. That observation would verify another scenario: A web application uses a hidden HTML form field to decide whether a requester may approve an invoice. The corrective step for that other scenario is: Enforce the authorization decision on the server using the caller's identity and object rights. But Timberline Foods is evaluating: A customer portal fetches an order by numeric identifier but fails to check whether the current user owns that order. The necessary outcome is: A user cannot retrieve or modify another customer's order by substituting the identifier.
A harmless test string containing HTML metacharacters renders as text instead of creating executable markup. That observation would verify another scenario: A browser application reflects user-submitted comments into HTML without context-appropriate output encoding. The corrective step for that other scenario is: Encode untrusted content for the output context and use reviewed templates and browser controls. But Timberline Foods is evaluating: A customer portal fetches an order by numeric identifier but fails to check whether the current user owns that order. The necessary outcome is: A user cannot retrieve or modify another customer's order by substituting the identifier.