GHSA-9H4G-27M8-QJRG
Vulnerability from github – Published: 2020-07-07 19:24 – Updated: 2021-09-22 20:28
VLAI?
Summary
Path Traversal in socket.io-file
Details
All versions of socket.io-file are vulnerable to Path Traversal. The package fails to sanitize user input and uses it to generate the file upload paths. The socket.io-file::createFile message contains a name option that is passed directly to path.join(). It is possible to upload files to arbitrary folders on the server by sending relative paths on the name value, such as ../../test.js. The uploadDir and rename options can be used to define the file upload path.
Severity ?
7.5 (High)
{
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "socket.io-file"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "2.0.31"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2020-15779"
],
"database_specific": {
"cwe_ids": [
"CWE-22"
],
"github_reviewed": true,
"github_reviewed_at": "2020-07-07T19:23:52Z",
"nvd_published_at": null,
"severity": "HIGH"
},
"details": "All versions of `socket.io-file` are vulnerable to Path Traversal. The package fails to sanitize user input and uses it to generate the file upload paths. The `socket.io-file::createFile` message contains a `name` option that is passed directly to `path.join()`. It is possible to upload files to arbitrary folders on the server by sending relative paths on the `name` value, such as `../../test.js`. The `uploadDir` and `rename` options can be used to define the file upload path.",
"id": "GHSA-9h4g-27m8-qjrg",
"modified": "2021-09-22T20:28:29Z",
"published": "2020-07-07T19:24:47Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2020-15779"
},
{
"type": "ADVISORY",
"url": "https://github.com/advisories/GHSA-9h4g-27m8-qjrg"
},
{
"type": "PACKAGE",
"url": "https://github.com/rico345100/socket.io-file"
},
{
"type": "WEB",
"url": "https://www.npmjs.com/advisories/1519"
},
{
"type": "WEB",
"url": "https://www.npmjs.com/package/socket.io-file"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N",
"type": "CVSS_V3"
}
],
"summary": "Path Traversal in socket.io-file"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
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.
Loading…
Loading…