Skip to content
This repository has been archived by the owner on Sep 6, 2020. It is now read-only.

Use SSL-enabled URI for manifest.json #122

Merged
merged 1 commit into from
Dec 17, 2015

Conversation

weierophinney
Copy link
Contributor

The script was using a non-SSL-enabled URI for the manifest.json, which could allow a MITM attack to provide an alternative file, and thus slipstream in insecure URIs for the box.phar locations.

Considering the manifest.json uses SSL-enabled URIs for the PHAR downloads themselves, the assumption is already that PHP can perform the SSL/TLS negotiation, so there's no reason not to use the SSL/TLS for retrieving the manifest itself.

The script was using a non-SSL-enabled URI for the `manifest.json`, which could allow a MITM attack to provide an alternative file, and thus slipstream in insecure URIs for the `box.phar` locations.

Considering the `manifest.json` uses SSL-enabled URIs for the PHAR downloads themselves, the assumption is already that PHP can perform the SSL/TLS negotiation, so there's no reason not to use the SSL/TLS for retrieving the manifest itself.
@kherge
Copy link
Contributor

kherge commented Dec 17, 2015

Excellent point. The use of HTTP is a carry over from when I still had the box-project.org domain and couldn't set up a proper SSL certificate for it.

Thanks for the fix!

kherge added a commit that referenced this pull request Dec 17, 2015
Use SSL-enabled URI for manifest.json
@kherge kherge merged commit 4b55944 into box-project:gh-pages Dec 17, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants