Vulnerabilities in pkg:golang/go.thethings.network/lorawan-stack/v3

PACKAGE
Advisory Identifier: GHSA-5fwq-9x7j-2qpg
Advisory Summary

CVE-2023-26494 is a MODERATE (CVSS 6.1) lorawan-stack open redirect vulnerability vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting Go.thethings.network/lorawan stack/v3 libraries in the Go ecosystem. The issue involves lorawan-stack open redirect vulnerability. Remediation is available by upgrading affected packages to version 3.24.1.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/go.thethings.network/lorawan-stack/v3

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/go.thethings.network/lorawan-stack/v3. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-5fwq-9x7j-2qpg CVE-2023-26494 MODERATE lorawan-stack Open Redirect vulnerability

CVE-2023-26494 at a Glance

CVE Identifier CVE-2023-26494
GHSA Identifier GHSA-5fwq-9x7j-2qpg
Severity MODERATE
CVSS v3.1 Base Score 6.1
CWE Classification CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
Affected Product Go.thethings.network/lorawan stack/v3
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 6.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2023-26494

To remediate this vulnerability, upgrade all affected Go.thethings.network/lorawan stack/v3 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

go.thethings.network/lorawan-stack/v3 fixed: 3.24.1
Upgrade go.thethings.network/lorawan-stack/v3 to 3.24.1
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 go.thethings.network/lorawan-stack/v3

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-26494, inspect your project dependencies for Go.thethings.network/lorawan stack/v3:

inspect dependencies for go.thethings.network/lorawan-stack/v3

Analyze the terminal output to locate any version of Go.thethings.network/lorawan stack/v3 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.24.1), 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 CWE-601: URL Redirection to Untrusted Site ('Open Redirect'), where the web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. In Go.thethings.network/lorawan stack/v3, 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

lorawan-stack is an open source LoRaWAN network server. Prior to version 3.24.1, an open redirect exists on the login page of the lorawan stack server, allowing an attacker to supply a user controlled redirect upon sign in. This issue may allows malicious actors to phish users, as users assume they were redirected to the homepage on login. Version 3.24.1 contains a fix.

CVE-2023-26494 Affected Go.thethings.network/lorawan stack/v3 Versions

1 component(s)
Fixed Versions:
3.24.1
Product / Package Ecosystem Affected Versions Fixed Version
go.thethings.network/lorawan-stack/v3
Go
< 3.24.1
3.24.1

References

Frequently Asked Questions

What is CVE-2023-26494?
CVE-2023-26494 is a security vulnerability in Go.thethings.network/lorawan stack/v3 involving lorawan-stack Open Redirect vulnerability under CWE-601: URL Redirection to Untrusted Site ('Open Redirect').
Which Go.thethings.network/lorawan stack/v3 versions are affected?
Affected versions include releases prior to 3.24.1 across affected packages: go.thethings.network/lorawan-stack/v3.
What version fixes CVE-2023-26494?
Upgrading to 3.24.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is go.thethings.network/lorawan-stack/v3 affected?
Yes, go.thethings.network/lorawan-stack/v3 is affected in releases prior to 3.24.1. Upgrade your dependency to 3.24.1 or later.
What is the CVSS score of CVE-2023-26494?
CVE-2023-26494 has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2023-26494?
CVE-2023-26494 is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect') (The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.).
How can I check Go dependencies for CVE-2023-26494?
Run the dependency tree command: 'inspect dependencies for go.thethings.network/lorawan-stack/v3'. 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-5fwq-9x7j-2qpg",
  "modified" : "2024-08-05T21:18:59Z",
  "published" : "2024-08-05T21:18:58Z",
  "aliases" : [ "CVE-2023-26494" ],
  "summary" : "lorawan-stack Open Redirect vulnerability",
  "details" : "lorawan-stack is an open source LoRaWAN network server. Prior to version 3.24.1, an open redirect exists on the login page of the lorawan stack server, allowing an attacker to supply a user controlled redirect upon sign in. This issue may allows malicious actors to phish users, as users assume they were redirected to the homepage on login. Version 3.24.1 contains a fix.\n\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "go.thethings.network/lorawan-stack/v3"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.24.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-26494"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/TheThingsNetwork/lorawan-stack/commit/f06776028bdb3994847fc6067613dc61a2b3559e"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/TheThingsNetwork/lorawan-stack"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/TheThingsNetwork/lorawan-stack/blob/ecdef730f176c02f7c9afce98b0457ae64de5bfc/pkg/webui/account/views/login/index.js#L90-L90"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/TheThingsNetwork/lorawan-stack/blob/ecdef730f176c02f7c9afce98b0457ae64de5bfc/pkg/webui/account/views/token-login/index.js#L74-L74"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/TheThingsNetwork/lorawan-stack/releases/tag/v3.24.1"
  }, {
    "type" : "WEB",
    "url" : "https://securitylab.github.com/advisories"
  }, {
    "type" : "ADVISORY",
    "url" : "https://securitylab.github.com/advisories/GHSL-2022-138_lorawan-stack"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-601" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-08-05T21:18:58Z",
    "nvd_published_at" : "2023-04-24T17:15:10Z"
  }
}