mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
python: require local protection to be absent
for CSRF to be likely
This commit is contained in:
@@ -15,5 +15,7 @@ import python
|
||||
import semmle.python.Concepts
|
||||
|
||||
from CSRFProtectionSetting s
|
||||
where s.getVerificationSetting() = false
|
||||
where
|
||||
s.getVerificationSetting() = false and
|
||||
not exists(CSRFProtection p)
|
||||
select s, "Potential CSRF vulnerability due to forgery protection being disabled or weakened."
|
||||
|
||||
Reference in New Issue
Block a user