Multiple choice technology security

Whats the use of adding the CSRF Token to the urls?

  1. Prevent Cross Site Scripting

  2. Prevent Cross Site Request Forgery

  3. Prevent Cross Site Tracing

  4. None of the above

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

CSRF tokens prevent Cross Site Request Forgery by ensuring that requests come from the legitimate application, not from a malicious site. The token is a secret value that attackers cannot include in their forged requests. Options A (XSS) and C (XST) are different vulnerability types.