mirror of
https://github.com/github/codeql.git
synced 2026-04-23 07:45:17 +02:00
Ruby: recognise csrf_meta_tag
csrf_meta_tag is an alias for csrf_meta_tags, retained for backwards compatibility.
This commit is contained in:
@@ -44,6 +44,6 @@ where
|
||||
(
|
||||
railsPreVersion3()
|
||||
or
|
||||
not any(MethodCall m).getMethodName() = "csrf_meta_tags"
|
||||
not any(MethodCall m).getMethodName() = ["csrf_meta_tags", "csrf_meta_tag"]
|
||||
)
|
||||
select c, "Potential CSRF vulnerability due to forgery protection not being enabled."
|
||||
|
||||
Reference in New Issue
Block a user