Skip to content

Commit

Permalink
update brakeman warnings file
Browse files Browse the repository at this point in the history
  • Loading branch information
tsubik committed Mar 30, 2021
1 parent 64082a1 commit 0e88651
Showing 1 changed file with 5 additions and 98 deletions.
103 changes: 5 additions & 98 deletions config/brakeman.ignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,19 +75,19 @@
{
"warning_type": "Dynamic Render Path",
"warning_code": 15,
"fingerprint": "5e3ae134be0d6a1d9d3858e994c4d402759f7d6e87cb2223cfb002425aea0636",
"fingerprint": "5823e1db30c5459848a7064bb3984576a1cfe2bb67d716fd5c80a666f467dd0d",
"check_name": "Render",
"message": "Render path contains parameter value",
"file": "app/views/admin/data_uploads/instruction.html.erb",
"line": 1,
"line": 37,
"link": "https://brakemanscanner.org/docs/warning_types/dynamic_render_path/",
"code": "render(action => \"admin/data_uploads/instruction/#{params[:uploader].downcase}\", {})",
"code": "render(action => \"admin/data_uploads/instruction/#{params[:uploader].underscore}\", {})",
"render_path": null,
"location": {
"type": "template",
"template": "admin/data_uploads/instruction"
},
"user_input": "params[:uploader].downcase",
"user_input": "params[:uploader].underscore",
"confidence": "Medium",
"note": ""
},
Expand Down Expand Up @@ -184,68 +184,6 @@
"confidence": "Weak",
"note": ""
},
{
"warning_type": "Cross-Site Scripting",
"warning_code": 2,
"fingerprint": "7b209ea90975891c1af13c26055afad342db3ce56d8060b99414c86814df8492",
"check_name": "CrossSiteScripting",
"message": "Unescaped parameter value",
"file": "app/views/cclow/geography/litigation_cases/show.html.erb",
"line": 60,
"link": "https://brakemanscanner.org/docs/warning_types/cross_site_scripting",
"code": "@geography.litigations.find(params[:id]).summary",
"render_path": [
{
"type": "controller",
"class": "CCLOW::Geography::LitigationCasesController",
"method": "show",
"line": 29,
"file": "app/controllers/cclow/geography/litigation_cases_controller.rb",
"rendered": {
"name": "cclow/geography/litigation_cases/show",
"file": "app/views/cclow/geography/litigation_cases/show.html.erb"
}
}
],
"location": {
"type": "template",
"template": "cclow/geography/litigation_cases/show"
},
"user_input": "params[:id]",
"confidence": "Weak",
"note": ""
},
{
"warning_type": "Cross-Site Scripting",
"warning_code": 2,
"fingerprint": "80e6c8a65302da007e6bd24c2354396ca64a5b32148bdd29d5a15b5d6ae644ab",
"check_name": "CrossSiteScripting",
"message": "Unescaped model attribute",
"file": "app/views/cclow/geography/legislations/show.html.erb",
"line": 63,
"link": "https://brakemanscanner.org/docs/warning_types/cross_site_scripting",
"code": "CCLOW::LegislationDecorator.new(::Legislation.find(params[:id])).description",
"render_path": [
{
"type": "controller",
"class": "CCLOW::Geography::LegislationsController",
"method": "show",
"line": 36,
"file": "app/controllers/cclow/geography/legislations_controller.rb",
"rendered": {
"name": "cclow/geography/legislations/show",
"file": "app/views/cclow/geography/legislations/show.html.erb"
}
}
],
"location": {
"type": "template",
"template": "cclow/geography/legislations/show"
},
"user_input": "::Legislation.find(params[:id])",
"confidence": "Weak",
"note": ""
},
{
"warning_type": "Cross-Site Scripting",
"warning_code": 2,
Expand Down Expand Up @@ -378,39 +316,8 @@
"user_input": null,
"confidence": "Medium",
"note": ""
},
{
"warning_type": "Cross-Site Scripting",
"warning_code": 2,
"fingerprint": "e9fd3f276e516f2d4ba33985d327a0bc4065ef02149638b5ae39d1feb637c119",
"check_name": "CrossSiteScripting",
"message": "Unescaped model attribute",
"file": "app/views/tpi/pages/show.html.erb",
"line": 12,
"link": "https://brakemanscanner.org/docs/warning_types/cross_site_scripting",
"code": "(Unresolved Model).new.text",
"render_path": [
{
"type": "controller",
"class": "TPI::PagesController",
"method": "show",
"line": 9,
"file": "app/controllers/tpi/pages_controller.rb",
"rendered": {
"name": "tpi/pages/show",
"file": "app/views/tpi/pages/show.html.erb"
}
}
],
"location": {
"type": "template",
"template": "tpi/pages/show"
},
"user_input": null,
"confidence": "High",
"note": ""
}
],
"updated": "2021-03-24 17:41:01 +0100",
"updated": "2021-03-29 17:19:49 +0200",
"brakeman_version": "5.0.0"
}

0 comments on commit 0e88651

Please sign in to comment.