{"action":"opened","number":527,"pull_request":{"url":"https://api.github.com/repos/amark/gun/pulls/527","id":180710245,"html_url":"https://github.com/amark/gun/pull/527","diff_url":"https://github.com/amark/gun/pull/527.diff","patch_url":"https://github.com/amark/gun/pull/527.patch","issue_url":"https://api.github.com/repos/amark/gun/issues/527","number":527,"state":"open","locked":false,"title":"Fix serve.js module, prevent access to files in parent directories.","user":{"login":"JK0N","id":15660021,"avatar_url":"https://avatars3.githubusercontent.com/u/15660021?v=4","gravatar_id":"","url":"https://api.github.com/users/JK0N","html_url":"https://github.com/JK0N","followers_url":"https://api.github.com/users/JK0N/followers","following_url":"https://api.github.com/users/JK0N/following{/other_user}","gists_url":"https://api.github.com/users/JK0N/gists{/gist_id}","starred_url":"https://api.github.com/users/JK0N/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JK0N/subscriptions","organizations_url":"https://api.github.com/users/JK0N/orgs","repos_url":"https://api.github.com/users/JK0N/repos","events_url":"https://api.github.com/users/JK0N/events{/privacy}","received_events_url":"https://api.github.com/users/JK0N/received_events","type":"User","site_admin":false},"body":"…t's a bad idea to have your code serve your source code but if it needs to be done, this will prevent the most obvious leaks (curl -v --path-as-is 'http://localhost:8080/gun/../../.env')","created_at":"2018-04-10T19:54:12Z","updated_at":"2018-04-10T19:54:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/amark/gun/pulls/527/commits","review_comments_url":"https://api.github.com/repos/amark/gun/pulls/527/comments","review_comment_url":"https://api.github.com/repos/amark/gun/pulls/comments{/number}","comments_url":"https://api.github.com/repos/amark/gun/issues/527/comments","statuses_url":"https://api.github.com/repos/amark/gun/statuses/960031ca4f072c6c74f3bfdd1de31dad0b53bc93","head":{"label":"JK0N:master","ref":"master","sha":"960031ca4f072c6c74f3bfdd1de31dad0b53bc93","user":{"login":"JK0N","id":15660021,"avatar_url":"https://avatars3.githubusercontent.com/u/15660021?v=4","gravatar_id":"","url":"https://api.github.com/users/JK0N","html_url":"https://github.com/JK0N","followers_url":"https://api.github.com/users/JK0N/followers","following_url":"https://api.github.com/users/JK0N/following{/other_user}","gists_url":"https://api.github.com/users/JK0N/gists{/gist_id}","starred_url":"https://api.github.com/users/JK0N/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JK0N/subscriptions","organizations_url":"https://api.github.com/users/JK0N/orgs","repos_url":"https://api.github.com/users/JK0N/repos","events_url":"https://api.github.com/users/JK0N/events{/privacy}","received_events_url":"https://api.github.com/users/JK0N/received_events","type":"User","site_admin":false},"repo":{"id":128920266,"name":"gun","full_name":"JK0N/gun","owner":{"login":"JK0N","id":15660021,"avatar_url":"https://avatars3.githubusercontent.com/u/15660021?v=4","gravatar_id":"","url":"https://api.github.com/users/JK0N","html_url":"https://github.com/JK0N","followers_url":"https://api.github.com/users/JK0N/followers","following_url":"https://api.github.com/users/JK0N/following{/other_user}","gists_url":"https://api.github.com/users/JK0N/gists{/gist_id}","starred_url":"https://api.github.com/users/JK0N/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JK0N/subscriptions","organizations_url":"https://api.github.com/users/JK0N/orgs","repos_url":"https://api.github.com/users/JK0N/repos","events_url":"https://api.github.com/users/JK0N/events{/privacy}","received_events_url":"https://api.github.com/users/JK0N/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JK0N/gun","description":"A realtime, decentralized, offline-first, graph database engine.","fork":true,"url":"https://api.github.com/repos/JK0N/gun","forks_url":"https://api.github.com/repos/JK0N/gun/forks","keys_url":"https://api.github.com/repos/JK0N/gun/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JK0N/gun/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JK0N/gun/teams","hooks_url":"https://api.github.com/repos/JK0N/gun/hooks","issue_events_url":"https://api.github.com/repos/JK0N/gun/issues/events{/number}","events_url":"https://api.github.com/repos/JK0N/gun/events","assignees_url":"https://api.github.com/repos/JK0N/gun/assignees{/user}","branches_url":"https://api.github.com/repos/JK0N/gun/branches{/branch}","tags_url":"https://api.github.com/repos/JK0N/gun/tags","blobs_url":"https://api.github.com/repos/JK0N/gun/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JK0N/gun/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JK0N/gun/git/refs{/sha}","trees_url":"https://api.github.com/repos/JK0N/gun/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JK0N/gun/statuses/{sha}","languages_url":"https://api.github.com/repos/JK0N/gun/languages","stargazers_url":"https://api.github.com/repos/JK0N/gun/stargazers","contributors_url":"https://api.github.com/repos/JK0N/gun/contributors","subscribers_url":"https://api.github.com/repos/JK0N/gun/subscribers","subscription_url":"https://api.github.com/repos/JK0N/gun/subscription","commits_url":"https://api.github.com/repos/JK0N/gun/commits{/sha}","git_commits_url":"https://api.github.com/repos/JK0N/gun/git/commits{/sha}","comments_url":"https://api.github.com/repos/JK0N/gun/comments{/number}","issue_comment_url":"https://api.github.com/repos/JK0N/gun/issues/comments{/number}","contents_url":"https://api.github.com/repos/JK0N/gun/contents/{+path}","compare_url":"https://api.github.com/repos/JK0N/gun/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JK0N/gun/merges","archive_url":"https://api.github.com/repos/JK0N/gun/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JK0N/gun/downloads","issues_url":"https://api.github.com/repos/JK0N/gun/issues{/number}","pulls_url":"https://api.github.com/repos/JK0N/gun/pulls{/number}","milestones_url":"https://api.github.com/repos/JK0N/gun/milestones{/number}","notifications_url":"https://api.github.com/repos/JK0N/gun/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JK0N/gun/labels{/name}","releases_url":"https://api.github.com/repos/JK0N/gun/releases{/id}","deployments_url":"https://api.github.com/repos/JK0N/gun/deployments","created_at":"2018-04-10T11:13:20Z","updated_at":"2018-04-10T16:07:58Z","pushed_at":"2018-04-10T16:07:56Z","git_url":"git://github.com/JK0N/gun.git","ssh_url":"git@github.com:JK0N/gun.git","clone_url":"https://github.com/JK0N/gun.git","svn_url":"https://github.com/JK0N/gun","homepage":"http://gun.js.org/","size":29357,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"amark:master","ref":"master","sha":"9f0fbaf2eb9b0cc119932762b05413752cfb9d71","user":{"login":"amark","id":433412,"avatar_url":"https://avatars1.githubusercontent.com/u/433412?v=4","gravatar_id":"","url":"https://api.github.com/users/amark","html_url":"https://github.com/amark","followers_url":"https://api.github.com/users/amark/followers","following_url":"https://api.github.com/users/amark/following{/other_user}","gists_url":"https://api.github.com/users/amark/gists{/gist_id}","starred_url":"https://api.github.com/users/amark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amark/subscriptions","organizations_url":"https://api.github.com/users/amark/orgs","repos_url":"https://api.github.com/users/amark/repos","events_url":"https://api.github.com/users/amark/events{/privacy}","received_events_url":"https://api.github.com/users/amark/received_events","type":"User","site_admin":false},"repo":{"id":22475123,"name":"gun","full_name":"amark/gun","owner":{"login":"amark","id":433412,"avatar_url":"https://avatars1.githubusercontent.com/u/433412?v=4","gravatar_id":"","url":"https://api.github.com/users/amark","html_url":"https://github.com/amark","followers_url":"https://api.github.com/users/amark/followers","following_url":"https://api.github.com/users/amark/following{/other_user}","gists_url":"https://api.github.com/users/amark/gists{/gist_id}","starred_url":"https://api.github.com/users/amark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amark/subscriptions","organizations_url":"https://api.github.com/users/amark/orgs","repos_url":"https://api.github.com/users/amark/repos","events_url":"https://api.github.com/users/amark/events{/privacy}","received_events_url":"https://api.github.com/users/amark/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/amark/gun","description":"A realtime, decentralized, offline-first, graph database engine.","fork":false,"url":"https://api.github.com/repos/amark/gun","forks_url":"https://api.github.com/repos/amark/gun/forks","keys_url":"https://api.github.com/repos/amark/gun/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amark/gun/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amark/gun/teams","hooks_url":"https://api.github.com/repos/amark/gun/hooks","issue_events_url":"https://api.github.com/repos/amark/gun/issues/events{/number}","events_url":"https://api.github.com/repos/amark/gun/events","assignees_url":"https://api.github.com/repos/amark/gun/assignees{/user}","branches_url":"https://api.github.com/repos/amark/gun/branches{/branch}","tags_url":"https://api.github.com/repos/amark/gun/tags","blobs_url":"https://api.github.com/repos/amark/gun/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amark/gun/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amark/gun/git/refs{/sha}","trees_url":"https://api.github.com/repos/amark/gun/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amark/gun/statuses/{sha}","languages_url":"https://api.github.com/repos/amark/gun/languages","stargazers_url":"https://api.github.com/repos/amark/gun/stargazers","contributors_url":"https://api.github.com/repos/amark/gun/contributors","subscribers_url":"https://api.github.com/repos/amark/gun/subscribers","subscription_url":"https://api.github.com/repos/amark/gun/subscription","commits_url":"https://api.github.com/repos/amark/gun/commits{/sha}","git_commits_url":"https://api.github.com/repos/amark/gun/git/commits{/sha}","comments_url":"https://api.github.com/repos/amark/gun/comments{/number}","issue_comment_url":"https://api.github.com/repos/amark/gun/issues/comments{/number}","contents_url":"https://api.github.com/repos/amark/gun/contents/{+path}","compare_url":"https://api.github.com/repos/amark/gun/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amark/gun/merges","archive_url":"https://api.github.com/repos/amark/gun/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amark/gun/downloads","issues_url":"https://api.github.com/repos/amark/gun/issues{/number}","pulls_url":"https://api.github.com/repos/amark/gun/pulls{/number}","milestones_url":"https://api.github.com/repos/amark/gun/milestones{/number}","notifications_url":"https://api.github.com/repos/amark/gun/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amark/gun/labels{/name}","releases_url":"https://api.github.com/repos/amark/gun/releases{/id}","deployments_url":"https://api.github.com/repos/amark/gun/deployments","created_at":"2014-07-31T15:52:10Z","updated_at":"2018-04-10T18:56:59Z","pushed_at":"2018-04-10T07:20:00Z","git_url":"git://github.com/amark/gun.git","ssh_url":"git@github.com:amark/gun.git","clone_url":"https://github.com/amark/gun.git","svn_url":"https://github.com/amark/gun","homepage":"http://gun.js.org/","size":29355,"stargazers_count":7879,"watchers_count":7879,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":436,"mirror_url":null,"archived":false,"open_issues_count":57,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":436,"open_issues":57,"watchers":7879,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/amark/gun/pulls/527"},"html":{"href":"https://github.com/amark/gun/pull/527"},"issue":{"href":"https://api.github.com/repos/amark/gun/issues/527"},"comments":{"href":"https://api.github.com/repos/amark/gun/issues/527/comments"},"review_comments":{"href":"https://api.github.com/repos/amark/gun/pulls/527/comments"},"review_comment":{"href":"https://api.github.com/repos/amark/gun/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/amark/gun/pulls/527/commits"},"statuses":{"href":"https://api.github.com/repos/amark/gun/statuses/960031ca4f072c6c74f3bfdd1de31dad0b53bc93"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":15,"deletions":4,"changed_files":1}}
{"actor":{"display_login":"JK0N"}}