CompTIA Security+ (SY0-501) — Question 97

Which of the following is the main difference between an XSS vulnerability and a CSRF vulnerability?

Answer options

Correct answer: B, C

Explanation

The correct answer B indicates that XSS attacks can occur without the victim being authenticated, while C states that CSRF attacks require the victim to be authenticated. Options A and E are incorrect because they misrepresent the requirements for an attacker in both types of vulnerabilities. Option D is also not correct as it contradicts the authentication requirement for CSRF.