原始 OSV JSON{
"id": "GHSA-pmw4-jgxx-pcq9",
"aliases": [
"CVE-2020-26299"
],
"details": "### Impact\n\nClients of FTP servers utilizing `ftp-srv` hosted on Windows machines can escape the FTP user's defined root folder using the expected FTP commands, for example, `CWD` and `UPDR`.\n\n### Background\n\nWhen windows separators exist within the path (`\\`), `path.resolve` leaves the upper pointers intact and allows the user to move beyond the root folder defined for that user. We did not take that into account when creating the path resolve function.\n\n\n\n### Patches\nNone at the moment.\n\n### Workarounds\nThere are no workarounds for windows servers. Hosting the server on a different OS mitigates the issue.\n\n### References\n\nIssues: \nhttps://github.com/autovance/ftp-srv/issues/167\nhttps://github.com/autovance/ftp-srv/issues/225\n\n### For more information\nIf you have any questions or comments about this advisory:\nOpen an issue at https://github.com/autovance/ftp-srv.\nPlease email us directly; [email protected] .",
"summary": "File System Bounds Escape",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.4.0"
}
]
}
],
"package": {
"name": "ftp-srv",
"ecosystem": "npm"
}
}
],
"modified": "2021-02-11T17:04:52Z",
"severity": [],
"published": "2021-02-10T18:11:34Z",
"references": [
{
"url": "https://github.com/autovance/ftp-srv/security/advisories/GHSA-pmw4-jgxx-pcq9",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2020-26299",
"type": "ADVISORY"
},
{
"url": "https://github.com/autovance/ftp-srv/issues/167",
"type": "WEB"
},
{
"url": "https://github.com/autovance/ftp-srv/issues/225",
"type": "WEB"
},
{
"url": "https://github.com/autovance/ftp-srv/pull/224",
"type": "WEB"
},
{
"url": "https://github.com/autovance/ftp-srv/commit/457b859450a37cba10ff3c431eb4aa67771122e3",
"type": "WEB"
},
{
"url": "https://www.npmjs.com/package/ftp-srv",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-22"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2021-02-10T18:15:00Z",
"github_reviewed_at": "2021-02-10T18:11:21Z"
}
}