{ "ignored_warnings": [ { "warning_type": "Cross-Site Scripting", "warning_code": 2, "fingerprint": "483ae8c038244eb3ed709e89846335e2c8ff6579260348ec31d3d03d1c94ad64", "check_name": "CrossSiteScripting", "message": "Unescaped model attribute", "file": "app/views/users/dossiers/merci.html.haml", "line": 28, "link": "https://brakemanscanner.org/docs/warning_types/cross_site_scripting", "code": "current_user.dossiers.includes(:procedure).find(params[:id]).procedure.monavis_embed", "render_path": [ { "type": "controller", "class": "Users::DossiersController", "method": "merci", "line": 188, "file": "app/controllers/users/dossiers_controller.rb", "rendered": { "name": "users/dossiers/merci", "file": "app/views/users/dossiers/merci.html.haml" } } ], "location": { "type": "template", "template": "users/dossiers/merci" }, "user_input": "current_user.dossiers.includes(:procedure)", "confidence": "Weak", "note": "" }, { "warning_type": "SQL Injection", "warning_code": 0, "fingerprint": "bd1df30f95135357b646e21a03d95498874faffa32e3804fc643e9b6b957ee14", "check_name": "SQL", "message": "Possible SQL injection", "file": "app/models/concerns/dossier_filtering_concern.rb", "line": 18, "link": "https://brakemanscanner.org/docs/warning_types/sql_injection/", "code": "where(\"#{values.count} OR #{\"(#{ProcedurePresentation.sanitized_column(table, column)} ILIKE ?)\"}\", *values.map do\n \"%#{value}%\"\n end)", "render_path": null, "location": { "type": "method", "class": "DossierFilteringConcern", "method": null }, "user_input": "values.count", "confidence": "Medium", "note": "The table and column are escaped, which should make this safe" }, { "warning_type": "Redirect", "warning_code": 18, "fingerprint": "c46b5c9cd6474ffae789f39a2280ba6b5a5a74d3ffa8a38cf8a409f9a027ed0e", "check_name": "Redirect", "message": "Possible unprotected redirect", "file": "app/controllers/instructeurs/procedures_controller.rb", "line": 180, "link": "https://brakemanscanner.org/docs/warning_types/redirect/", "code": "redirect_to(Export.find_or_create_export(params[:export_format], (params[:time_span_type] or \"everything\"), current_instructeur.groupe_instructeurs.where(:procedure => procedure)).file.service_url)", "render_path": null, "location": { "type": "method", "class": "Instructeurs::ProceduresController", "method": "download_export" }, "user_input": "Export.find_or_create_export(params[:export_format], (params[:time_span_type] or \"everything\"), current_instructeur.groupe_instructeurs.where(:procedure => procedure)).file.service_url", "confidence": "High", "note": "" } ], "updated": "2021-09-02 16:12:11 -0500", "brakeman_version": "5.1.1" }