-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
fix: disableHostCheck should be defaulted to true #890
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #890 +/- ##
==========================================
- Coverage 73.62% 72.01% -1.61%
==========================================
Files 4 4
Lines 436 436
Branches 130 131 +1
==========================================
- Hits 321 314 -7
- Misses 115 122 +7
Continue to review full report at Codecov.
|
Previously `webpack-dev-server` would allow connections from any host 2957853 fixed this. However it introduced a breaking change by enabling this functionality by default. We should disable it by default until the next major release of `webpack-dev-server`.
Alternatively, I think it makes sense to autoenable this if setting the host to |
@evan-scott-zocdoc Totally agree, my primary focus for this PR was to revert the breaking change. However at this point I'm sure a large enough number of people have worked |
Closing: due to the age of this PR merging it would likely break more users then it would help. |
@sokra how to do you feel about the change described in #890 (comment)? I'd be happy to submit a PR. |
It's a dev server though... are you recommending people use this in production? |
no, don't use it in production. That's not what this attack is about. It's about attacking the dev-server from a website you visit while it's running. See https://medium.com/webpack/webpack-dev-server-middleware-security-issues-1489d950874a |
What kind of change does this PR introduce?
Fixes a breaking change in 2957853 by defaulting
disableHostCheck
to true.Did you add or update the
examples/
?No.
Summary
Previously
webpack-dev-server
would allow connections from any host 2957853 fixed this.However it introduced a breaking change by enabling this functionality
by default.
Instead of breaking a current subset of users with this change, we should
disable it by default until the next major release of
webpack-dev-server
.See #882 (comment).
Does this PR introduce a breaking change?
It introduces a breaking change for users dependent on
disableHostCheck
being false.However this won't really prevent their servers from running,
instead it just won't verify the
Host
header.What issues does this close?
resolves #882