2017-05-07 09:45:34 +09:00
|
|
|
{
|
|
|
|
"ignored_warnings": [
|
2021-11-25 21:07:38 +09: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 18:07:11 +09:00
|
|
|
"line": 49,
|
2021-11-25 21:07:38 +09: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 18:07:19 +09:00
|
|
|
"cwe_id": [
|
|
|
|
79
|
|
|
|
],
|
2017-05-07 09:45:34 +09:00
|
|
|
"note": ""
|
|
|
|
}
|
|
|
|
],
|
2023-07-13 22:52:37 +09:00
|
|
|
"updated": "2023-07-12 11:20:51 -0400",
|
2023-07-11 22:23:57 +09:00
|
|
|
"brakeman_version": "6.0.0"
|
2017-05-07 09:45:34 +09:00
|
|
|
}
|