Q1. Which attack exploits user trust in a website to execute unintended actions using the user's authenticated session?
- A.SQL Injection
- B.Cross-Site Scripting (XSS)
- C.Cross-Site Request Forgery (CSRF)✓ Correct
- D.Man-in-the-Middle
Explanation
CSRF tricks an authenticated user's browser into sending a request the user did not intend (e.g., transfer money while logged into a bank site). XSS runs attacker code in the user's browser. SQLi attacks the database via crafted input. MITM intercepts traffic in transit. The defining CSRF trait is 'uses the existing session without the user's knowledge'.