← All tasks
🧮
Intermediate

Write CSRF Token Generation and Verification

⏱ 3 min ⭐ 90 XP 🔁 3 attempts allowed

What you'll do

Write the PHP expressions to generate a CSRF token on form render and verify it on form submission.

Scenario

A password-change form has no CSRF protection and is vulnerable to forged cross-site requests.

Ready to try it?

Create a free account and subscribe to take "Write CSRF Token Generation and Verification". Earn 90 XP and track your internship progress.

Already have an account? Sign in