GHSA-2r2v-9pf8-6342: Github.com/h44z/wg portal WireGuard Portal V2 Vulnerable To Vulnerability

HIGH
Published
Advisory Summary

GHSA-2r2v-9pf8-6342 is a HIGH wireguard portal v2 vulnerable to vulnerability (General Security Weakness) affecting Github.com/h44z/wg portal libraries in the Go ecosystem. The issue involves wireguard portal v2 vulnerable to oauth insecure redirect uri / account takeover. Remediation is available by upgrading affected packages to version 2.0.0-alpha.3.

GHSA-2r2v-9pf8-6342 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-2r2v-9pf8-6342
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Github.com/h44z/wg portal
Package Ecosystem Go
Published Date
Last Updated

How to Fix GHSA-2r2v-9pf8-6342

To remediate this vulnerability, upgrade all affected Github.com/h44z/wg portal dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/h44z/wg-portal fixed: 2.0.0-alpha.3
Upgrade github.com/h44z/wg-portal to 2.0.0-alpha.3
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/h44z/wg-portal

How to Check if You Are Affected

To determine whether your application is affected by GHSA-2r2v-9pf8-6342, inspect your project dependencies for Github.com/h44z/wg portal:

inspect dependencies for github.com/h44z/wg-portal

Analyze the terminal output to locate any version of Github.com/h44z/wg portal in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.0-alpha.3), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Github.com/h44z/wg portal, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact Users of WireGuard Portal v2 who have OAuth (or OIDC) authentication backends enabled can be affected by an Account Takeover vulnerability if they visit a malicious website. ### Patches The problem was fixed in the latest alpha release, v2.0.0-alpha.3. The [docker images](https://hub.docker.com/r/wgportal/wg-portal) for the tag 'latest' built from the master branch also include the fix.

GHSA-2r2v-9pf8-6342 Affected Github.com/h44z/wg portal Versions

1 component(s)
Fixed Versions:
2.0.0-alpha.3
Product / Package Ecosystem Affected Versions Fixed Version
github.com/h44z/wg-portal
Go
≥ 2.0.0-alpha.1
< 2.0.0-alpha.3
2.0.0-alpha.3

References

Frequently Asked Questions

What is GHSA-2r2v-9pf8-6342?
GHSA-2r2v-9pf8-6342 is a security vulnerability in Github.com/h44z/wg portal involving WireGuard Portal v2 Vulnerable to OAuth Insecure Redirect URI / Account Takeover under General Security Weakness.
Which Github.com/h44z/wg portal versions are affected?
Affected versions include releases prior to 2.0.0-alpha.3 across affected packages: github.com/h44z/wg-portal.
What version fixes GHSA-2r2v-9pf8-6342?
Upgrading to 2.0.0-alpha.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/h44z/wg-portal affected?
Yes, github.com/h44z/wg-portal is affected in releases prior to 2.0.0-alpha.3. Upgrade your dependency to 2.0.0-alpha.3 or later.
What CWE is associated with GHSA-2r2v-9pf8-6342?
GHSA-2r2v-9pf8-6342 is classified under General Security Weakness.
How can I check Go dependencies for GHSA-2r2v-9pf8-6342?
Run the dependency tree command: 'inspect dependencies for github.com/h44z/wg-portal'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-2r2v-9pf8-6342",
  "modified" : "2025-01-07T15:52:16Z",
  "published" : "2025-01-07T15:52:16Z",
  "aliases" : [ ],
  "summary" : "WireGuard Portal v2 Vulnerable to OAuth Insecure Redirect URI / Account Takeover",
  "details" : "### Impact\nUsers of WireGuard Portal v2 who have OAuth (or OIDC) authentication backends enabled can be affected by an Account Takeover vulnerability if they visit a malicious website.\n\n### Patches\nThe problem was fixed in the latest alpha release, v2.0.0-alpha.3. The [docker images](https://hub.docker.com/r/wgportal/wg-portal) for the tag 'latest' built from the master branch also include the fix.\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/h44z/wg-portal"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0-alpha.1"
      }, {
        "fixed" : "2.0.0-alpha.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/h44z/wg-portal/security/advisories/GHSA-2r2v-9pf8-6342"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/h44z/wg-portal/commit/62dbdfe0f96045d46e121d509fc181fbb7936895"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/h44z/wg-portal"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-01-07T15:52:16Z",
    "nvd_published_at" : null
  }
}