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

Use HTTPS for installation guide and scripts #67

Closed
2 of 6 tasks
jellemdekker opened this issue May 16, 2019 · 9 comments
Closed
2 of 6 tasks

Use HTTPS for installation guide and scripts #67

jellemdekker opened this issue May 16, 2019 · 9 comments
Labels
enhancement New features or enhancements to existing ones Linux promoted

Comments

@jellemdekker
Copy link

jellemdekker commented May 16, 2019

Feature Request

Feature Information:

The AMP installation guide features commands that rely on downloading scripts or packages over the internet. Some of these commands currently use HTTP. However, the infrastructure already appears to support HTTPS almost everywhere. I propose the following changes:

Ubuntu/Debian:

  1. Modify wget -qO- getamp.sh to wget -qO- https://getamp.sh (requires task I below to be completed first).
  2. Modify apt-key adv --fetch-keys http://repo.cubecoders.com/archive.key with
    apt-key adv --fetch-keys https://repo.cubecoders.com/archive.key.
  3. Modify apt-add-repository "deb http://repo.cubecoders.com/ debian/" to
    apt-add-repository "deb https://repo.cubecoders.com/ debian/"

CentOS/Fedora & Other Linux:

  1. Modify wget http://cubecoders.com/Downloads/ampinstmgr.zip to
    wget https://cubecoders.com/Downloads/ampinstmgr.zip

Task list for places to make above changes in:

I confirm:

  • that I have searched for an existing feature request matching the description.
@PhonicUK
Copy link
Contributor

PhonicUK commented May 16, 2019

We have a HSTS policy on our domain (which forces all HTTP requests to run over HTTPS), all of the requests run over HTTPS. If you check the output from the wget command you'll see that because of the policy the download is actually served over HTTPS. There are also server-side redirect rules that redirect all HTTP traffic to HTTPS.

@jellemdekker
Copy link
Author

jellemdekker commented May 16, 2019

repo.cubecoders.com does not 301 redirect to HTTPS or serve the HSTS header. This means archive.key and AMP binaries are vulnerable to man-in-the-middle attacks. Additionally, if the infrastructure supports it, why not hardcode HTTPS into the URL's?

Please consider taking a moment to investigate this.

@miguemely
Copy link
Collaborator

Might be that the HSTS policy isn't being affected on the subdomain.

@PhonicUK PhonicUK reopened this May 17, 2019
@jellemdekker
Copy link
Author

getamp.sh redirects to http://cubecoders.com/getamp.sh. This should be https://. Furthermore, getamp.sh itself should support HTTPS, because if it doesn't an attacker can still modify the 301 redirect it is sending and replace it with their own malicious script.

@PhonicUK PhonicUK added enhancement New features or enhancements to existing ones Linux promoted labels May 28, 2019
@miguemely
Copy link
Collaborator

getamp.sh now redirects to https://cubecoders.com/getamp.sh, however, getamp.sh does not seem to support https.

@PhonicUK
Copy link
Contributor

GetAMP.sh is now served over HTTPS, as is everything else I believe.

@deadlysnek
Copy link
Collaborator

https://getamp.sh still presents a certificate for *.cubecoders.com which isn't valid.

@deadlysnek deadlysnek reopened this Jan 14, 2021
@PhonicUK
Copy link
Contributor

Odd, Certify the web is fetching those via LetsEncrypt. Something odd is afoot.

@PhonicUK
Copy link
Contributor

This has been addressed since. GetAMP.sh now redirects to https. All repositories are accessed over HTTPS and now use strict signing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New features or enhancements to existing ones Linux promoted
Projects
None yet
Development

No branches or pull requests

4 participants