Fix a CSRF token check
Not solvedThe API has double-submit CSRF protection, but the check lets requests without a token through. Close the gaps.
- Level
- Foundational
- Estimated time
- ~20 min
- Points
- 0/80 pts
- Questions
- 0/0 answered
- OWASP
- A01:2025
- CWE
- CWE-352
csrf.js
Test results
Run the tests to check your code. It runs on the server in an isolated sandbox with no network access.