Question 500
The client asks how to verify a fix for this finding: A sample web app changes a user's notification email using a browser cookie and accepts the request without any CSRF defense. What would count as convincing acceptance evidence?
Explanation
Correct Answer
A controlled cross-origin form cannot modify the account settings. The authorized fictional case states: A sample web app changes a user's notification email using a browser cookie and accepts the request without any CSRF defense. The underlying principle is that cross-site request forgery can abuse ambient browser credentials on state-changing actions. This is the strongest acceptance evidence for this specific scenario because it addresses the documented trust boundary and constraints, rather than merely another possible security consideration. This verifies the implementation 'Implement CSRF tokens or equivalent origin controls on state-changing routes.' rather than only a configuration checkbox. The underlying testable mechanism is: A valid session cookie alone does not prove that a request originated from intended user action.
Incorrect Answers
Insecure direct object reference reflects missing object-level authorization. The records needed for this specific case concern: Review request method, CSRF token or origin checks and cookie SameSite policy.
Server-side request forgery crosses network trust boundaries through a server's outbound requests. The current corrective requirement is: Implement CSRF tokens or equivalent origin controls on state-changing routes.
SQL injection arises when attacker-controlled data is treated as query syntax. The appropriate acceptance check is: A controlled cross-origin form cannot modify the account settings.