🎫
Security

CSRF tokens: form security

22.02.2025
← All articles

CSRF — performing action on site as a logged-in user.

Mechanism

Logged into bank.uz → visit hacker.com → form silently submits POST to bank.uz.

CSRF token

Hidden input with random string. Server verifies.

SameSite cookies

Set-Cookie: SameSite=Strict.

Custom header

X-CSRF-Token for AJAX.

Related articles

🌐 The danger of misconfigured CORS: how to open your API correctly 🔍 Scanning a Website with ClamAV: Setup, Commands and Reading the Results 🦠 Malware on Your PC Steals FTP Passwords: Signs and Protection ✅ Django Security Checklist: What to Verify Before Going to Production
🌐 Language
🇺🇿 O⁠'zbek 🇺🇿 Özbek (yangi) 🇺🇿 Ўзбек 🇷🇺 Русский 🇬🇧 English ✓