oras-go 是一个用于管理 OCI 制品的 Go 库。在 2.6.2 版本之前,当内容或文件存储(content/file.Store)提取标记为 的 OCI 层时,可能会在存储工作目录之外写入文件。 具体原因如下: 路径中的 和 函数仅以字面方式(lexical)验证符号链接的目标; 函数在处理根级条目时会跳过对父目录符号链接的遍历;而 函数在打开常规文件时会跟随终端符号链接。因此,一个恶意的归档文件可以构造一条符号链接链,其字面目标位于提取根目录内部,但实际解析后的目标却是攻击者选定的绝对路径。随后,即使
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
| Vendor | Product | Affected Versions | CPE | Subscribe |
|---|---|---|---|---|
| oras-project | oras-go | < 2.6.2 | - |
|
| # | POC Description | Source Link | Shenlong Link |
|---|
No public POC found.
Login to generate AI POCNo comments yet