Question 530
An API accepts object identifiers from authenticated users without checking ownership. Which action is MOST defensible given these facts?
Explanation
Correct Answer
Authentication does not grant every object's data. The controlling fact is: An API accepts object identifiers from authenticated users without checking ownership.
Incorrect Answers
Canonicalize and constrain access to approved storage roots would not enforce object-level authorization for every requested record. Authentication does not grant every object's data.
Bind variables rather than interpret them as query syntax. The scenario does not present the alternate condition: an API constructs SQL queries by concatenating user-provided order numbers. The proper immediate action is to enforce object-level authorization for every requested record.
Encode untrusted output for its rendering context would not enforce object-level authorization for every requested record. Authentication does not grant every object's data.






CompTIA SecurityX (CAS-005) Practice Tests