{"action":"opened","number":36,"pull_request":{"url":"https://api.github.com/repos/playframework/playframework.com/pulls/36","id":41171089,"html_url":"https://github.com/playframework/playframework.com/pull/36","diff_url":"https://github.com/playframework/playframework.com/pull/36.diff","patch_url":"https://github.com/playframework/playframework.com/pull/36.patch","issue_url":"https://api.github.com/repos/playframework/playframework.com/issues/36","number":36,"state":"open","locked":false,"title":"Fix open redirect vulnerability in trailing slash removal","user":{"login":"balagez","id":862067,"avatar_url":"https://avatars.githubusercontent.com/u/862067?v=3","gravatar_id":"","url":"https://api.github.com/users/balagez","html_url":"https://github.com/balagez","followers_url":"https://api.github.com/users/balagez/followers","following_url":"https://api.github.com/users/balagez/following{/other_user}","gists_url":"https://api.github.com/users/balagez/gists{/gist_id}","starred_url":"https://api.github.com/users/balagez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balagez/subscriptions","organizations_url":"https://api.github.com/users/balagez/orgs","repos_url":"https://api.github.com/users/balagez/repos","events_url":"https://api.github.com/users/balagez/events{/privacy}","received_events_url":"https://api.github.com/users/balagez/received_events","type":"User","site_admin":false},"body":"I found that the Play Framework website allows redirecting to any URL through the trailing slash removal code. This is not a serious security issue because currently there's no members section on the website where the user could enter credentials and generally the audience is well-educated, still it allows phishing attacks by an attacker website appearing trustworthy since the domain name in the link sent to the target user is the trusted playframework.com. That's why it's probably better to fix than to leave it open.\r\n\r\n**Proof of concept:**\r\n* [https://playframework.com////evilzone.org/](https://playframework.com////evilzone.org/)\r\n* [https://playframework.com////evilzone.org/hacking-and-security/](https://playframework.com////evilzone.org/hacking-and-security/)\r\n* [https://playframework.com////p1ayframework.com/](https://playframework.com////p1ayframework.com/)","created_at":"2015-07-29T20:57:03Z","updated_at":"2015-07-29T20:57:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/playframework/playframework.com/pulls/36/commits","review_comments_url":"https://api.github.com/repos/playframework/playframework.com/pulls/36/comments","review_comment_url":"https://api.github.com/repos/playframework/playframework.com/pulls/comments{/number}","comments_url":"https://api.github.com/repos/playframework/playframework.com/issues/36/comments","statuses_url":"https://api.github.com/repos/playframework/playframework.com/statuses/b55f360a2236c4ceba0f6235c1087ebcc626db05","head":{"label":"balagez:master","ref":"master","sha":"b55f360a2236c4ceba0f6235c1087ebcc626db05","user":{"login":"balagez","id":862067,"avatar_url":"https://avatars.githubusercontent.com/u/862067?v=3","gravatar_id":"","url":"https://api.github.com/users/balagez","html_url":"https://github.com/balagez","followers_url":"https://api.github.com/users/balagez/followers","following_url":"https://api.github.com/users/balagez/following{/other_user}","gists_url":"https://api.github.com/users/balagez/gists{/gist_id}","starred_url":"https://api.github.com/users/balagez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balagez/subscriptions","organizations_url":"https://api.github.com/users/balagez/orgs","repos_url":"https://api.github.com/users/balagez/repos","events_url":"https://api.github.com/users/balagez/events{/privacy}","received_events_url":"https://api.github.com/users/balagez/received_events","type":"User","site_admin":false},"repo":{"id":39914955,"name":"playframework.com","full_name":"balagez/playframework.com","owner":{"login":"balagez","id":862067,"avatar_url":"https://avatars.githubusercontent.com/u/862067?v=3","gravatar_id":"","url":"https://api.github.com/users/balagez","html_url":"https://github.com/balagez","followers_url":"https://api.github.com/users/balagez/followers","following_url":"https://api.github.com/users/balagez/following{/other_user}","gists_url":"https://api.github.com/users/balagez/gists{/gist_id}","starred_url":"https://api.github.com/users/balagez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balagez/subscriptions","organizations_url":"https://api.github.com/users/balagez/orgs","repos_url":"https://api.github.com/users/balagez/repos","events_url":"https://api.github.com/users/balagez/events{/privacy}","received_events_url":"https://api.github.com/users/balagez/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/balagez/playframework.com","description":"The Play Framework website","fork":true,"url":"https://api.github.com/repos/balagez/playframework.com","forks_url":"https://api.github.com/repos/balagez/playframework.com/forks","keys_url":"https://api.github.com/repos/balagez/playframework.com/keys{/key_id}","collaborators_url":"https://api.github.com/repos/balagez/playframework.com/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/balagez/playframework.com/teams","hooks_url":"https://api.github.com/repos/balagez/playframework.com/hooks","issue_events_url":"https://api.github.com/repos/balagez/playframework.com/issues/events{/number}","events_url":"https://api.github.com/repos/balagez/playframework.com/events","assignees_url":"https://api.github.com/repos/balagez/playframework.com/assignees{/user}","branches_url":"https://api.github.com/repos/balagez/playframework.com/branches{/branch}","tags_url":"https://api.github.com/repos/balagez/playframework.com/tags","blobs_url":"https://api.github.com/repos/balagez/playframework.com/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/balagez/playframework.com/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/balagez/playframework.com/git/refs{/sha}","trees_url":"https://api.github.com/repos/balagez/playframework.com/git/trees{/sha}","statuses_url":"https://api.github.com/repos/balagez/playframework.com/statuses/{sha}","languages_url":"https://api.github.com/repos/balagez/playframework.com/languages","stargazers_url":"https://api.github.com/repos/balagez/playframework.com/stargazers","contributors_url":"https://api.github.com/repos/balagez/playframework.com/contributors","subscribers_url":"https://api.github.com/repos/balagez/playframework.com/subscribers","subscription_url":"https://api.github.com/repos/balagez/playframework.com/subscription","commits_url":"https://api.github.com/repos/balagez/playframework.com/commits{/sha}","git_commits_url":"https://api.github.com/repos/balagez/playframework.com/git/commits{/sha}","comments_url":"https://api.github.com/repos/balagez/playframework.com/comments{/number}","issue_comment_url":"https://api.github.com/repos/balagez/playframework.com/issues/comments{/number}","contents_url":"https://api.github.com/repos/balagez/playframework.com/contents/{+path}","compare_url":"https://api.github.com/repos/balagez/playframework.com/compare/{base}...{head}","merges_url":"https://api.github.com/repos/balagez/playframework.com/merges","archive_url":"https://api.github.com/repos/balagez/playframework.com/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/balagez/playframework.com/downloads","issues_url":"https://api.github.com/repos/balagez/playframework.com/issues{/number}","pulls_url":"https://api.github.com/repos/balagez/playframework.com/pulls{/number}","milestones_url":"https://api.github.com/repos/balagez/playframework.com/milestones{/number}","notifications_url":"https://api.github.com/repos/balagez/playframework.com/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/balagez/playframework.com/labels{/name}","releases_url":"https://api.github.com/repos/balagez/playframework.com/releases{/id}","created_at":"2015-07-29T20:35:26Z","updated_at":"2015-07-29T20:35:27Z","pushed_at":"2015-07-29T20:38:42Z","git_url":"git://github.com/balagez/playframework.com.git","ssh_url":"git@github.com:balagez/playframework.com.git","clone_url":"https://github.com/balagez/playframework.com.git","svn_url":"https://github.com/balagez/playframework.com","homepage":null,"size":2362,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"playframework:master","ref":"master","sha":"c2b17f7085d111155d19af3c2efe1fb6c5a4b9ae","user":{"login":"playframework","id":319107,"avatar_url":"https://avatars.githubusercontent.com/u/319107?v=3","gravatar_id":"","url":"https://api.github.com/users/playframework","html_url":"https://github.com/playframework","followers_url":"https://api.github.com/users/playframework/followers","following_url":"https://api.github.com/users/playframework/following{/other_user}","gists_url":"https://api.github.com/users/playframework/gists{/gist_id}","starred_url":"https://api.github.com/users/playframework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/playframework/subscriptions","organizations_url":"https://api.github.com/users/playframework/orgs","repos_url":"https://api.github.com/users/playframework/repos","events_url":"https://api.github.com/users/playframework/events{/privacy}","received_events_url":"https://api.github.com/users/playframework/received_events","type":"Organization","site_admin":false},"repo":{"id":24174632,"name":"playframework.com","full_name":"playframework/playframework.com","owner":{"login":"playframework","id":319107,"avatar_url":"https://avatars.githubusercontent.com/u/319107?v=3","gravatar_id":"","url":"https://api.github.com/users/playframework","html_url":"https://github.com/playframework","followers_url":"https://api.github.com/users/playframework/followers","following_url":"https://api.github.com/users/playframework/following{/other_user}","gists_url":"https://api.github.com/users/playframework/gists{/gist_id}","starred_url":"https://api.github.com/users/playframework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/playframework/subscriptions","organizations_url":"https://api.github.com/users/playframework/orgs","repos_url":"https://api.github.com/users/playframework/repos","events_url":"https://api.github.com/users/playframework/events{/privacy}","received_events_url":"https://api.github.com/users/playframework/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/playframework/playframework.com","description":"The Play Framework website","fork":false,"url":"https://api.github.com/repos/playframework/playframework.com","forks_url":"https://api.github.com/repos/playframework/playframework.com/forks","keys_url":"https://api.github.com/repos/playframework/playframework.com/keys{/key_id}","collaborators_url":"https://api.github.com/repos/playframework/playframework.com/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/playframework/playframework.com/teams","hooks_url":"https://api.github.com/repos/playframework/playframework.com/hooks","issue_events_url":"https://api.github.com/repos/playframework/playframework.com/issues/events{/number}","events_url":"https://api.github.com/repos/playframework/playframework.com/events","assignees_url":"https://api.github.com/repos/playframework/playframework.com/assignees{/user}","branches_url":"https://api.github.com/repos/playframework/playframework.com/branches{/branch}","tags_url":"https://api.github.com/repos/playframework/playframework.com/tags","blobs_url":"https://api.github.com/repos/playframework/playframework.com/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/playframework/playframework.com/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/playframework/playframework.com/git/refs{/sha}","trees_url":"https://api.github.com/repos/playframework/playframework.com/git/trees{/sha}","statuses_url":"https://api.github.com/repos/playframework/playframework.com/statuses/{sha}","languages_url":"https://api.github.com/repos/playframework/playframework.com/languages","stargazers_url":"https://api.github.com/repos/playframework/playframework.com/stargazers","contributors_url":"https://api.github.com/repos/playframework/playframework.com/contributors","subscribers_url":"https://api.github.com/repos/playframework/playframework.com/subscribers","subscription_url":"https://api.github.com/repos/playframework/playframework.com/subscription","commits_url":"https://api.github.com/repos/playframework/playframework.com/commits{/sha}","git_commits_url":"https://api.github.com/repos/playframework/playframework.com/git/commits{/sha}","comments_url":"https://api.github.com/repos/playframework/playframework.com/comments{/number}","issue_comment_url":"https://api.github.com/repos/playframework/playframework.com/issues/comments{/number}","contents_url":"https://api.github.com/repos/playframework/playframework.com/contents/{+path}","compare_url":"https://api.github.com/repos/playframework/playframework.com/compare/{base}...{head}","merges_url":"https://api.github.com/repos/playframework/playframework.com/merges","archive_url":"https://api.github.com/repos/playframework/playframework.com/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/playframework/playframework.com/downloads","issues_url":"https://api.github.com/repos/playframework/playframework.com/issues{/number}","pulls_url":"https://api.github.com/repos/playframework/playframework.com/pulls{/number}","milestones_url":"https://api.github.com/repos/playframework/playframework.com/milestones{/number}","notifications_url":"https://api.github.com/repos/playframework/playframework.com/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/playframework/playframework.com/labels{/name}","releases_url":"https://api.github.com/repos/playframework/playframework.com/releases{/id}","created_at":"2014-09-18T05:05:12Z","updated_at":"2015-07-29T08:53:09Z","pushed_at":"2015-07-28T00:05:06Z","git_url":"git://github.com/playframework/playframework.com.git","ssh_url":"git@github.com:playframework/playframework.com.git","clone_url":"https://github.com/playframework/playframework.com.git","svn_url":"https://github.com/playframework/playframework.com","homepage":null,"size":2362,"stargazers_count":16,"watchers_count":16,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":7,"forks":23,"open_issues":7,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/playframework/playframework.com/pulls/36"},"html":{"href":"https://github.com/playframework/playframework.com/pull/36"},"issue":{"href":"https://api.github.com/repos/playframework/playframework.com/issues/36"},"comments":{"href":"https://api.github.com/repos/playframework/playframework.com/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/playframework/playframework.com/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/playframework/playframework.com/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/playframework/playframework.com/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/playframework/playframework.com/statuses/b55f360a2236c4ceba0f6235c1087ebcc626db05"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}