security: filter 'plugin' directive in OpenVPN config to prevent LPE#314
Merged
bernerdad merged 1 commit intoWindscribe:masterfrom Apr 13, 2026
Merged
Conversation
|
Is this meant to be public? |
Contributor
Author
|
@hett-patell The issue was reported publicly on this repository (Issue #313). As this is a critical security fix for a public report, a public PR is the standard procedure to address it immediately. My goal is to secure the application for all users. |
Collaborator
|
Thank you for the contribution! |
|
What? Why is this merged?
|
Collaborator
|
So that anyone currently building from this repo has a fix for this while waiting for us to mirror the 2.22 build here. |
|
That makes sense. Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR fixes a critical local privilege escalation (LPE) vulnerability (Issue #313) where an unprivileged user can execute arbitrary code as root by injecting an OpenVPN
plugindirective into the configuration.Changes
pluginto the list of blocked directives inwriteOVPNFile(). This prevents the privileged helper from writing a malicious plugin path to the final OpenVPN config.plugintokUnsafeCommandsinExtraConfig::isLegalOpenVpnCommand(). This prevents the client from accepting the directive fromwindscribe_extra.conf.Impact
Prevents local users from escalating to root via malicious shared objects loaded by OpenVPN.