-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Record known "Hostnames" for improved security + Warn when hostname has changed after migration #3080
Comments
maybe we should do like Wordpress and require users to specify the piwik URL and never rely on HTTP_HOST ? It's quite less user friendly to do so, but maybe useful? |
Sure, we can make it configureable. We can also set it initially using the URL at the time of installation, and/or the first website's URL. |
(In [6207]) refs #3080 - backend implementation of trusted_hosts validation; need front-end UI for runtime configuration |
Well done vipsoft, excellent improvement! :)
|
Is there any other work appart from updating FAQ, to do before closing the ticket? |
Is there any other work appart from updating FAQ? |
(In [6370]) Refs #3080
|
Specification for fixing this issue nicely:
See also #3220 |
Increasing priority since it has security implications and will improve general safety. |
I updated the spec at #3080 This is high priority for 1.9.1 Must do :) |
(In [7279]) Refs #3080, added trusted host admin UI, display warning in login, normal & admin screens if hostname is not trusted, and make sure password reset is not possible if hostname is not trusted. |
My last commit does everything necessary for this ticket, only thing left is the FAQ entry and Learn more link. However, I added a description to the Trusted Hosts admin section, so maybe it's not needed anymore? |
|
(In [7280]) Fixes #3080, add config option to disable trusted_hosts check, tweak many translations, modify UI to display one input w/ a label if only one trusted host is set (or if there's an injected host), set trusted host to Host if no stored trusted hosts and user is superuser, and don't use regex to check host. |
(In [7282]) Refs #3080, UI tweaks. |
[7283] refs this ticket, not #1823. |
(In [7291]) Refs #3080, get tests to pass and use previous regex code (w/ escaping) instead of forloop. |
(In [7295]) Refs #3080, fix regression in install process. |
(In [7301]) Refs #3080
|
Piwik config should contain a list of valid hosts (where the Piwik server resides) to either validate $_SERVER['HTTP_HOST'], or use in place of, when generating absolute URLs.
The text was updated successfully, but these errors were encountered: