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

Login fails in firewall scenario #1724

Closed
anonymous-matomo-user opened this issue Sep 23, 2010 · 1 comment
Closed

Login fails in firewall scenario #1724

anonymous-matomo-user opened this issue Sep 23, 2010 · 1 comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Milestone

Comments

@anonymous-matomo-user
Copy link

After upgrading from a really old Piwik installation (0.5.x), I cannot login anymore.

The problem boils down to the referrer check during nonce validation.

URL::getLocalReferer() calls URL::isLocalUrl() with the current referer.

Eventually, the referer is compared against $_SERVER['HTTP_HOST'] from URL::getCurrentHost().

In my case, $_SERVER['HTTP_HOST'] is the name of the internal server name which is not known outside, while the referer contains the public, "official" domain name.

There should be an option to specify the default public url used for referer checking, or just use the first url of the urls areeady provided for a website.

@robocoder
Copy link
Contributor

Your firewall should set the X-Forwarded-Host header. if it's unable to pass the HTTP request through without modification.

@anonymous-matomo-user anonymous-matomo-user added this to the Piwik 1.1 milestone Jul 8, 2014
@mattab mattab added the wontfix label Aug 3, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Projects
None yet
Development

No branches or pull requests

3 participants