-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Aleksandar Petrushev
authored and
Aleksandar Petrushev
committed
Jan 11, 2022
1 parent
222a085
commit 8166695
Showing
7 changed files
with
137 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
{ | ||
"ignored_warnings": [ | ||
{ | ||
"warning_type": "Mass Assignment", | ||
"warning_code": 70, | ||
"fingerprint": "2096b83195b858fd16fa7b7139bc84400d108b5f85a8c64ae91da708b5fe21f9", | ||
"check_name": "MassAssignment", | ||
"message": "Specify exact keys allowed for mass assignment instead of using `permit!` which allows any keys", | ||
"file": "app/controllers/spree/admin/resource_controller.rb", | ||
"line": 268, | ||
"link": "https://brakemanscanner.org/docs/warning_types/mass_assignment/", | ||
"code": "params.require(resource.object_name).permit!", | ||
"render_path": null, | ||
"location": { | ||
"type": "method", | ||
"class": "Spree::Admin::ResourceController", | ||
"method": "permitted_resource_params" | ||
}, | ||
"user_input": null, | ||
"confidence": "Medium", | ||
"note": "" | ||
}, | ||
{ | ||
"warning_type": "Mass Assignment", | ||
"warning_code": 70, | ||
"fingerprint": "934f23be465f0d2c5f7278aac4f085771ba22d5e8b56645813a2364313df9561", | ||
"check_name": "MassAssignment", | ||
"message": "Specify exact keys allowed for mass assignment instead of using `permit!` which allows any keys", | ||
"file": "app/helpers/spree/admin/navigation_helper.rb", | ||
"line": 116, | ||
"link": "https://brakemanscanner.org/docs/warning_types/mass_assignment/", | ||
"code": "params.permit!", | ||
"render_path": null, | ||
"location": { | ||
"type": "method", | ||
"class": "Spree::Admin::NavigationHelper", | ||
"method": "per_page_dropdown_params" | ||
}, | ||
"user_input": null, | ||
"confidence": "Medium", | ||
"note": "" | ||
}, | ||
{ | ||
"warning_type": "Mass Assignment", | ||
"warning_code": 70, | ||
"fingerprint": "d45f35a46d0896dcd87099cbae9ce1c77b79ac3c935c0a6317e1a2462186e486", | ||
"check_name": "MassAssignment", | ||
"message": "Specify exact keys allowed for mass assignment instead of using `permit!` which allows any keys", | ||
"file": "app/controllers/spree/admin/prices_controller.rb", | ||
"line": 7, | ||
"link": "https://brakemanscanner.org/docs/warning_types/mass_assignment/", | ||
"code": "params.require(:vp).permit!", | ||
"render_path": null, | ||
"location": { | ||
"type": "method", | ||
"class": "Spree::Admin::PricesController", | ||
"method": "create" | ||
}, | ||
"user_input": null, | ||
"confidence": "Medium", | ||
"note": "" | ||
}, | ||
{ | ||
"warning_type": "Remote Code Execution", | ||
"warning_code": 24, | ||
"fingerprint": "f46c38504b6d7300a6152298cbcd4f65afde1f0b5fd1c642d79908d56ff1aa8c", | ||
"check_name": "UnsafeReflection", | ||
"message": "Unsafe reflection method `constantize` called with parameter value", | ||
"file": "app/controllers/spree/admin/promotion_actions_controller.rb", | ||
"line": 7, | ||
"link": "https://brakemanscanner.org/docs/warning_types/remote_code_execution/", | ||
"code": "params[:action_type].constantize", | ||
"render_path": null, | ||
"location": { | ||
"type": "method", | ||
"class": "Spree::Admin::PromotionActionsController", | ||
"method": "create" | ||
}, | ||
"user_input": "params[:action_type]", | ||
"confidence": "High", | ||
"note": "" | ||
}, | ||
{ | ||
"warning_type": "Mass Assignment", | ||
"warning_code": 70, | ||
"fingerprint": "f5df7c2ded2d794ea955c7ac98e0b5868e4787e56bec481b5e794742f7800308", | ||
"check_name": "MassAssignment", | ||
"message": "Specify exact keys allowed for mass assignment instead of using `permit!` which allows any keys", | ||
"file": "app/controllers/spree/admin/payment_methods_controller.rb", | ||
"line": 91, | ||
"link": "https://brakemanscanner.org/docs/warning_types/mass_assignment/", | ||
"code": "params.require(ActiveModel::Naming.param_key(@payment_method)).permit!", | ||
"render_path": null, | ||
"location": { | ||
"type": "method", | ||
"class": "Spree::Admin::PaymentMethodsController", | ||
"method": "preferences_params" | ||
}, | ||
"user_input": null, | ||
"confidence": "Medium", | ||
"note": "" | ||
} | ||
] | ||
} |