Cross-Site Request Forgery (CSRF) is a type of cyber-attack where a web application executes a sensitive action without verifying that the request came from within the application. This can allow an attacker to deceive a legitimate user into performing a dangerous action within the application, such as by clicking on a malicious hyperlink in a spam email or visiting a site controlled by the attacker.
To prevent CSRF attacks, web developers should include and validate anti-CSRF tokens in the code of web applications that handle sensitive functions, like user management or business logic. While many frameworks include anti-CSRF tokens by default, it is essential to ensure they are present in all application code dealing with potentially risky functionality.
This Defending TypeScript Skill Lab offers a virtual environment containing a vulnerable application, allowing developers to practice identifying and addressing Cross-Site Request Forgery (CSRF) vulnerabilities. Learners will gain hands-on experience testing for CSRF vulnerabilities and implementing appropriate mitigations, such as using anti-CSRF tokens when handling requests that perform sensitive or dangerous functionality.
The materials within this course focus on the NICE Framework Task, Knowledge, and Skill statements identified within the indicated NICE Framework component(s):
If you would like to provide feedback on this course, please e-mail the NICCS team at NICCS@mail.cisa.dhs.gov. Please keep in mind that NICCS does not own this course or accept payment for course entry. If you have questions related to the details of this course, such as cost, prerequisites, how to register, etc., please contact the course training provider directly. You can find course training provider contact information by following the link that says “Visit course page for more information...” on this page.