# setuptools在PackageIndex.download中存在路径遍历漏洞,导致任意文件写入
## 漏洞概述
Setuptools 是一个用于下载、构建、安装、升级和卸载 Python 包的软件包。在 `PackageIndex` 中存在路径遍历漏洞,该漏洞允许攻击者以运行 Python 代码进程的权限写入文件系统上的任意位置,这可能导致远程代码执行。
## 影响版本
- setuptools 版本 78.1.1 之前的版本
## 漏洞细节
在 `PackageIndex` 中存在的路径遍历漏洞允许攻击者以运行 Python 代码进程的权限写入任意位置的文件。这种权限滥用可能会导致远程代码执行,尤其是当代码在特权上下文中运行时。
## 影响
此漏洞允许攻击者在受影响的系统上以运行 Python 代码进程的权限写入任意位置的文件,从而可能导致任意代码执行。版本 78.1.1 修复了该问题。
# | POC 描述 | 源链接 | 神龙链接 |
---|
标题: Path traversal in PackageIndex.download leads to Arbitrary File Write. · Issue #4946 · pypa/setuptools -- 🔗来源链接
标签: x_refsource_MISC
神龙速读标题: Path traversal in PackageIndex.download leads to Arbitrary File Write · Advisory · pypa/setuptools · GitHub -- 🔗来源链接
标签: x_refsource_CONFIRM
神龙速读标题: Add a check to ensure the name resolves relative to the tmpdir. · pypa/setuptools@250a6d1 · GitHub -- 🔗来源链接
标签: x_refsource_MISC
神龙速读标题: setuptools/setuptools/package_index.py at 6ead555c5fb29bc57fe6105b1bffc163f56fd558 · pypa/setuptools · GitHub -- 🔗来源链接
标签: x_refsource_MISC