GHSA-xx6g-jj35-pxjv

Suggest an improvement
Source
https://github.com/advisories/GHSA-xx6g-jj35-pxjv
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/11/GHSA-xx6g-jj35-pxjv/GHSA-xx6g-jj35-pxjv.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-xx6g-jj35-pxjv
Aliases
Published
2022-11-16T00:02:05Z
Modified
2024-11-19T19:23:51.666055Z
Severity
  • 8.2 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N CVSS Calculator
Summary
Cross Site Scripting vulnerability in wsgidav when directory browsing is enabled
Details

Impact

Implementations using this library with directory browsing enabled may be susceptible to Cross Site Scripting (XSS) attacks.

Patches

Users can upgrade to v4.1.0

Workarounds

Set dir_browser.enable = False in the configuration. For instance, when using a Python dictionary to configure the library:

config = {
    # your normal configuration
    "dir_browser": {
      "enable": False
    },
}
app = WsgiDAVApp(config)

For more information

Note that an attacker cannot exploit this vulnerability, by simply uploading a file or folder with a manipulated file name. However if the WsgiDAV library is used in a scenario where untrusted data is displayed in the directory browser's user interface (e.g. 'realm' or user name, ...) XSS may happen.

If you have any questions or comments about this advisory: * Open an issue in mar10/wsgidav * See the security policy

Database specific
{
    "nvd_published_at": "2022-11-11T21:15:00Z",
    "cwe_ids": [
        "CWE-79"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2022-11-16T00:02:05Z"
}
References

Affected packages

PyPI / wsgidav

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.0.0a1
Fixed
4.1.0

Affected versions

3.*

3.0.0a1
3.0.0a2
3.0.0a3
3.0.0a4
3.0.0a5
3.0.0a6
3.0.0a7
3.0.0
3.0.1
3.0.2
3.0.3
3.0.5a2
3.0.5a3
3.1.0
3.1.1

4.*

4.0.0a2
4.0.0
4.0.1
4.0.2