You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

102 lines
4.9 KiB

  1. {
  2. "ignored_warnings": [
  3. {
  4. "warning_type": "Dynamic Render Path",
  5. "warning_code": 15,
  6. "fingerprint": "9f31d941f3910dba2e9bfcd81aef4513249bd24c02d0f98e13ad44fdeeccd0e8",
  7. "check_name": "Render",
  8. "message": "Render path contains parameter value",
  9. "file": "app/views/admin/accounts/index.html.haml",
  10. "line": 32,
  11. "link": "http://brakemanscanner.org/docs/warning_types/dynamic_render_path/",
  12. "code": "render(action => filtered_accounts.page(params[:page]), {})",
  13. "render_path": [{"type":"controller","class":"Admin::AccountsController","method":"index","line":7,"file":"app/controllers/admin/accounts_controller.rb"}],
  14. "location": {
  15. "type": "template",
  16. "template": "admin/accounts/index"
  17. },
  18. "user_input": "params[:page]",
  19. "confidence": "Weak",
  20. "note": ""
  21. },
  22. {
  23. "warning_type": "Redirect",
  24. "warning_code": 18,
  25. "fingerprint": "bb7e94e60af41decb811bb32171f1b27e9bf3f4d01e9e511127362e22510eb11",
  26. "check_name": "Redirect",
  27. "message": "Possible unprotected redirect",
  28. "file": "app/controllers/remote_follow_controller.rb",
  29. "line": 18,
  30. "link": "http://brakemanscanner.org/docs/warning_types/redirect/",
  31. "code": "redirect_to(RemoteFollow.new(resource_params).subscribe_address_for(Account.find_local!(params[:account_username])))",
  32. "render_path": null,
  33. "location": {
  34. "type": "method",
  35. "class": "RemoteFollowController",
  36. "method": "create"
  37. },
  38. "user_input": "RemoteFollow.new(resource_params).subscribe_address_for(Account.find_local!(params[:account_username]))",
  39. "confidence": "High",
  40. "note": ""
  41. },
  42. {
  43. "warning_type": "Dynamic Render Path",
  44. "warning_code": 15,
  45. "fingerprint": "c417f9d44ab05dd9cf3d5ec9df2324a5036774c151181787b32c4c940623191b",
  46. "check_name": "Render",
  47. "message": "Render path contains parameter value",
  48. "file": "app/views/stream_entries/embed.html.haml",
  49. "line": 2,
  50. "link": "http://brakemanscanner.org/docs/warning_types/dynamic_render_path/",
  51. "code": "render(action => Account.find_local!(params[:account_username]).stream_entries.where(:activity_type => \"Status\").find(params[:id]).activity_type.downcase, { Account.find_local!(params[:account_username]).stream_entries.where(:activity_type => \"Status\").find(params[:id]).activity_type.downcase.to_sym => Account.find_local!(params[:account_username]).stream_entries.where(:activity_type => \"Status\").find(params[:id]).activity, :centered => true })",
  52. "render_path": [{"type":"controller","class":"StreamEntriesController","method":"embed","line":32,"file":"app/controllers/stream_entries_controller.rb"}],
  53. "location": {
  54. "type": "template",
  55. "template": "stream_entries/embed"
  56. },
  57. "user_input": "params[:id]",
  58. "confidence": "Weak",
  59. "note": ""
  60. },
  61. {
  62. "warning_type": "Dynamic Render Path",
  63. "warning_code": 15,
  64. "fingerprint": "c5d6945d63264af106d49367228d206aa2f176699ecdce2b98fac101bc6a96cf",
  65. "check_name": "Render",
  66. "message": "Render path contains parameter value",
  67. "file": "app/views/admin/reports/index.html.haml",
  68. "line": 24,
  69. "link": "http://brakemanscanner.org/docs/warning_types/dynamic_render_path/",
  70. "code": "render(action => filtered_reports.page(params[:page]), {})",
  71. "render_path": [{"type":"controller","class":"Admin::ReportsController","method":"index","line":9,"file":"app/controllers/admin/reports_controller.rb"}],
  72. "location": {
  73. "type": "template",
  74. "template": "admin/reports/index"
  75. },
  76. "user_input": "params[:page]",
  77. "confidence": "Weak",
  78. "note": ""
  79. },
  80. {
  81. "warning_type": "Dynamic Render Path",
  82. "warning_code": 15,
  83. "fingerprint": "fbd0fc59adb5c6d44b60e02debb31d3af11719f534c9881e21435bbff87404d6",
  84. "check_name": "Render",
  85. "message": "Render path contains parameter value",
  86. "file": "app/views/stream_entries/show.html.haml",
  87. "line": 19,
  88. "link": "http://brakemanscanner.org/docs/warning_types/dynamic_render_path/",
  89. "code": "render(partial => \"stream_entries/#{Account.find_local!(params[:account_username]).statuses.find(params[:id]).stream_entry.activity_type.downcase}\", { :locals => ({ Account.find_local!(params[:account_username]).statuses.find(params[:id]).stream_entry.activity_type.downcase.to_sym => Account.find_local!(params[:account_username]).statuses.find(params[:id]).stream_entry.activity, :include_threads => true }) })",
  90. "render_path": [{"type":"controller","class":"StatusesController","method":"show","line":15,"file":"app/controllers/statuses_controller.rb"}],
  91. "location": {
  92. "type": "template",
  93. "template": "stream_entries/show"
  94. },
  95. "user_input": "params[:id]",
  96. "confidence": "Weak",
  97. "note": ""
  98. }
  99. ],
  100. "updated": "2017-05-07 08:26:06 +0900",
  101. "brakeman_version": "3.6.1"
  102. }