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

Only accept HTTP and HTTPS as protocol #516

Merged
merged 2 commits into from
Sep 11, 2014
Merged

Only accept HTTP and HTTPS as protocol #516

merged 2 commits into from
Sep 11, 2014

Conversation

LukasReschke
Copy link
Contributor

We do not want to follow redirects to other protocols since they might allow an adversary to bypass network restrictions. (i.e. a redirect to ftp:// might be used to access files of a FTP server which might be in a secure zone and not be reachable from the net but from the ownCloud server)

See owncloud/core#11032 for the change in ownCloud and sabre-io/http#14 for the PR for sabre-http

We do not want to follow redirects to other protocols since they might allow an adversary to bypass network restrictions. (i.e. a redirect to ftp:// might be used to access files of a FTP server which might be in a secure zone and not be reachable from the net but from the ownCloud server)

See owncloud/core#11032 for the change in ownCloud and sabre-io/http#14 for the PR for sabre-http
@evert
Copy link
Member

evert commented Sep 11, 2014

I'm happy to accept this feature if tests pass :)

@LukasReschke
Copy link
Contributor Author

Yay. Fixing unit tests ;-)

@LukasReschke
Copy link
Contributor Author

Unit tests are passing now.

evert added a commit that referenced this pull request Sep 11, 2014
…ttps

Only accept HTTP and HTTPS as protocol
@evert evert merged commit 601b561 into sabre-io:1.8 Sep 11, 2014
@LukasReschke LukasReschke deleted the only-redirect-to-http-and-https branch September 11, 2014 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants