# pymatgen 解析恶意转换字符串代码执行漏洞
## 漏洞概述
Pymatgen 是一个用于材料分析的开源 Python 库。在 Pymatgen 库的 `JonesFaithfulTransformation.from_transformation_str()` 方法中,存在一个关键安全漏洞,该方法不安全地使用 `eval()` 处理输入,导致在解析不受信任的输入时可以执行任意代码。
## 影响版本
- 影响版本:所有小于 2024.2.20 的版本
- 修复版本:2024.2.20
## 漏洞细节
`JonesFaithfulTransformation.from_transformation_str()` 方法使用了 `eval()` 函数处理输入字符串。由于 `eval()` 函数可能会执行任意输入的代码,攻击者可以通过提供恶意输入来执行任意代码。
## 影响
如果应用程序使用了受漏洞影响的 Pymatgen 版本,并且该应用程序处理了不受信任的用户输入,攻击者可以利用这个漏洞执行任意代码,从而危及系统的安全。
# | POC 描述 | 源链接 | 神龙链接 |
---|---|---|---|
1 | This repository contains a Crystallographic Information File (CIF) intended for use on the "Chemistry" machine on Hack The Box (HTB). | https://github.com/9carlo6/CVE-2024-23346 | POC详情 |
2 | This is an exploit for CVE-2024-23346 that acts as a "terminal" (tested on chemistry.htb) | https://github.com/MAWK0235/CVE-2024-23346 | POC详情 |
3 | PoC of the vulnerability CVE-2024-23346 | https://github.com/Sanity-Archive/CVE-2024-23346 | POC详情 |
4 | A Rust exploit for CVE-2024-23346 that functions as a "terminal" (tested on chemistry.htb) | https://github.com/szyth/CVE-2024-23346-rust-exploit | POC详情 |
5 | This is a exploit for the known Remote Code Execution (RCE) vulnerability in the `pymatgen` (CVE-2024-23346) Python library by uploading a malicious `CIF` file to the hosted `CIF Analyzer` website on the target running on the Chemistry machine from Hack the Box. | https://github.com/DAVIDAROCA27/CVE-2024-23346-exploit | POC详情 |
暂无评论