GHSA-qmfx-75ff-8mw6: Github.com/ThomasLeister/prosody filer Listing Of Upload Directory Contents Vulnerability

HIGH
Published
Advisory Summary

GHSA-qmfx-75ff-8mw6 is a HIGH listing of upload directory contents vulnerability (General Security Weakness) affecting Github.com/ThomasLeister/prosody filer libraries in the Go ecosystem. The issue involves listing of upload directory contents possible. Remediation is available by upgrading affected packages to version 1.0.1.

GHSA-qmfx-75ff-8mw6 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-qmfx-75ff-8mw6
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Github.com/ThomasLeister/prosody filer
Package Ecosystem Go
Published Date
Last Updated

How to Fix GHSA-qmfx-75ff-8mw6

To remediate this vulnerability, upgrade all affected Github.com/ThomasLeister/prosody filer 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/ThomasLeister/prosody-filer fixed: 1.0.1
Upgrade github.com/ThomasLeister/prosody-filer to 1.0.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 github.com/ThomasLeister/prosody-filer

How to Check if You Are Affected

To determine whether your application is affected by GHSA-qmfx-75ff-8mw6, inspect your project dependencies for Github.com/ThomasLeister/prosody filer:

inspect dependencies for github.com/ThomasLeister/prosody-filer

Analyze the terminal output to locate any version of Github.com/ThomasLeister/prosody filer in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.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 General Security Weakness. In Github.com/ThomasLeister/prosody filer, 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

There's an security issue in prosody-filer versions **< 1.0.1** which leads to unwanted directory listings of download directories. An attacker is able to list previous uploads of a certain user by shortening the URL and accessing a URL subdirectors other than `/upload/` (or the corresponding user defined root dir) Version 1.0.1 and later fix this problem and allow only direct file access if the full path is known. Directory listings are blocked entirely.

GHSA-qmfx-75ff-8mw6 Affected Github.com/ThomasLeister/prosody filer Versions

1 component(s)
Fixed Versions:
1.0.1
Product / Package Ecosystem Affected Versions Fixed Version
github.com/ThomasLeister/prosody-filer
Go
< 1.0.1
1.0.1

References

Frequently Asked Questions

What is GHSA-qmfx-75ff-8mw6?
GHSA-qmfx-75ff-8mw6 is a security vulnerability in Github.com/ThomasLeister/prosody filer involving Listing of upload directory contents possible under General Security Weakness.
Which Github.com/ThomasLeister/prosody filer versions are affected?
Affected versions include releases prior to 1.0.1 across affected packages: github.com/ThomasLeister/prosody-filer.
What version fixes GHSA-qmfx-75ff-8mw6?
Upgrading to 1.0.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/ThomasLeister/prosody-filer affected?
Yes, github.com/ThomasLeister/prosody-filer is affected in releases prior to 1.0.1. Upgrade your dependency to 1.0.1 or later.
What CWE is associated with GHSA-qmfx-75ff-8mw6?
GHSA-qmfx-75ff-8mw6 is classified under General Security Weakness.
How can I check Go dependencies for GHSA-qmfx-75ff-8mw6?
Run the dependency tree command: 'inspect dependencies for github.com/ThomasLeister/prosody-filer'. 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-qmfx-75ff-8mw6",
  "modified" : "2021-05-24T21:22:08Z",
  "published" : "2021-05-27T18:41:00Z",
  "aliases" : [ ],
  "summary" : "Listing of upload directory contents possible",
  "details" : "There's an security issue in prosody-filer versions **< 1.0.1** which leads to unwanted directory listings of download directories. \n\nAn attacker is able to list previous uploads of a certain user by shortening the URL and accessing a URL subdirectors other than `/upload/` (or the corresponding user defined root dir)\n\nVersion 1.0.1 and later fix this problem and allow only direct file access if the full path is known. Directory listings are blocked entirely.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/ThomasLeister/prosody-filer"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.0.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/ThomasLeister/prosody-filer/security/advisories/GHSA-qmfx-75ff-8mw6"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-05-24T21:22:08Z",
    "nvd_published_at" : null
  }
}