|
| 1 | +{ |
| 2 | + "ignored_warnings": [ |
| 3 | + { |
| 4 | + "warning_type": "Cross-Site Request Forgery", |
| 5 | + "warning_code": 7, |
| 6 | + "fingerprint": "1cb8570b8c91f38317cdf909e01e7016359846174f427e86011633c344d30fc3", |
| 7 | + "check_name": "ForgerySetting", |
| 8 | + "message": "`protect_from_forgery` should be called in `Plutonium::Reactor::ResourceController`", |
| 9 | + "file": "lib/plutonium/reactor/resource_controller.rb", |
| 10 | + "line": 10, |
| 11 | + "link": "https://brakemanscanner.org/docs/warning_types/cross-site_request_forgery/", |
| 12 | + "code": null, |
| 13 | + "render_path": null, |
| 14 | + "location": { |
| 15 | + "type": "controller", |
| 16 | + "controller": "Plutonium::Reactor::ResourceController" |
| 17 | + }, |
| 18 | + "user_input": null, |
| 19 | + "confidence": "High", |
| 20 | + "cwe_id": [ |
| 21 | + 352 |
| 22 | + ], |
| 23 | + "note": "this is tested and confirmed to be a false flag" |
| 24 | + }, |
| 25 | + { |
| 26 | + "warning_type": "Mass Assignment", |
| 27 | + "warning_code": 70, |
| 28 | + "fingerprint": "873ee0d868e06a32e8ff387a38ddb8c6183a419813d5c20122fa9c3a887f4e54", |
| 29 | + "check_name": "MassAssignment", |
| 30 | + "message": "Specify exact keys allowed for mass assignment instead of using `permit!` which allows any keys", |
| 31 | + "file": "lib/plutonium/reactor/resource_controller.rb", |
| 32 | + "line": 58, |
| 33 | + "link": "https://brakemanscanner.org/docs/warning_types/mass_assignment/", |
| 34 | + "code": "params.require(resource_param_key).permit!", |
| 35 | + "render_path": null, |
| 36 | + "location": { |
| 37 | + "type": "method", |
| 38 | + "class": "Plutonium::Reactor::ResourceController", |
| 39 | + "method": "resource_params" |
| 40 | + }, |
| 41 | + "user_input": null, |
| 42 | + "confidence": "Medium", |
| 43 | + "cwe_id": [ |
| 44 | + 915 |
| 45 | + ], |
| 46 | + "note": "we manually filter params" |
| 47 | + } |
| 48 | + ], |
| 49 | + "updated": "2024-02-18 00:37:39 +0000", |
| 50 | + "brakeman_version": "6.1.2" |
| 51 | +} |
0 commit comments