A security review lists three findings: reflected XSS in a status page, CSRF on an admin POST, and SQLi in a search endpoint. Which pairing correctly matches each threat to its primary mitigation?
Select an answer to reveal the explanation.
Short Explanation
Right tool, right job: encode what you print (XSS), token what you change (CSRF), bind what you query (SQLi). Swapping those fixes leaves each hole open.
Full Explanation
OWASP-style mitigations are not interchangeable. Output encoding addresses XSS; anti-CSRF tokens address forged state-changing requests; parameterized queries address SQL injection. Assigning encoding to SQLi or tokens to XSS fails the pairing the exam expects.