mirror of
https://github.com/github/codeql.git
synced 2026-04-19 14:04:09 +02:00
python: CSRF -> Csrf
This commit is contained in:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user