{"action":"opened","number":627,"pull_request":{"url":"https://api.github.com/repos/plone/mockup/pulls/627","id":58849758,"html_url":"https://github.com/plone/mockup/pull/627","diff_url":"https://github.com/plone/mockup/pull/627.diff","patch_url":"https://github.com/plone/mockup/pull/627.patch","issue_url":"https://api.github.com/repos/plone/mockup/issues/627","number":627,"state":"open","locked":false,"title":"Structure selectionwell xss fix","user":{"login":"metatoaster","id":372914,"avatar_url":"https://avatars.githubusercontent.com/u/372914?v=3","gravatar_id":"","url":"https://api.github.com/users/metatoaster","html_url":"https://github.com/metatoaster","followers_url":"https://api.github.com/users/metatoaster/followers","following_url":"https://api.github.com/users/metatoaster/following{/other_user}","gists_url":"https://api.github.com/users/metatoaster/gists{/gist_id}","starred_url":"https://api.github.com/users/metatoaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metatoaster/subscriptions","organizations_url":"https://api.github.com/users/metatoaster/orgs","repos_url":"https://api.github.com/users/metatoaster/repos","events_url":"https://api.github.com/users/metatoaster/events{/privacy}","received_events_url":"https://api.github.com/users/metatoaster/received_events","type":"User","site_admin":false},"body":"The Title attribute for a given object could be used as an XSS attack vector. If the attacker can create new object or modify the title an existing object within a Plone instance, then convince her victim (or anyone with access) to use the folder_contents view and select the affected item, this would then populate the raw title text into the selection well without being sanitized, triggering the XSS attack.\r\n\r\nThe UID field is also vulnerable, but irrelevant as an attack vector for a typical Plone instance.\r\n\r\nThis pull request contains the test that demonstrates this problem, and then the fix to address this.\r\n\r\nThe status text set during copy/cut/paste is also vulnerable, however the i18n translation seems to sidestep this issue within the Plone instance context. That said, this pull request also correct this issue.","created_at":"2016-02-10T05:38:35Z","updated_at":"2016-02-10T05:38:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/plone/mockup/pulls/627/commits","review_comments_url":"https://api.github.com/repos/plone/mockup/pulls/627/comments","review_comment_url":"https://api.github.com/repos/plone/mockup/pulls/comments{/number}","comments_url":"https://api.github.com/repos/plone/mockup/issues/627/comments","statuses_url":"https://api.github.com/repos/plone/mockup/statuses/285bdf91a73cf55dab45a82a1bfc02aa0f332e98","head":{"label":"plone:structure-selectionwell-xss-fix","ref":"structure-selectionwell-xss-fix","sha":"285bdf91a73cf55dab45a82a1bfc02aa0f332e98","user":{"login":"plone","id":72034,"avatar_url":"https://avatars.githubusercontent.com/u/72034?v=3","gravatar_id":"","url":"https://api.github.com/users/plone","html_url":"https://github.com/plone","followers_url":"https://api.github.com/users/plone/followers","following_url":"https://api.github.com/users/plone/following{/other_user}","gists_url":"https://api.github.com/users/plone/gists{/gist_id}","starred_url":"https://api.github.com/users/plone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plone/subscriptions","organizations_url":"https://api.github.com/users/plone/orgs","repos_url":"https://api.github.com/users/plone/repos","events_url":"https://api.github.com/users/plone/events{/privacy}","received_events_url":"https://api.github.com/users/plone/received_events","type":"Organization","site_admin":false},"repo":{"id":6982635,"name":"mockup","full_name":"plone/mockup","owner":{"login":"plone","id":72034,"avatar_url":"https://avatars.githubusercontent.com/u/72034?v=3","gravatar_id":"","url":"https://api.github.com/users/plone","html_url":"https://github.com/plone","followers_url":"https://api.github.com/users/plone/followers","following_url":"https://api.github.com/users/plone/following{/other_user}","gists_url":"https://api.github.com/users/plone/gists{/gist_id}","starred_url":"https://api.github.com/users/plone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plone/subscriptions","organizations_url":"https://api.github.com/users/plone/orgs","repos_url":"https://api.github.com/users/plone/repos","events_url":"https://api.github.com/users/plone/events{/privacy}","received_events_url":"https://api.github.com/users/plone/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/plone/mockup","description":"A collection of client side patterns for faster and easier web development","fork":false,"url":"https://api.github.com/repos/plone/mockup","forks_url":"https://api.github.com/repos/plone/mockup/forks","keys_url":"https://api.github.com/repos/plone/mockup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/plone/mockup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/plone/mockup/teams","hooks_url":"https://api.github.com/repos/plone/mockup/hooks","issue_events_url":"https://api.github.com/repos/plone/mockup/issues/events{/number}","events_url":"https://api.github.com/repos/plone/mockup/events","assignees_url":"https://api.github.com/repos/plone/mockup/assignees{/user}","branches_url":"https://api.github.com/repos/plone/mockup/branches{/branch}","tags_url":"https://api.github.com/repos/plone/mockup/tags","blobs_url":"https://api.github.com/repos/plone/mockup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/plone/mockup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/plone/mockup/git/refs{/sha}","trees_url":"https://api.github.com/repos/plone/mockup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/plone/mockup/statuses/{sha}","languages_url":"https://api.github.com/repos/plone/mockup/languages","stargazers_url":"https://api.github.com/repos/plone/mockup/stargazers","contributors_url":"https://api.github.com/repos/plone/mockup/contributors","subscribers_url":"https://api.github.com/repos/plone/mockup/subscribers","subscription_url":"https://api.github.com/repos/plone/mockup/subscription","commits_url":"https://api.github.com/repos/plone/mockup/commits{/sha}","git_commits_url":"https://api.github.com/repos/plone/mockup/git/commits{/sha}","comments_url":"https://api.github.com/repos/plone/mockup/comments{/number}","issue_comment_url":"https://api.github.com/repos/plone/mockup/issues/comments{/number}","contents_url":"https://api.github.com/repos/plone/mockup/contents/{+path}","compare_url":"https://api.github.com/repos/plone/mockup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/plone/mockup/merges","archive_url":"https://api.github.com/repos/plone/mockup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/plone/mockup/downloads","issues_url":"https://api.github.com/repos/plone/mockup/issues{/number}","pulls_url":"https://api.github.com/repos/plone/mockup/pulls{/number}","milestones_url":"https://api.github.com/repos/plone/mockup/milestones{/number}","notifications_url":"https://api.github.com/repos/plone/mockup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/plone/mockup/labels{/name}","releases_url":"https://api.github.com/repos/plone/mockup/releases{/id}","deployments_url":"https://api.github.com/repos/plone/mockup/deployments","created_at":"2012-12-03T13:25:05Z","updated_at":"2016-01-31T01:43:56Z","pushed_at":"2016-02-10T05:25:45Z","git_url":"git://github.com/plone/mockup.git","ssh_url":"git@github.com:plone/mockup.git","clone_url":"https://github.com/plone/mockup.git","svn_url":"https://github.com/plone/mockup","homepage":"http://plone.github.io/mockup/dev/","size":46411,"stargazers_count":31,"watchers_count":31,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":53,"mirror_url":null,"open_issues_count":40,"forks":53,"open_issues":40,"watchers":31,"default_branch":"master"}},"base":{"label":"plone:master","ref":"master","sha":"80d253ad9c3d38e322d11dd1d4a60c26f328d87f","user":{"login":"plone","id":72034,"avatar_url":"https://avatars.githubusercontent.com/u/72034?v=3","gravatar_id":"","url":"https://api.github.com/users/plone","html_url":"https://github.com/plone","followers_url":"https://api.github.com/users/plone/followers","following_url":"https://api.github.com/users/plone/following{/other_user}","gists_url":"https://api.github.com/users/plone/gists{/gist_id}","starred_url":"https://api.github.com/users/plone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plone/subscriptions","organizations_url":"https://api.github.com/users/plone/orgs","repos_url":"https://api.github.com/users/plone/repos","events_url":"https://api.github.com/users/plone/events{/privacy}","received_events_url":"https://api.github.com/users/plone/received_events","type":"Organization","site_admin":false},"repo":{"id":6982635,"name":"mockup","full_name":"plone/mockup","owner":{"login":"plone","id":72034,"avatar_url":"https://avatars.githubusercontent.com/u/72034?v=3","gravatar_id":"","url":"https://api.github.com/users/plone","html_url":"https://github.com/plone","followers_url":"https://api.github.com/users/plone/followers","following_url":"https://api.github.com/users/plone/following{/other_user}","gists_url":"https://api.github.com/users/plone/gists{/gist_id}","starred_url":"https://api.github.com/users/plone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plone/subscriptions","organizations_url":"https://api.github.com/users/plone/orgs","repos_url":"https://api.github.com/users/plone/repos","events_url":"https://api.github.com/users/plone/events{/privacy}","received_events_url":"https://api.github.com/users/plone/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/plone/mockup","description":"A collection of client side patterns for faster and easier web development","fork":false,"url":"https://api.github.com/repos/plone/mockup","forks_url":"https://api.github.com/repos/plone/mockup/forks","keys_url":"https://api.github.com/repos/plone/mockup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/plone/mockup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/plone/mockup/teams","hooks_url":"https://api.github.com/repos/plone/mockup/hooks","issue_events_url":"https://api.github.com/repos/plone/mockup/issues/events{/number}","events_url":"https://api.github.com/repos/plone/mockup/events","assignees_url":"https://api.github.com/repos/plone/mockup/assignees{/user}","branches_url":"https://api.github.com/repos/plone/mockup/branches{/branch}","tags_url":"https://api.github.com/repos/plone/mockup/tags","blobs_url":"https://api.github.com/repos/plone/mockup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/plone/mockup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/plone/mockup/git/refs{/sha}","trees_url":"https://api.github.com/repos/plone/mockup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/plone/mockup/statuses/{sha}","languages_url":"https://api.github.com/repos/plone/mockup/languages","stargazers_url":"https://api.github.com/repos/plone/mockup/stargazers","contributors_url":"https://api.github.com/repos/plone/mockup/contributors","subscribers_url":"https://api.github.com/repos/plone/mockup/subscribers","subscription_url":"https://api.github.com/repos/plone/mockup/subscription","commits_url":"https://api.github.com/repos/plone/mockup/commits{/sha}","git_commits_url":"https://api.github.com/repos/plone/mockup/git/commits{/sha}","comments_url":"https://api.github.com/repos/plone/mockup/comments{/number}","issue_comment_url":"https://api.github.com/repos/plone/mockup/issues/comments{/number}","contents_url":"https://api.github.com/repos/plone/mockup/contents/{+path}","compare_url":"https://api.github.com/repos/plone/mockup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/plone/mockup/merges","archive_url":"https://api.github.com/repos/plone/mockup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/plone/mockup/downloads","issues_url":"https://api.github.com/repos/plone/mockup/issues{/number}","pulls_url":"https://api.github.com/repos/plone/mockup/pulls{/number}","milestones_url":"https://api.github.com/repos/plone/mockup/milestones{/number}","notifications_url":"https://api.github.com/repos/plone/mockup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/plone/mockup/labels{/name}","releases_url":"https://api.github.com/repos/plone/mockup/releases{/id}","deployments_url":"https://api.github.com/repos/plone/mockup/deployments","created_at":"2012-12-03T13:25:05Z","updated_at":"2016-01-31T01:43:56Z","pushed_at":"2016-02-10T05:25:45Z","git_url":"git://github.com/plone/mockup.git","ssh_url":"git@github.com:plone/mockup.git","clone_url":"https://github.com/plone/mockup.git","svn_url":"https://github.com/plone/mockup","homepage":"http://plone.github.io/mockup/dev/","size":46411,"stargazers_count":31,"watchers_count":31,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":53,"mirror_url":null,"open_issues_count":40,"forks":53,"open_issues":40,"watchers":31,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/plone/mockup/pulls/627"},"html":{"href":"https://github.com/plone/mockup/pull/627"},"issue":{"href":"https://api.github.com/repos/plone/mockup/issues/627"},"comments":{"href":"https://api.github.com/repos/plone/mockup/issues/627/comments"},"review_comments":{"href":"https://api.github.com/repos/plone/mockup/pulls/627/comments"},"review_comment":{"href":"https://api.github.com/repos/plone/mockup/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/plone/mockup/pulls/627/commits"},"statuses":{"href":"https://api.github.com/repos/plone/mockup/statuses/285bdf91a73cf55dab45a82a1bfc02aa0f332e98"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":57,"deletions":8,"changed_files":5}}