Mako 是一个用 Python 编写的模板库。在 1.4.2 版本之前,在 Windows 系统上, 中的 方法使用 来解析模板 URI,而 中的 方法则使用 (在 Windows 上底层为 )对其进行验证。当 URI 以驱动器盘符(如 )开头时, 会在执行前导的“..”(双点)检查之前吸收路径中的遍历段,而 的解析逻辑却可能允许路径逃逸出配置的模板目录。因此,如果应用程序将攻击者可控的模板名称或包含(include)路径传入该函数,就可能泄露同一磁盘卷上进程可读的文件;此外,若目标文件包含 Mako 模板语法,
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 |
|---|---|---|---|---|
| sqlalchemy | mako | < 1.4.2 | - |
|
| # | POC Description | Source Link | Shenlong Link |
|---|
No public POC found.
Login to generate AI POCNo comments yet