Impact
The vulnerability allows an authenticated user who is not an administrator to gain full administrator rights. By sending a single authenticated PUT request to the user profile endpoint with "IsAdmin": true, the server fails to protect this field when persisting the profile. Consequently, the value is written directly to the database, elevating the user to an administrator. This results in unrestricted control over the WireGuard VPN management portal.
Affected Systems
The affected product is WireGuard Portal (wg-portal) from the vendor h44z. Versions older than 2.1.3 are vulnerable, including the docker images tagged 'latest' built from the master branch prior to the fix.
Risk and Exploitability
The CVSS score of 8.8 indicates a high severity of this issue. An exploit requires legitimate authentication to the portal, which the user already possesses, making the attack path straightforward once the user has credentials. While the EPSS score is below 1%, suggesting a low probability of widespread exploitation at the time of analysis, the potential impact of full administrative takeover warrants urgent attention. The vulnerability is not listed in the CISA KEV catalog. Attackers can simply send the crafted request to their own user profile endpoint to achieve escalation.
OpenCVE Enrichment
Github GHSA