Multiple choice technology security

Cross site scripting vulnerabilities helps an attacker to do what?

  1. Execute OS commands

  2. Steal user sessions

  3. Execute scripts on the webserver

  4. Manipulate the data in the database

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

XSS injects JavaScript that executes in victims' browsers, allowing attackers to access cookies, session tokens, or other sensitive data. Unlike SQL injection or command injection, XSS doesn't directly affect the server or database.