{"action":"closed","issue":{"url":"https://api.github.com/repos/presidentbeef/brakeman/issues/1177","repository_url":"https://api.github.com/repos/presidentbeef/brakeman","labels_url":"https://api.github.com/repos/presidentbeef/brakeman/issues/1177/labels{/name}","comments_url":"https://api.github.com/repos/presidentbeef/brakeman/issues/1177/comments","events_url":"https://api.github.com/repos/presidentbeef/brakeman/issues/1177/events","html_url":"https://github.com/presidentbeef/brakeman/issues/1177","id":316184816,"number":1177,"title":"False positive - Unescaped model attribute","user":{"login":"NARKOZ","id":253398,"avatar_url":"https://avatars2.githubusercontent.com/u/253398?v=4","gravatar_id":"","url":"https://api.github.com/users/NARKOZ","html_url":"https://github.com/NARKOZ","followers_url":"https://api.github.com/users/NARKOZ/followers","following_url":"https://api.github.com/users/NARKOZ/following{/other_user}","gists_url":"https://api.github.com/users/NARKOZ/gists{/gist_id}","starred_url":"https://api.github.com/users/NARKOZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NARKOZ/subscriptions","organizations_url":"https://api.github.com/users/NARKOZ/orgs","repos_url":"https://api.github.com/users/NARKOZ/repos","events_url":"https://api.github.com/users/NARKOZ/events{/privacy}","received_events_url":"https://api.github.com/users/NARKOZ/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-20T08:58:33Z","updated_at":"2018-04-22T11:15:33Z","closed_at":"2018-04-22T11:15:32Z","author_association":"NONE","body":"### Background\r\n\r\nBrakeman version: 4.2.1\r\nRails version: 5.2.0\r\nRuby version: 2.5.1\r\n\r\n#### False Positive\r\n\r\n*Full* warning from Brakeman: \r\n\r\n```\r\nConfidence: Medium\r\nCategory: Cross-Site Scripting\r\nCheck: CrossSiteScripting\r\nMessage: Unescaped model attribute\r\nCode: Page.find_by!(:permalink => params[:permalink]).body\r\nFile: app/views/pages/show.html.slim\r\nLine: 17\r\n```\r\n\r\nRelevant code:\r\n\r\n```ruby\r\n@page = Page.find_by!(permalink: params[:permalink])\r\n```\r\n"}}
{"actor":{"display_login":"NARKOZ"}}