New Page
Introduction - Prevent CSRF, XSS and XSF attacks
Useful links :
-
XSS attacks What is cross-site scripting (XSS) and how to prevent it? | Web Security Academy
-
CSRF attacks What is CSRF (Cross-site request forgery)? Tutorial & Examples | Web Security Academy
-
XSF attacks Framing Attacks and Cross-frame scripting explained
-
CSP basics Content Security Policy (CSP) - HTTP | MDN
-
X Frame options header X-Frame-Options - HTTP | MDN
-
CSRF token Cross-Site Request Forgery Prevention - OWASP Cheat Sheet Series
-
XSS, CSRF and CSP vulnerabilities (lab root-me) Challenges/Web - Client [Root Me : Hacking and Information Security learning platform]
-
samesite cookie attribute Set-Cookie - HTTP | MDN
TL;DR : Use the security built-in your framework, and do not use custom injection of code. Enable the different securities integrated in your framework, such as CSRF token.
Deny all iframe, or scope it to trusted domains if needed