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 including a secret, unpredictable token in state-changing requests. Attackers cannot forge valid requests without knowing this token. CSRF is distinct from XSS (script injection) and XST (HTTP TRACE method abuse).