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

Fix hostname whitelist #4235

Closed
wants to merge 7 commits into from
Closed

Fix hostname whitelist #4235

wants to merge 7 commits into from

Conversation

nyeholt
Copy link
Contributor

@nyeholt nyeholt commented May 28, 2015

To test, add define('SS_ALLOWED_HOSTS', 'devhost.com,localhost'); to your _ss_environment.php

Make requests from curl like

$ curl -I -H "Host: haxed.com" -vv http://localhost/site

You should have a HTTP/1.1 400 Invalid Host error

@nyeholt nyeholt closed this May 28, 2015
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.

None yet

4 participants