Terminology Index

Glossary

1801 terms

Open concept maps

Showing 257-288 of 1801 terms

C
32

CSRF Token

A secret, unpredictable value a web app embeds in forms and requires on state-changing requests, so it can verify the request came from its own page and not a forged cross-site one. It is the primary defense against CSRF.

Because an attacker can make a victim's browser send a request but cannot read the page contents, including a per-session or per-request secret token in legitimate forms lets the server distinguish genuine requests from forged ones, the attacker cannot supply the right token. Properly implemented anti-CSRF tokens, often combined with the SameSite cookie attribute, reliably defeat cross-site request forgery.

Introduced in: Defensive Web Fundamentals

Examples

  • Embedding a hidden token in a form and rejecting submissions without the correct one.
  • Generating a fresh token per session that an attacker cannot guess.
  • Combining tokens with SameSite cookies for layered CSRF defense.

No related terms linked yet.