CVE-2024-53264: Github.com/bunkerity/bunkerweb BunkerWeb Has Open Redirect Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-q9rr-h3hx-m87g
CWE-601
Published
Advisory Summary

CVE-2024-53264 is a MODERATE bunkerweb has open redirect vulnerability vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting Github.com/bunkerity/bunkerweb libraries in the Go ecosystem. The issue involves bunkerweb has open redirect vulnerability in loading page. Remediation is available by upgrading affected packages to version 1.5.11.

CVE-2024-53264 at a Glance

CVE Identifier CVE-2024-53264
GHSA Identifier GHSA-q9rr-h3hx-m87g
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
Affected Product Github.com/bunkerity/bunkerweb
Package Ecosystem Go
Published Date
Last Updated

How to Fix CVE-2024-53264

To remediate this vulnerability, upgrade all affected Github.com/bunkerity/bunkerweb 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/bunkerity/bunkerweb fixed: 1.5.11
Upgrade github.com/bunkerity/bunkerweb to 1.5.11
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/bunkerity/bunkerweb

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-53264, inspect your project dependencies for Github.com/bunkerity/bunkerweb:

inspect dependencies for github.com/bunkerity/bunkerweb

Analyze the terminal output to locate any version of Github.com/bunkerity/bunkerweb in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.5.11), 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 Github.com/bunkerity/bunkerweb, 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

### Summary: A open redirect vulnerability exists in the loading endpoint, allowing attackers to redirect authenticated users to arbitrary external URLs via the "next" parameter. ### Details: The loading endpoint accepts and uses an unvalidated "next" parameter for redirects: ### PoC: Visit: `/loading?next=https://google.com` while authenticated. The page will redirect to google.com. ### Impact: This vulnerability could be used in phishing attacks by redirecting users from a legitimate application URL to malicious sites.

CVE-2024-53264 Affected Github.com/bunkerity/bunkerweb Versions

1 component(s)
Fixed Versions:
1.5.11
Product / Package Ecosystem Affected Versions Fixed Version
github.com/bunkerity/bunkerweb
Go
< 1.5.11
1.5.11

References

Frequently Asked Questions

What is CVE-2024-53264?
CVE-2024-53264 is a security vulnerability in Github.com/bunkerity/bunkerweb involving BunkerWeb has Open Redirect Vulnerability in Loading Page under CWE-601: URL Redirection to Untrusted Site ('Open Redirect').
Which Github.com/bunkerity/bunkerweb versions are affected?
Affected versions include releases prior to 1.5.11 across affected packages: github.com/bunkerity/bunkerweb.
What version fixes CVE-2024-53264?
Upgrading to 1.5.11 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/bunkerity/bunkerweb affected?
Yes, github.com/bunkerity/bunkerweb is affected in releases prior to 1.5.11. Upgrade your dependency to 1.5.11 or later.
What CWE is associated with CVE-2024-53264?
CVE-2024-53264 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-2024-53264?
Run the dependency tree command: 'inspect dependencies for github.com/bunkerity/bunkerweb'. 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-q9rr-h3hx-m87g",
  "modified" : "2024-12-02T22:17:18Z",
  "published" : "2024-12-02T22:17:18Z",
  "aliases" : [ "CVE-2024-53264" ],
  "summary" : "BunkerWeb has Open Redirect Vulnerability in Loading Page",
  "details" : "### Summary:\nA open redirect vulnerability exists in the loading endpoint, allowing attackers to redirect authenticated users to arbitrary external URLs via the \"next\" parameter.\n\n### Details:\nThe loading endpoint accepts and uses an unvalidated \"next\" parameter for redirects:\n\n### PoC:\nVisit: `/loading?next=https://google.com` while authenticated. The page will redirect to google.com.\n\n### Impact:\nThis vulnerability could be used in phishing attacks by redirecting users from a legitimate application URL to malicious sites.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/bunkerity/bunkerweb"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.5.11"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/bunkerity/bunkerweb/security/advisories/GHSA-q9rr-h3hx-m87g"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-53264"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/bunkerity/bunkerweb"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-601" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-12-02T22:17:18Z",
    "nvd_published_at" : "2024-11-27T19:15:33Z"
  }
}