refactor(rules): group focused security rules
This commit is contained in:
1 parent
646e552ff1
commit
0bdd5f46b3
10 files changed
+9
-11
No files matched your search
@@ -0,0 +1,7 @@
|
||||
# Web and frontend security
|
||||
|
||||
* Escape or sanitize untrusted content; never inject untrusted HTML or bypass framework sanitization.
|
||||
* Protect state-changing browser requests from CSRF where applicable.
|
||||
* Use `HttpOnly`, `Secure`, and appropriate `SameSite` cookie settings for sensitive sessions.
|
||||
* Validate redirect targets, avoid sensitive data in URLs, and use CSP and clickjacking protections where applicable.
|
||||
* Treat frontend code and browser storage as visible and never rely on client-side checks for authorization.
|
||||
Reference in new issue
Block a user