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

You can login to the server with any username/password combination if someone else is logged in #690

Cyberboss opened this issue Sep 20, 2018 · 0 comments


None yet
1 participant
Copy link

commented Sep 20, 2018

An explanation of the bug: Back in, in order to accommodate running the Control Panel using Mono some hooks were added to the WCF communication layer. Detailed in this commit: 2894ea0#diff-0ba090ea7073a3a304dfdbdfc512f733

The bug was in this line: 2894ea0#diff-0ba090ea7073a3a304dfdbdfc512f733R48
authPolicy is passed in by the framework but the documentation for what the parameter is is virtually non-existent:

Turns out it is a cache of what the previously returned policy was, as Floyd thankfully found out for us. The security patch fixes the issue by creating a new empty list as the return value when password authentication fails as opposed to using the authPolicy parameter.

If you're wondering why this line: 2894ea0#diff-0ba090ea7073a3a304dfdbdfc512f733R42 didn't prevent the issue. It only invalidated the actual Windows login session, but in the eyes of the server the user was still valid since we just passed that closed handle as a return result. Had access to static files been attempted with a bad login, the request would end up erroring due to trying to impersonate using a closed user token handle.


This has been fixed in 1812a9c and versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.