Question 510
A microservice accepts serialized session objects and loads them with unrestricted object constructors; crafted inputs invoke unsafe methods before validation. What post-change result would most convincingly validate the intended risk reduction?
Explanation
Correct Answer
Untrusted payloads cannot instantiate out-of-schema executable objects. This checks the risk-changing outcome, rather than showing only that a ticket closed. The decisive mechanism is that safe deserialization requires strict object type boundaries. Compare the observed result to the initial evidence and preserve the test record.
Incorrect Answers
The endpoint returns valid JSON still permits object hooks still run during deserialization. The controlling technical principle here is Safe deserialization requires strict object type boundaries.
The alternative claims: “The user object validates after an unsafe gadget executes during loading”. The actual failure or design condition is Unsafe deserialization enables attacker-controlled object behavior.
The alternative claims: “The service executes object initialization side effects before rejecting malformed fields”. What the present question requires instead is Use constrained typed parsers and reject arbitrary object construction.