2017-05-06 17:45:34 -07:00
|
|
|
{
|
|
|
|
"ignored_warnings": [
|
2022-03-22 02:07:11 -07:00
|
|
|
{
|
|
|
|
"warning_type": "Cross-Site Scripting",
|
|
|
|
"warning_code": 2,
|
|
|
|
"fingerprint": "71cf98c8235b5cfa9946b5db8fdc1a2f3a862566abb34e4542be6f3acae78233",
|
|
|
|
"check_name": "CrossSiteScripting",
|
|
|
|
"message": "Unescaped model attribute",
|
|
|
|
"file": "app/views/admin/disputes/appeals/_appeal.html.haml",
|
|
|
|
"line": 7,
|
|
|
|
"link": "https://brakemanscanner.org/docs/warning_types/cross_site_scripting",
|
|
|
|
"code": "t((Unresolved Model).new.strike.action, :scope => \"admin.strikes.actions\", :name => content_tag(:span, (Unresolved Model).new.strike.account.username, :class => \"username\"), :target => content_tag(:span, (Unresolved Model).new.account.username, :class => \"target\"))",
|
|
|
|
"render_path": [
|
|
|
|
{
|
|
|
|
"type": "template",
|
|
|
|
"name": "admin/disputes/appeals/index",
|
|
|
|
"line": 20,
|
|
|
|
"file": "app/views/admin/disputes/appeals/index.html.haml",
|
|
|
|
"rendered": {
|
|
|
|
"name": "admin/disputes/appeals/_appeal",
|
|
|
|
"file": "app/views/admin/disputes/appeals/_appeal.html.haml"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"location": {
|
|
|
|
"type": "template",
|
|
|
|
"template": "admin/disputes/appeals/_appeal"
|
|
|
|
},
|
|
|
|
"user_input": "(Unresolved Model).new.strike",
|
|
|
|
"confidence": "Weak",
|
2023-07-08 02:07:19 -07:00
|
|
|
"cwe_id": [
|
|
|
|
79
|
|
|
|
],
|
2022-03-22 02:07:11 -07:00
|
|
|
"note": ""
|
|
|
|
},
|
2023-07-11 06:23:57 -07:00
|
|
|
{
|
|
|
|
"warning_type": "Denial of Service",
|
|
|
|
"warning_code": 76,
|
|
|
|
"fingerprint": "7b6abba5699755348e7ee82a4694bfbf574b41c7cce2d0db0f7c11ae3f983c72",
|
|
|
|
"check_name": "RegexDoS",
|
|
|
|
"message": "Model attribute used in regular expression",
|
|
|
|
"file": "lib/mastodon/cli/domains.rb",
|
|
|
|
"line": 128,
|
|
|
|
"link": "https://brakemanscanner.org/docs/warning_types/denial_of_service/",
|
|
|
|
"code": "/\\.?(#{DomainBlock.where(:severity => 1).pluck(:domain).map do\n Regexp.escape(domain)\n end.join(\"|\")})$/",
|
|
|
|
"render_path": null,
|
|
|
|
"location": {
|
|
|
|
"type": "method",
|
|
|
|
"class": "Mastodon::CLI::Domains",
|
|
|
|
"method": "crawl"
|
|
|
|
},
|
|
|
|
"user_input": "DomainBlock.where(:severity => 1).pluck(:domain)",
|
|
|
|
"confidence": "Weak",
|
|
|
|
"cwe_id": [
|
|
|
|
20,
|
|
|
|
185
|
|
|
|
],
|
|
|
|
"note": ""
|
|
|
|
},
|
2021-05-11 05:18:33 -07:00
|
|
|
{
|
|
|
|
"warning_type": "Mass Assignment",
|
|
|
|
"warning_code": 105,
|
|
|
|
"fingerprint": "874be88fedf4c680926845e9a588d3197765a6ccbfdd76466b44cc00151c612e",
|
|
|
|
"check_name": "PermitAttributes",
|
|
|
|
"message": "Potentially dangerous key allowed for mass assignment",
|
|
|
|
"file": "app/controllers/api/v1/admin/reports_controller.rb",
|
2023-07-08 02:07:19 -07:00
|
|
|
"line": 88,
|
2021-05-11 05:18:33 -07:00
|
|
|
"link": "https://brakemanscanner.org/docs/warning_types/mass_assignment/",
|
|
|
|
"code": "params.permit(:resolved, :account_id, :target_account_id)",
|
|
|
|
"render_path": null,
|
|
|
|
"location": {
|
|
|
|
"type": "method",
|
|
|
|
"class": "Api::V1::Admin::ReportsController",
|
|
|
|
"method": "filter_params"
|
|
|
|
},
|
|
|
|
"user_input": ":account_id",
|
|
|
|
"confidence": "High",
|
2023-07-08 02:07:19 -07:00
|
|
|
"cwe_id": [
|
|
|
|
915
|
|
|
|
],
|
2021-05-11 05:18:33 -07:00
|
|
|
"note": ""
|
|
|
|
},
|
2022-02-14 12:27:53 -08:00
|
|
|
{
|
2022-03-22 02:07:11 -07:00
|
|
|
"warning_type": "Mass Assignment",
|
|
|
|
"warning_code": 105,
|
|
|
|
"fingerprint": "ab5035dd1a9f8c3a8d92fb2c37e8fe86fede4f87c91b71aa32e89c9eede602fc",
|
|
|
|
"check_name": "PermitAttributes",
|
|
|
|
"message": "Potentially dangerous key allowed for mass assignment",
|
|
|
|
"file": "app/controllers/api/v1/notifications_controller.rb",
|
2023-07-08 02:07:19 -07:00
|
|
|
"line": 77,
|
2022-03-22 02:07:11 -07:00
|
|
|
"link": "https://brakemanscanner.org/docs/warning_types/mass_assignment/",
|
|
|
|
"code": "params.permit(:account_id, :types => ([]), :exclude_types => ([]))",
|
|
|
|
"render_path": null,
|
2022-02-14 12:27:53 -08:00
|
|
|
"location": {
|
2022-03-22 02:07:11 -07:00
|
|
|
"type": "method",
|
|
|
|
"class": "Api::V1::NotificationsController",
|
|
|
|
"method": "browserable_params"
|
2022-02-14 12:27:53 -08:00
|
|
|
},
|
2022-03-22 02:07:11 -07:00
|
|
|
"user_input": ":account_id",
|
|
|
|
"confidence": "High",
|
2023-07-08 02:07:19 -07:00
|
|
|
"cwe_id": [
|
|
|
|
915
|
|
|
|
],
|
2018-02-15 22:22:20 -08:00
|
|
|
"note": ""
|
|
|
|
},
|
2023-07-11 06:23:57 -07:00
|
|
|
{
|
|
|
|
"warning_type": "Mass Assignment",
|
|
|
|
"warning_code": 105,
|
|
|
|
"fingerprint": "b0dd0a26d24f5ede9713fe49210e9638be5f5548af9eee0b5a16fe9dbc80ffcd",
|
|
|
|
"check_name": "PermitAttributes",
|
|
|
|
"message": "Potentially dangerous key allowed for mass assignment",
|
|
|
|
"file": "app/controllers/api/v2/search_controller.rb",
|
|
|
|
"line": 42,
|
|
|
|
"link": "https://brakemanscanner.org/docs/warning_types/mass_assignment/",
|
|
|
|
"code": "params.permit(:type, :offset, :min_id, :max_id, :account_id, :following)",
|
|
|
|
"render_path": null,
|
|
|
|
"location": {
|
|
|
|
"type": "method",
|
|
|
|
"class": "Api::V2::SearchController",
|
|
|
|
"method": "search_params"
|
|
|
|
},
|
|
|
|
"user_input": ":account_id",
|
|
|
|
"confidence": "High",
|
|
|
|
"cwe_id": [
|
|
|
|
915
|
|
|
|
],
|
|
|
|
"note": ""
|
|
|
|
},
|
2021-11-25 04:07:38 -08:00
|
|
|
{
|
|
|
|
"warning_type": "Cross-Site Scripting",
|
|
|
|
"warning_code": 4,
|
|
|
|
"fingerprint": "cd5cfd7f40037fbfa753e494d7129df16e358bfc43ef0da3febafbf4ee1ed3ac",
|
|
|
|
"check_name": "LinkToHref",
|
|
|
|
"message": "Potentially unsafe model attribute in `link_to` href",
|
|
|
|
"file": "app/views/admin/trends/links/_preview_card.html.haml",
|
|
|
|
"line": 7,
|
|
|
|
"link": "https://brakemanscanner.org/docs/warning_types/link_to_href",
|
|
|
|
"code": "link_to((Unresolved Model).new.title, (Unresolved Model).new.url)",
|
|
|
|
"render_path": [
|
|
|
|
{
|
|
|
|
"type": "template",
|
|
|
|
"name": "admin/trends/links/index",
|
2022-03-22 02:07:11 -07:00
|
|
|
"line": 49,
|
2021-11-25 04:07:38 -08:00
|
|
|
"file": "app/views/admin/trends/links/index.html.haml",
|
|
|
|
"rendered": {
|
|
|
|
"name": "admin/trends/links/_preview_card",
|
|
|
|
"file": "app/views/admin/trends/links/_preview_card.html.haml"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"location": {
|
|
|
|
"type": "template",
|
|
|
|
"template": "admin/trends/links/_preview_card"
|
|
|
|
},
|
|
|
|
"user_input": "(Unresolved Model).new.url",
|
|
|
|
"confidence": "Weak",
|
2023-07-08 02:07:19 -07:00
|
|
|
"cwe_id": [
|
|
|
|
79
|
|
|
|
],
|
2017-05-06 17:45:34 -07:00
|
|
|
"note": ""
|
|
|
|
},
|
2018-08-17 18:03:12 -07:00
|
|
|
{
|
|
|
|
"warning_type": "Mass Assignment",
|
|
|
|
"warning_code": 105,
|
2023-07-11 08:08:37 -07:00
|
|
|
"fingerprint": "d0511f0287aea4ed9511f5a744f880cb15af77a8ec88f81b7365b00b642cf427",
|
2018-08-17 18:03:12 -07:00
|
|
|
"check_name": "PermitAttributes",
|
|
|
|
"message": "Potentially dangerous key allowed for mass assignment",
|
|
|
|
"file": "app/controllers/api/v1/reports_controller.rb",
|
2022-03-22 02:07:11 -07:00
|
|
|
"line": 26,
|
2018-08-17 18:03:12 -07:00
|
|
|
"link": "https://brakemanscanner.org/docs/warning_types/mass_assignment/",
|
2023-07-11 08:08:37 -07:00
|
|
|
"code": "params.permit(:account_id, :comment, :category, :forward, :forward_to_domains => ([]), :status_ids => ([]), :rule_ids => ([]))",
|
2018-08-17 18:03:12 -07:00
|
|
|
"render_path": null,
|
|
|
|
"location": {
|
|
|
|
"type": "method",
|
|
|
|
"class": "Api::V1::ReportsController",
|
|
|
|
"method": "report_params"
|
|
|
|
},
|
|
|
|
"user_input": ":account_id",
|
|
|
|
"confidence": "High",
|
2023-07-08 02:07:19 -07:00
|
|
|
"cwe_id": [
|
|
|
|
915
|
|
|
|
],
|
2018-08-17 18:03:12 -07:00
|
|
|
"note": ""
|
2017-05-06 17:45:34 -07:00
|
|
|
}
|
|
|
|
],
|
2023-07-13 06:52:37 -07:00
|
|
|
"updated": "2023-07-12 11:20:51 -0400",
|
2023-07-11 06:23:57 -07:00
|
|
|
"brakeman_version": "6.0.0"
|
2017-05-06 17:45:34 -07:00
|
|
|
}
|