Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

security issue with a dead simple fix: download debootstrap using HTTPS #2067

Closed
eighthave opened this issue Sep 5, 2015 · 6 comments
Closed
Labels

Comments

@eighthave
Copy link

Right now, crouton downloads debootstrap from anonscm.debian.org using an HTTP link. That URL is also accessible using an HTTPS link, e.g.

crouton $ git diff
diff --git a/installer/ubuntu/bootstrap b/installer/ubuntu/bootstrap
index f826dfd..a0f24a5 100644
--- a/installer/ubuntu/bootstrap
+++ b/installer/ubuntu/bootstrap
@@ -10,7 +10,7 @@

 # Grab the latest release of debootstrap
 echo 'Downloading latest debootstrap...' 1>&2
-d='http://anonscm.debian.org/gitweb/?p=d-i/debootstrap.git;a=snapshot;h=HEAD;sf=tgz'
+d='https://anonscm.debian.org/gitweb/?p=d-i/debootstrap.git;a=snapshot;h=HEAD;sf=tgz'
 if ! wget -O- --no-verbose --timeout=60 -t2 "$d"  \
         | tar -C "$tmp" --strip-components=1 -zx 2>/dev/null; then
     echo 'Download from Debian gitweb failed. Trying latest release...' 1>&2
@dnschneid
Copy link
Owner

Oops. Sign the CLA and open a PR?

@dnschneid dnschneid added the bug label Sep 16, 2015
@eighthave
Copy link
Author

eighthave commented Sep 17, 2015 via email

DennisLfromGA added a commit to DennisLfromGA/crouton that referenced this issue Sep 17, 2015
RE: security issue with a dead simple fix: download debootstrap using HTTPS - originally by @eighthav - [issue 2067](dnschneid#2067)

Right now, crouton downloads debootstrap from anonscm.debian.org using an HTTP link. That URL is also accessible using an HTTPS link, e.g.
DennisLfromGA added a commit to DennisLfromGA/crouton that referenced this issue Sep 17, 2015
RE: security issue with a dead simple fix: download debootstrap using HTTPS dnschneid#2067 - originally by eighthave

Right now, crouton downloads debootstrap from anonscm.debian.org using an HTTP link. That URL is also accessible using an HTTPS link, e.g.
@DennisLfromGA
Copy link
Collaborator

Jeez Louise - I'll do it - #2121

@eighthave
Copy link
Author

eighthave commented Sep 17, 2015 via email

@DennisLfromGA
Copy link
Collaborator

No problem as far as I'm concerned; I've already signed the CLA and I think it's a simple but warranted mod. Thanx for the suggestion and fix.

@dnschneid
Copy link
Owner

Sorry for the hassle...e-mail me if you want to talk to our legal department :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants