python: CSRF -> Csrf

This commit is contained in:
Rasmus Lerchedahl Petersen
2022-03-23 11:29:27 +01:00
parent 53de8287f5
commit 441e206cfa
3 changed files with 25 additions and 25 deletions

View File

@@ -14,10 +14,10 @@
import python
import semmle.python.Concepts
from CSRFProtectionSetting s
from CsrfProtectionSetting s
where
s.getVerificationSetting() = false and
not exists(CSRFProtection p) and
not exists(CsrfLocalProtection p) and
// rule out test code as this is a common place to turn off CSRF protection
not s.getLocation().getFile().getAbsolutePath().matches("%test%")
select s, "Potential CSRF vulnerability due to forgery protection being disabled or weakened."