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