{"action":"opened","number":63,"pull_request":{"url":"https://api.github.com/repos/mitsuhiko/pipsi/pulls/63","id":52336994,"html_url":"https://github.com/mitsuhiko/pipsi/pull/63","diff_url":"https://github.com/mitsuhiko/pipsi/pull/63.diff","patch_url":"https://github.com/mitsuhiko/pipsi/pull/63.patch","issue_url":"https://api.github.com/repos/mitsuhiko/pipsi/issues/63","number":63,"state":"open","locked":false,"title":"defend against truncation attacks","user":{"login":"glyph","id":716529,"avatar_url":"https://avatars.githubusercontent.com/u/716529?v=3","gravatar_id":"","url":"https://api.github.com/users/glyph","html_url":"https://github.com/glyph","followers_url":"https://api.github.com/users/glyph/followers","following_url":"https://api.github.com/users/glyph/following{/other_user}","gists_url":"https://api.github.com/users/glyph/gists{/gist_id}","starred_url":"https://api.github.com/users/glyph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glyph/subscriptions","organizations_url":"https://api.github.com/users/glyph/orgs","repos_url":"https://api.github.com/users/glyph/repos","events_url":"https://api.github.com/users/glyph/events{/privacy}","received_events_url":"https://api.github.com/users/glyph/received_events","type":"User","site_admin":false},"body":"Consider the example of this snippet:\r\n\r\n```\r\nrm -fr /tmp/foo\r\n```\r\n\r\nIf someone can introduce an EOF right after the first slash, this changes the meaning of the shell script considerably.  There are similar (although harder to construct) examples for Python.  So, don't ever pipe stuff directly from `curl` without fully downloading it first.","created_at":"2015-12-02T00:22:51Z","updated_at":"2015-12-02T00:22:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mitsuhiko/pipsi/pulls/63/commits","review_comments_url":"https://api.github.com/repos/mitsuhiko/pipsi/pulls/63/comments","review_comment_url":"https://api.github.com/repos/mitsuhiko/pipsi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mitsuhiko/pipsi/issues/63/comments","statuses_url":"https://api.github.com/repos/mitsuhiko/pipsi/statuses/12df73498491fb681ca9da952fd17938f50475c5","head":{"label":"glyph:patch-1","ref":"patch-1","sha":"12df73498491fb681ca9da952fd17938f50475c5","user":{"login":"glyph","id":716529,"avatar_url":"https://avatars.githubusercontent.com/u/716529?v=3","gravatar_id":"","url":"https://api.github.com/users/glyph","html_url":"https://github.com/glyph","followers_url":"https://api.github.com/users/glyph/followers","following_url":"https://api.github.com/users/glyph/following{/other_user}","gists_url":"https://api.github.com/users/glyph/gists{/gist_id}","starred_url":"https://api.github.com/users/glyph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glyph/subscriptions","organizations_url":"https://api.github.com/users/glyph/orgs","repos_url":"https://api.github.com/users/glyph/repos","events_url":"https://api.github.com/users/glyph/events{/privacy}","received_events_url":"https://api.github.com/users/glyph/received_events","type":"User","site_admin":false},"repo":{"id":47225871,"name":"pipsi","full_name":"glyph/pipsi","owner":{"login":"glyph","id":716529,"avatar_url":"https://avatars.githubusercontent.com/u/716529?v=3","gravatar_id":"","url":"https://api.github.com/users/glyph","html_url":"https://github.com/glyph","followers_url":"https://api.github.com/users/glyph/followers","following_url":"https://api.github.com/users/glyph/following{/other_user}","gists_url":"https://api.github.com/users/glyph/gists{/gist_id}","starred_url":"https://api.github.com/users/glyph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glyph/subscriptions","organizations_url":"https://api.github.com/users/glyph/orgs","repos_url":"https://api.github.com/users/glyph/repos","events_url":"https://api.github.com/users/glyph/events{/privacy}","received_events_url":"https://api.github.com/users/glyph/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/glyph/pipsi","description":"pip script installer","fork":true,"url":"https://api.github.com/repos/glyph/pipsi","forks_url":"https://api.github.com/repos/glyph/pipsi/forks","keys_url":"https://api.github.com/repos/glyph/pipsi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/glyph/pipsi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/glyph/pipsi/teams","hooks_url":"https://api.github.com/repos/glyph/pipsi/hooks","issue_events_url":"https://api.github.com/repos/glyph/pipsi/issues/events{/number}","events_url":"https://api.github.com/repos/glyph/pipsi/events","assignees_url":"https://api.github.com/repos/glyph/pipsi/assignees{/user}","branches_url":"https://api.github.com/repos/glyph/pipsi/branches{/branch}","tags_url":"https://api.github.com/repos/glyph/pipsi/tags","blobs_url":"https://api.github.com/repos/glyph/pipsi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/glyph/pipsi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/glyph/pipsi/git/refs{/sha}","trees_url":"https://api.github.com/repos/glyph/pipsi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/glyph/pipsi/statuses/{sha}","languages_url":"https://api.github.com/repos/glyph/pipsi/languages","stargazers_url":"https://api.github.com/repos/glyph/pipsi/stargazers","contributors_url":"https://api.github.com/repos/glyph/pipsi/contributors","subscribers_url":"https://api.github.com/repos/glyph/pipsi/subscribers","subscription_url":"https://api.github.com/repos/glyph/pipsi/subscription","commits_url":"https://api.github.com/repos/glyph/pipsi/commits{/sha}","git_commits_url":"https://api.github.com/repos/glyph/pipsi/git/commits{/sha}","comments_url":"https://api.github.com/repos/glyph/pipsi/comments{/number}","issue_comment_url":"https://api.github.com/repos/glyph/pipsi/issues/comments{/number}","contents_url":"https://api.github.com/repos/glyph/pipsi/contents/{+path}","compare_url":"https://api.github.com/repos/glyph/pipsi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/glyph/pipsi/merges","archive_url":"https://api.github.com/repos/glyph/pipsi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/glyph/pipsi/downloads","issues_url":"https://api.github.com/repos/glyph/pipsi/issues{/number}","pulls_url":"https://api.github.com/repos/glyph/pipsi/pulls{/number}","milestones_url":"https://api.github.com/repos/glyph/pipsi/milestones{/number}","notifications_url":"https://api.github.com/repos/glyph/pipsi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/glyph/pipsi/labels{/name}","releases_url":"https://api.github.com/repos/glyph/pipsi/releases{/id}","created_at":"2015-12-02T00:20:17Z","updated_at":"2015-12-02T00:20:17Z","pushed_at":"2015-12-02T00:22:45Z","git_url":"git://github.com/glyph/pipsi.git","ssh_url":"git@github.com:glyph/pipsi.git","clone_url":"https://github.com/glyph/pipsi.git","svn_url":"https://github.com/glyph/pipsi","homepage":null,"size":54,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"mitsuhiko:master","ref":"master","sha":"ad72771136c885b9bdaa965df454f19a9415da26","user":{"login":"mitsuhiko","id":7396,"avatar_url":"https://avatars.githubusercontent.com/u/7396?v=3","gravatar_id":"","url":"https://api.github.com/users/mitsuhiko","html_url":"https://github.com/mitsuhiko","followers_url":"https://api.github.com/users/mitsuhiko/followers","following_url":"https://api.github.com/users/mitsuhiko/following{/other_user}","gists_url":"https://api.github.com/users/mitsuhiko/gists{/gist_id}","starred_url":"https://api.github.com/users/mitsuhiko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitsuhiko/subscriptions","organizations_url":"https://api.github.com/users/mitsuhiko/orgs","repos_url":"https://api.github.com/users/mitsuhiko/repos","events_url":"https://api.github.com/users/mitsuhiko/events{/privacy}","received_events_url":"https://api.github.com/users/mitsuhiko/received_events","type":"User","site_admin":false},"repo":{"id":22814007,"name":"pipsi","full_name":"mitsuhiko/pipsi","owner":{"login":"mitsuhiko","id":7396,"avatar_url":"https://avatars.githubusercontent.com/u/7396?v=3","gravatar_id":"","url":"https://api.github.com/users/mitsuhiko","html_url":"https://github.com/mitsuhiko","followers_url":"https://api.github.com/users/mitsuhiko/followers","following_url":"https://api.github.com/users/mitsuhiko/following{/other_user}","gists_url":"https://api.github.com/users/mitsuhiko/gists{/gist_id}","starred_url":"https://api.github.com/users/mitsuhiko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitsuhiko/subscriptions","organizations_url":"https://api.github.com/users/mitsuhiko/orgs","repos_url":"https://api.github.com/users/mitsuhiko/repos","events_url":"https://api.github.com/users/mitsuhiko/events{/privacy}","received_events_url":"https://api.github.com/users/mitsuhiko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mitsuhiko/pipsi","description":"pip script installer","fork":false,"url":"https://api.github.com/repos/mitsuhiko/pipsi","forks_url":"https://api.github.com/repos/mitsuhiko/pipsi/forks","keys_url":"https://api.github.com/repos/mitsuhiko/pipsi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mitsuhiko/pipsi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mitsuhiko/pipsi/teams","hooks_url":"https://api.github.com/repos/mitsuhiko/pipsi/hooks","issue_events_url":"https://api.github.com/repos/mitsuhiko/pipsi/issues/events{/number}","events_url":"https://api.github.com/repos/mitsuhiko/pipsi/events","assignees_url":"https://api.github.com/repos/mitsuhiko/pipsi/assignees{/user}","branches_url":"https://api.github.com/repos/mitsuhiko/pipsi/branches{/branch}","tags_url":"https://api.github.com/repos/mitsuhiko/pipsi/tags","blobs_url":"https://api.github.com/repos/mitsuhiko/pipsi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mitsuhiko/pipsi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mitsuhiko/pipsi/git/refs{/sha}","trees_url":"https://api.github.com/repos/mitsuhiko/pipsi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mitsuhiko/pipsi/statuses/{sha}","languages_url":"https://api.github.com/repos/mitsuhiko/pipsi/languages","stargazers_url":"https://api.github.com/repos/mitsuhiko/pipsi/stargazers","contributors_url":"https://api.github.com/repos/mitsuhiko/pipsi/contributors","subscribers_url":"https://api.github.com/repos/mitsuhiko/pipsi/subscribers","subscription_url":"https://api.github.com/repos/mitsuhiko/pipsi/subscription","commits_url":"https://api.github.com/repos/mitsuhiko/pipsi/commits{/sha}","git_commits_url":"https://api.github.com/repos/mitsuhiko/pipsi/git/commits{/sha}","comments_url":"https://api.github.com/repos/mitsuhiko/pipsi/comments{/number}","issue_comment_url":"https://api.github.com/repos/mitsuhiko/pipsi/issues/comments{/number}","contents_url":"https://api.github.com/repos/mitsuhiko/pipsi/contents/{+path}","compare_url":"https://api.github.com/repos/mitsuhiko/pipsi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mitsuhiko/pipsi/merges","archive_url":"https://api.github.com/repos/mitsuhiko/pipsi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mitsuhiko/pipsi/downloads","issues_url":"https://api.github.com/repos/mitsuhiko/pipsi/issues{/number}","pulls_url":"https://api.github.com/repos/mitsuhiko/pipsi/pulls{/number}","milestones_url":"https://api.github.com/repos/mitsuhiko/pipsi/milestones{/number}","notifications_url":"https://api.github.com/repos/mitsuhiko/pipsi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mitsuhiko/pipsi/labels{/name}","releases_url":"https://api.github.com/repos/mitsuhiko/pipsi/releases{/id}","created_at":"2014-08-10T17:07:41Z","updated_at":"2015-11-30T10:02:17Z","pushed_at":"2015-12-02T00:22:51Z","git_url":"git://github.com/mitsuhiko/pipsi.git","ssh_url":"git@github.com:mitsuhiko/pipsi.git","clone_url":"https://github.com/mitsuhiko/pipsi.git","svn_url":"https://github.com/mitsuhiko/pipsi","homepage":null,"size":394,"stargazers_count":596,"watchers_count":596,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":41,"mirror_url":null,"open_issues_count":15,"forks":41,"open_issues":15,"watchers":596,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mitsuhiko/pipsi/pulls/63"},"html":{"href":"https://github.com/mitsuhiko/pipsi/pull/63"},"issue":{"href":"https://api.github.com/repos/mitsuhiko/pipsi/issues/63"},"comments":{"href":"https://api.github.com/repos/mitsuhiko/pipsi/issues/63/comments"},"review_comments":{"href":"https://api.github.com/repos/mitsuhiko/pipsi/pulls/63/comments"},"review_comment":{"href":"https://api.github.com/repos/mitsuhiko/pipsi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mitsuhiko/pipsi/pulls/63/commits"},"statuses":{"href":"https://api.github.com/repos/mitsuhiko/pipsi/statuses/12df73498491fb681ca9da952fd17938f50475c5"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}