A B C D E F G H I J K L M N O P Q R S T U V W Z
Ca Ce Ch Cl Co Cr Cs Cy
Csp Csr

CSRF Token

A CSRF token is a unique value included in a request so the server can verify that the request came from the legitimate application flow. It matters because forged browser requests are much harder to execute when the attacker cannot provide a valid request-specific token.

What is CSRF Token?

Applications issue CSRF tokens and require them on sensitive state-changing actions. Because a malicious external site usually cannot read the genuine token value, the server can reject requests that lack the expected proof.

What CSRF Token Commonly Supports

Common uses include form submission protection, account-setting changes, administrative actions, and transaction confirmation flows in browser-based apps.

CSRF Token vs. Cookie-Only Session Validation

Cookie-only validation trusts the browser session by itself. CSRF tokens add request-level proof that the action came through a legitimate application path.

Frequently Asked Questions

Why are CSRF tokens useful?

Because they make it much harder for an attacker to cause a victim browser to submit a valid state-changing request blindly.

Do APIs always need CSRF tokens?

Not always. It depends on how authentication is carried, but browser cookie-based flows often do.

Related Cybersecurity Terms