GHSA-XX6G-JJ35-PXJV
Vulnerability from github – Published: 2022-11-16 00:02 – Updated: 2024-11-19 19:03Impact
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
{
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "wsgidav"
},
"ranges": [
{
"events": [
{
"introduced": "3.0.0a1"
},
{
"fixed": "4.1.0"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2022-41905"
],
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"github_reviewed": true,
"github_reviewed_at": "2022-11-16T00:02:05Z",
"nvd_published_at": "2022-11-11T21:15:00Z",
"severity": "HIGH"
},
"details": "### Impact\nImplementations using this library with directory browsing enabled may be susceptible to [Cross Site Scripting (XSS)](https://owasp.org/www-community/attacks/xss/) attacks.\n\n### Patches\nUsers can upgrade to v4.1.0\n\n### Workarounds\nSet `dir_browser.enable = False` in the configuration. For instance, when using a Python dictionary to configure the library:\n\n```\nconfig = {\n # your normal configuration\n \"dir_browser\": {\n \"enable\": False\n },\n}\napp = WsgiDAVApp(config)\n```\n\n### For more information\n\nNote that an attacker cannot exploit this vulnerability, by simply uploading a file or folder with a manipulated file name.\nHowever if the WsgiDAV library is used in a scenario where untrusted data is displayed in the directory browser\u0027s user interface (e.g. \u0027realm\u0027 or user name, ...) XSS may happen.\n\nIf you have any questions or comments about this advisory:\n* Open an issue in [mar10/wsgidav](https://github.com/mar10/wsgidav/)\n* See the [security policy](https://github.com/mar10/wsgidav/security/policy)\n",
"id": "GHSA-xx6g-jj35-pxjv",
"modified": "2024-11-19T19:03:47Z",
"published": "2022-11-16T00:02:05Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/mar10/wsgidav/security/advisories/GHSA-xx6g-jj35-pxjv"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2022-41905"
},
{
"type": "WEB",
"url": "https://github.com/mar10/wsgidav/commit/e9606ab0f42f4c1a6611bc3c52de299b0aba7726"
},
{
"type": "PACKAGE",
"url": "https://github.com/mar10/wsgidav"
},
{
"type": "WEB",
"url": "https://github.com/pypa/advisory-database/tree/main/vulns/wsgidav/PYSEC-2022-43018.yaml"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N",
"type": "CVSS_V3"
}
],
"summary": "Cross Site Scripting vulnerability in wsgidav when directory browsing is enabled"
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.