mirror of
https://github.com/github/codeql.git
synced 2026-05-02 12:15:17 +02:00
Ruby: Make CSRF query more sensitive
Generate an alert for every controller class that doesn't have or inherity a `protect_from_forgery` setting.
This commit is contained in:
@@ -1 +1,2 @@
|
||||
| railsapp/app/controllers/alternative_root_controller.rb:1:1:3:3 | AlternativeRootController | Potential CSRF vulnerability due to forgery protection not being enabled |
|
||||
| railsapp/app/controllers/alternative_root_controller.rb:1:1:3:3 | AlternativeRootController | Potential CSRF vulnerability due to forgery protection not being enabled. |
|
||||
| railsapp/app/controllers/tags_controller.rb:1:1:2:3 | TagsController | Potential CSRF vulnerability due to forgery protection not being enabled. |
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
class SubscriptionsController < AlternativeRootController
|
||||
protect_from_forgery with: :exception
|
||||
end
|
||||
@@ -0,0 +1,2 @@
|
||||
class TagsController < AlternativeRootController
|
||||
end
|
||||
Reference in New Issue
Block a user